On Thu, 24 Jul 2008, John Byrne wrote:
First of all, I know it's a very dated version of POI. Every time I
change something on this system it doesn't work any more so I haven't
had the chance to upgrade.
poi 2.5.1 dates from 4 years ago next week....
Finally, I need help with an error I'm having getting POI to work in a
new program. I'm getting the following error and I don't know what to
do because I can't troubleshoot it due to not having the source code.
The program stops in what looks like native code.
You need to look a bit futher down the stack trace, the interesting bit is
a nested exception:
Caused by: java.lang.IllegalArgumentException: Illegal length
at
org.apache.poi.util.StringUtil.getFromUnicodeHigh(StringUtil.java:76)
at
org.apache.poi.hssf.record.FontRecord.fillFields(FontRecord.java:135)
at org.apache.poi.hssf.record.Record.fillFields(Record.java:90)
at org.apache.poi.hssf.record.Record.<init>(Record.java:55)
at
org.apache.poi.hssf.record.FontRecord.<init>(FontRecord.java:88)
... 11 more
So there's an issue with a unicode string in a font record. Try it with
poi 3.1 to see if it's a corrupt record, or a bug in poi that's long since
fixed
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]