Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [smila-dev] Blackboard inconsistency!?

	Hi Daniel,

indeed, it seems to be a problem with the HSSFWorkbook.getBytes() function.
It works just fine if I first write the workbook to a file and then read it
from the file into the Blackboard. At this point I will have to use the
filesystem instead of the Blackboard for temporarily persisting
inter-process data.

Thank you,
	Bogdan. 

-----Original Message-----
From: smila-dev-bounces@xxxxxxxxxxx [mailto:smila-dev-bounces@xxxxxxxxxxx]
On Behalf Of daniel.stucky@xxxxxxxxxxxxx
Sent: Mittwoch, 6. Oktober 2010 17:47
To: smila-dev@xxxxxxxxxxx
Subject: Re: [smila-dev] Blackboard inconsistency!?

Hi Bogdan,

I don't expect any problems in the Blackboard's attachment handling.
We used all kinds of attachments (txt, pdf, office documents, images, ...)
in various SMILA demos and never encountered such a problem.

I assume that the exception is thrown from within the HSSFWorkbook, right ?

Could you check what happens if you load the bytes directly from a file
instead of using wb.getBytes(), store them in the blackboard and then
initialize your new HSSFWorkbook from the bytes stored in the Blackboard ?

Bye,
Daniel

-----Ursprüngliche Nachricht-----
Von: smila-dev-bounces@xxxxxxxxxxx [mailto:smila-dev-bounces@xxxxxxxxxxx] Im
Auftrag von Bogdan Sacaleanu
Gesendet: Mittwoch, 6. Oktober 2010 17:30
An: 'Smila project developer mailing list'
Betreff: [smila-dev] Blackboard inconsistency!?


	Dear all,

I am having some problems using the blackboard for saving attachments.
Namely, I am trying to save and Excel file and having it read back, but
there seem to be some inconsistencies with the stream:

" java.io.IOException: Invalid header signature; read 0x0005060000100809,
expected 0xE11AB1A1E011CFD0"

The code looks like this:

...
blackboard.setAttachment(message.getQuery(), "workbook", wb.getBytes());
HSSFWorkbook wb_test = new HSSFWorkbook(new
ByteArrayInputStream(blackboard.getAttachment(message.getQuery(),
"workbook")));
...

Any idea what goes wrong at this point!?

Kind regards,
   Bogdan Sacaleanu.

#######################################################################

Bogdan Eugen Sacaleanu, Researcher & Software Engineer

LT-Lab DFKI

Stuhlsatzenhausweg 3

66123 Saarbruecken, Germany

bogdan@xxxxxxx Phone: +49 681 302 5261

http://www.dfki.de/~bogdan Fax : +49 681 302 5338

#######################################################################

Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH Trippstadter
Strasse 122,

D-67663 Kaiserslautern, Germany

Geschaeftsfuehrung:

Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter´Olthoff

Vorsitzender des Aufsichtsrats:

Prof. Dr. h.c. Hans A. Aukes

Amtsgericht Kaiserslautern, HRB 2313

#######################################################################

 


_______________________________________________
smila-dev mailing list
smila-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/smila-dev
_______________________________________________
smila-dev mailing list
smila-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/smila-dev



Back to the top