You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Josh Micich <jo...@gmail.com> on 2009/10/12 20:47:25 UTC

Re: Getting Duplicate PageSettingsBlock record (sid=0x89c) with POI 3.5

Dave is right, this bug looks a lot like recently fixed bugs
(especially 47415), however the sid was different in that case (0x4d).
 Unfortunately you haven't added the stack trace, so I can't confirm
whether you are running the latest version.  If you are sure you are
using POI 3.5-FINAL, please open a new bugzilla, and include both the
stack trace and the sample file which causes your bug.

cheers,
Josh

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


Re: Getting Duplicate PageSettingsBlock record (sid=0x89c) with POI 3.5

Posted by Josh Micich <jo...@gmail.com>.
Yes the stack-trace does match the latest version:
http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hssf/record/aggregates/PageSettingsBlock.java?annotate=788157&pathrev=788157


We'll probably need to look at the file to see whether the extra
HEADERFOOTER records belong to the same or a distinct
PageSettingsBlock.  Please open a bugzilla entry and attach the
offending XLS file.

A one-off work around may be to open the file in Excel and re-save it.
 That often cleans up unusual record placements.

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


Re: Getting Duplicate PageSettingsBlock record (sid=0x89c) with POI 3.5

Posted by alexvgs <al...@yahoo.com>.
Hello Josh/Dave,

Here's my stacktrace. Does this look like the latest version?

org.apache.poi.hssf.record.RecordFormatException: Duplicate
PageSettingsBlock record (sid=0x89c)
	at
org.apache.poi.hssf.record.aggregates.PageSettingsBlock.checkNotPresent(PageSettingsBlock.java:227)
	at
org.apache.poi.hssf.record.aggregates.PageSettingsBlock.readARecord(PageSettingsBlock.java:215)
	at
org.apache.poi.hssf.record.aggregates.PageSettingsBlock.addLateRecords(PageSettingsBlock.java:639)
	at org.apache.poi.hssf.model.Sheet.<init>(Sheet.java:222)
	at org.apache.poi.hssf.model.Sheet.createSheet(Sheet.java:158)
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:286)
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:200)
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:316)
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:297)
	at
com.medimmune.medical.eclinical.utils.ConvertXML2XLS.generateXLS(ConvertXML2XLS.java:224)
	at
com.medimmune.medical.eclinical.utils.ConvertXML2XLS.main(ConvertXML2XLS.java:257)


Let me know if you need anything else.

Thanks much for looking into this,
Alex
-- 
View this message in context: http://www.nabble.com/Getting-Duplicate-PageSettingsBlock-record-%28sid%3D0x89c%29-with-POI-3.5-tp25855918p25861221.html
Sent from the POI - User mailing list archive at Nabble.com.


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