Here are some possibilities.

You may have more than one version of POI on your classpath. I've heard that some IDEs are sticky about with the classpath.

A review of http://poi.apache.org/changes.html finds these bugs recently fixed.

POI 3.5-FINAL fixed this bug:
47415 - Fixed PageSettingsBlock to allow multiple PLS records(POI- DEVELOPERS)

POI 3.5-beta6 fixed these bugs:
47199 - Fixed PageSettingsBlock/Sheet to tolerate margin records after other non-PSB records(POI-DEVELOPERS) 46953 - More tweaks to PageSettingsBlock parsing logic in Sheet constructor(POI-DEVELOPERS) 46840 - PageSettingsBlock should include HEADERFOOTER record(POI- DEVELOPERS)

It is possible that your file is another example of an unusually formed (from our experience) document.

What application created your original file? Has it been processed by prior versions of POI?

Bugs are always possible.

Regards,
Dave

On Oct 12, 2009, at 9:34 AM, alexvgs wrote:


I get the same error when using the samples provided by apache.

Here's what I did:

I copied and executed
http://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/hssf/usermodel/examples/ReadWriteWorkbook.java
ReadWriteWorkbook.java from the Apache samples and I got the same error.

So either I'm missing something very basic or this bug has not be resolved
in the latest release of Apache. I find the latter assumption quite
difficult to believe.

Let me know your thoughts.
--
View this message in context: 
http://www.nabble.com/Getting-Duplicate-PageSettingsBlock-record-%28sid%3D0x89c%29-with-POI-3.5-tp25855918p25858960.html
Sent from the POI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to