You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2005/06/16 16:19:21 UTC

DO NOT REPLY [Bug 35385] New: - InvalidHeaderSignature

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35385>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35385

           Summary: InvalidHeaderSignature
           Product: POI
           Version: 2.5
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P1
         Component: HSSF
        AssignedTo: poi-dev@jakarta.apache.org
        ReportedBy: nilus_m@yahoo.com


Hi POI users,

 I am trying to read an excel file from a java program. 
For first 10 times it worked fine but later it started giving
InvalidHeaderSignature Error. 

java.io.IOException: Invalid header signature; read 7521418675403179042, 
expected -2226271756974174256
15:32:25,274 INFO [STDOUT] at 
org.apache.poi.poifs.storage.HeaderBlockReader.<init>(HeaderBlockReader.j 
ava:88)
15:32:25,274 INFO [STDOUT] at 
org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSystem.ja 
va:83)


By searching in poi archives, I got to know that many users got the same 
problem but no where I could find the solution. 
I understand that it is not a properly saved excel file.

But this is the file we are going to receive from customers.
Every time we can not open the file and copy the contents.
Is there any way we can solve this problem?

One more problem I am facing is,  when I am reading a cell, the data inside 
the cell is 3732135467(phone no) but excel displays it as 3.7+e9  when I am 
trying to read it, POI getCell() 
Displays it as 3.732135467+e9 . Is there a way to display the correct data?

Thanks
nmadhava

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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