You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by PA <pe...@gmail.com> on 2005/02/22 14:45:55 UTC

Invalid header signature?

Hello,

I'm using Textmining's WordExtractor to index some MS Word documents:

http://dev.alt.textdrive.com/file/ZOE/Bundles/MSWordTextDecoder/ 
MSWordTextDecoder.java

This is in the context of this application:

http://zoe.nu/

Everything works pretty nicely, but I recently ran into the following  
exception:

java.io.IOException: Invalid header signature; read 290834230142674395,  
expected -2226271756974174256
	at  
org.apache.poi.poifs.storage.HeaderBlockReader.<init>(HeaderBlockReader. 
java:88)
	at  
org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSystem.j 
ava:83)
	at  
org.textmining.text.extraction.WordExtractor.extractText(WordExtractor.j 
ava:48)

Googling around seems to indicate that perhaps the MIME part being  
decoded was not really an application/msword part. Is that a correct  
diagnostic?

For the record, I'm using poi-2.5.1-final-20040804.jar and  
tm-extractors-0.4.jar.

TIA.

Cheers

--
PA, Onnay Equitursay
http://alt.textdrive.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


AW: Invalid header signature?

Posted by "KHZ (SAW)" <ka...@sawag.com>.
Hi PA.

Typically such results come when the expected type doesn't fit to the
real type, e.g. an ASCII file named like a word document.

So your assumption is likely to be right.

Regards,	Karl-Heinz.


-----Ursprüngliche Nachricht-----
Von: PA [mailto:petite.abeille@gmail.com] 
Gesendet: Dienstag, 22. Februar 2005 14:46
An: poi-user@jakarta.apache.org
Betreff: Invalid header signature?

Hello,

I'm using Textmining's WordExtractor to index some MS Word documents:

http://dev.alt.textdrive.com/file/ZOE/Bundles/MSWordTextDecoder/ 
MSWordTextDecoder.java

This is in the context of this application:

http://zoe.nu/

Everything works pretty nicely, but I recently ran into the following  
exception:

java.io.IOException: Invalid header signature; read 290834230142674395,

expected -2226271756974174256
	at  
org.apache.poi.poifs.storage.HeaderBlockReader.<init>(HeaderBlockReader.

java:88)
	at  
org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSystem.j

ava:83)
	at  
org.textmining.text.extraction.WordExtractor.extractText(WordExtractor.j

ava:48)

Googling around seems to indicate that perhaps the MIME part being  
decoded was not really an application/msword part. Is that a correct  
diagnostic?

For the record, I'm using poi-2.5.1-final-20040804.jar and  
tm-extractors-0.4.jar.

TIA.

Cheers

--
PA, Onnay Equitursay
http://alt.textdrive.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/




---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/