On Wed, 5 Oct 2011, davord wrote:
I have a problem in regards to using apache POI for reading data from xlsx
files. I'm getting the POIXMLException caused by IOException: error:
Unexpected character encountered as stated below.

Looks like a corrupted file:

org.apache.poi.xssf.usermodel.XSSFFactory.createDocumentPart(XSSFFactory.java:59)
       ... 6 more
Caused by: java.io.IOException: error: Unexpected character encountered (lex
state 10): '<'
       at
org.apache.poi.xssf.model.StylesTable.readFrom(StylesTable.java:134)
       at org.apache.poi.xssf.model.StylesTable.<init>(StylesTable.java:91)
       ... 11 more

The xml parsing of the styles table is breaking due to an invalid / unexpected character

Nick

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

Reply via email to