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 26100] - 128-character message in IF statement cell causes HSSFWorkbook open failure
Date Tue, 13 Jan 2004 16:13:16 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26100>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26100

128-character message in IF statement cell causes HSSFWorkbook open failure





------- Additional Comments From jun.zuo@mscsoftware.com  2004-01-13 16:13 -------
With the attached Excel, the error is:

java.lang.reflect.InvocationTargetException: 
java.lang.StringIndexOutOfBoundsException: length must be >= 0
	at java.lang.String.<init>(Unknown Source)
	at java.lang.String.<init>(Unknown Source)
	at org.apache.poi.util.StringUtil.getFromCompressedUnicode
(StringUtil.java:212)
	at org.apache.poi.hssf.record.formula.StringPtg.<init>
(StringPtg.java:94)
	at org.apache.poi.hssf.record.formula.Ptg.createPtg(Ptg.java:272)
	at org.apache.poi.hssf.record.FormulaRecord.getParsedExpressionTokens
(FormulaRecord.java:181)
	at org.apache.poi.hssf.record.FormulaRecord.fillFields
(FormulaRecord.java:157)
	at org.apache.poi.hssf.record.Record.fillFields(Record.java:127)
	at org.apache.poi.hssf.record.Record.<init>(Record.java:92)
	at org.apache.poi.hssf.record.FormulaRecord.<init>
(FormulaRecord.java:122)
	at java.lang.reflect.Constructor.newInstance(Native Method)
	at org.apache.poi.hssf.record.RecordFactory.createRecord
(RecordFactory.java:257)
	at org.apache.poi.hssf.record.RecordFactory.createRecords
(RecordFactory.java:193)
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>
(HSSFWorkbook.java:207)
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>
(HSSFWorkbook.java:254)
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>
(HSSFWorkbook.java:235)

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


Mime
View raw message