You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Craig McDaniel <cr...@nplus1.net> on 2003/09/07 22:06:34 UTC

Read error at end of file

I am trying to use the event model in poi-1.5.1-final to read in a
spreadsheet. I kept getting the following error after it had processed
all the records in my XLS file:

org.apache.poi.hssf.record.RecordFormatException: Error reading bytes
	at org.apache.poi.hssf.eventmodel.HSSFEventFactory.processEvents(HSSFEventFactory.java:179)
	at org.apache.poi.hssf.dev.EFHSSF.run(EFHSSF.java:107)
	at org.apache.poi.hssf.dev.EFHSSF.main(EFHSSF.java:191)
Exception in thread "main" 

As you can see, I tried it with the example class EFHSSF and had the
same result. This leads me to believe that there is something wrong
with my XLS file, there is a bug in HSSFEventFactory.processEvents(),
or both. Has anyone run into this problem, and what is the solution?

-- 
\ Craig Patrick McDaniel
/_\ Software Engineer
/_/_\ n + 1, Inc.
/_/_/_\ http://www.nplus1.net
/_/_/_/_\ (502) 479-5557

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-user-help@jakarta.apache.org


Re: Read error at end of file

Posted by Craig McDaniel <cr...@nplus1.net>.
On Mon, Sep 08, 2003 at 04:23:57PM -0400, Craig McDaniel wrote:
> On Sun, Sep 07, 2003 at 04:06:34PM -0400, Craig McDaniel wrote:
> > I am trying to use the event model in poi-1.5.1-final to read in a
> > spreadsheet. I kept getting the following error after it had processed
> > all the records in my XLS file:
> > 
> > org.apache.poi.hssf.record.RecordFormatException: Error reading bytes
> > 	at org.apache.poi.hssf.eventmodel.HSSFEventFactory.processEvents(HSSFEventFactory.java:179)
> > 	at org.apache.poi.hssf.dev.EFHSSF.run(EFHSSF.java:107)
> > 	at org.apache.poi.hssf.dev.EFHSSF.main(EFHSSF.java:191)
> > Exception in thread "main" 
> > 
> > As you can see, I tried it with the example class EFHSSF and had the
> > same result. This leads me to believe that there is something wrong
> > with my XLS file, there is a bug in HSSFEventFactory.processEvents(),
> > or both. Has anyone run into this problem, and what is the solution?
> 
> Does anyone even use the event model? I've been browsing the bug list
> and can't find but a few bug reports concerning the event
> model. Can anyone confirm if this is a bug?
> 
> Perhaps I should try the latest development snapshot.

If anyone cares, I grabbed the HEAD from CVS and it works now. I guess
it was a bug after all.

Later,
-- 
\ Craig Patrick McDaniel
/_\ Software Engineer
/_/_\ n + 1, Inc.
/_/_/_\ http://www.nplus1.net
/_/_/_/_\ (502) 479-5557

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-user-help@jakarta.apache.org


Re: Read error at end of file

Posted by Avik Sengupta <av...@apache.org>.
I would suggest you try out the 2.0pre3 release and see if you get the
same error. 

Regards
-
avik


On Tue, 2003-09-09 at 01:53, Craig McDaniel wrote:
> On Sun, Sep 07, 2003 at 04:06:34PM -0400, Craig McDaniel wrote:
> > I am trying to use the event model in poi-1.5.1-final to read in a
> > spreadsheet. I kept getting the following error after it had processed
> > all the records in my XLS file:
> > 
> > org.apache.poi.hssf.record.RecordFormatException: Error reading bytes
> > 	at org.apache.poi.hssf.eventmodel.HSSFEventFactory.processEvents(HSSFEventFactory.java:179)
> > 	at org.apache.poi.hssf.dev.EFHSSF.run(EFHSSF.java:107)
> > 	at org.apache.poi.hssf.dev.EFHSSF.main(EFHSSF.java:191)
> > Exception in thread "main" 
> > 
> > As you can see, I tried it with the example class EFHSSF and had the
> > same result. This leads me to believe that there is something wrong
> > with my XLS file, there is a bug in HSSFEventFactory.processEvents(),
> > or both. Has anyone run into this problem, and what is the solution?
> 
> Does anyone even use the event model? I've been browsing the bug list
> and can't find but a few bug reports concerning the event
> model. Can anyone confirm if this is a bug?
> 
> Perhaps I should try the latest development snapshot.
> 
> Later.


---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-user-help@jakarta.apache.org


Re: Read error at end of file

Posted by Craig McDaniel <cr...@nplus1.net>.
On Sun, Sep 07, 2003 at 04:06:34PM -0400, Craig McDaniel wrote:
> I am trying to use the event model in poi-1.5.1-final to read in a
> spreadsheet. I kept getting the following error after it had processed
> all the records in my XLS file:
> 
> org.apache.poi.hssf.record.RecordFormatException: Error reading bytes
> 	at org.apache.poi.hssf.eventmodel.HSSFEventFactory.processEvents(HSSFEventFactory.java:179)
> 	at org.apache.poi.hssf.dev.EFHSSF.run(EFHSSF.java:107)
> 	at org.apache.poi.hssf.dev.EFHSSF.main(EFHSSF.java:191)
> Exception in thread "main" 
> 
> As you can see, I tried it with the example class EFHSSF and had the
> same result. This leads me to believe that there is something wrong
> with my XLS file, there is a bug in HSSFEventFactory.processEvents(),
> or both. Has anyone run into this problem, and what is the solution?

Does anyone even use the event model? I've been browsing the bug list
and can't find but a few bug reports concerning the event
model. Can anyone confirm if this is a bug?

Perhaps I should try the latest development snapshot.

Later.
-- 
\ Craig Patrick McDaniel
/_\ Software Engineer
/_/_\ n + 1, Inc.
/_/_/_\ http://www.nplus1.net
/_/_/_/_\ (502) 479-5557

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-user-help@jakarta.apache.org