poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44542] Cannot open a excel file in Excel 2003/ 2007 generated by poi
Date Thu, 06 Mar 2008 05:00:24 GMT

--- Comment #7 from Josh Micich <josh@gildedtree.com>  2008-03-05 21:00:23 PST ---
(In reply to comment #6)
> Created an attachment (id=21634)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=21634) [details]
> simple test to write random data to excel file
> this is a fast code from original code, trying to reproduce the corrupt file 
> you have to put two parameters the number of sheets and number of rows, to
> reproduce the error you have to put a lot of rows 

One more thing - in addition to reproducing the error, the code has to also
compile and run.

The code you sent is a long way from running.  There are mismatched brackets
(which I can't fix easily because the indenting is all wrong).  Once I got it
executing, I got a ClassCastException from this expression: (Map<String,
Object>) formato.get("data");

There are all sorts of apparent errors where the code keeps updating a map with
the same key and value (map only gets one entry) or the same map instance is
added to a list many times.

After attempting to fix all of this I ran the code with (hojas=1000,
renglones=256) and  the spreadsheet still opened in Excel OK.  Perhaps my fixes
obliterated some important part of the code.

I'm sorry if this is tedious, but it really helps to have some example code
that allows other people to easily reproduce your error.  Can you please
re-attach the example class after making sure that it actually compiles, runs,
and reproduces the error.

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

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

View raw message