poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Danny Mui <da...@muibros.com>
Subject Re: BiffViewer Errors and general advice on debuging please :)
Date Fri, 28 May 2004 20:43:27 GMT
Hi Tim,

BiffViewer is married directly to how HSSF parses an excel file.  Looks 
like the record there (looks like a formula) is choking HSSF hard. 
Attach a debugger and see who the culprit is :)



Tim Wilkins wrote:

> I've started to play around with the BiffViewer to see if I can get my 
> excel generator to work with 2.5. I've run the biff viewer against both 
> a file generated with the old 2.0 release (that works) and the 2.5 
> release (that does not) and interestingly the BiffViewer itself crashes 
> when it reads the 2.5 generated file.
> 
> Now I'm no expert on the underlying data structure of the XLS format but 
> even I take this as a bad omen! :) The error I get while running the 
> BiffViewer against the 2.5 generated file is:
> 
> [WARNING] Unknown Ptg 0 (0)
> [WARNING] Unknown Ptg 0 (0)
> [WARNING] Unknown Ptg 0 (0)
> java.lang.NegativeArraySizeException
>        at
> org.apache.poi.hssf.dev.BiffViewer.createRecords(BiffViewer.java:147)
>        at org.apache.poi.hssf.dev.BiffViewer.run(BiffViewer.java:110)
>        at org.apache.poi.hssf.dev.BiffViewer.main(BiffViewer.java:693)/
> 
> I get the "[WARNING] Unknown Ptg 0 (0)/" messages in 2.0 as well so I'm 
> not overly concerned about them (or should I be?) but not this 
> NegativeArraySizeException error.
> 
> Is this normal for the BiffViewer to crash on errant xls files or is my 
> file particularly bad or something? Any advice on how I should proceed 
> with the investigation would be much appriciated.
> 
> Cheers,
> 
> Tim
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: poi-user-help@jakarta.apache.org

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


Mime
View raw message