Hi

My Excel File is created by Business Object XI R2. When I am trying to open
it with POI, I got this Exception :

Exception in thread "main" org.apache.poi.hssf.record.RecordFormatException:
Err
or reading bytes
        at
org.apache.poi.hssf.record.RecordInputStream.nextRecord(RecordInputSt
ream.java:115)
        at
org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.
java:123)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:2
46)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:1
69)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:1
51)
        at
com.gazdefrance.calorigazReporting.utils.ExcelUtils.openFichierExcel(
ExcelUtils.java:140)
        at
com.gazdefrance.calorigazReporting.cre.AlgorithmeCRE.initialisationWo
rkbook(AlgorithmeCRE.java:690)
        at
com.gazdefrance.calorigazReporting.cre.AlgorithmeCRE.mainCRE(Algorith
meCRE.java:107)
        at
com.gazdefrance.calorigazReporting.presentation.main.Launcher.startAp
plication(Launcher.java:133)
        at
com.gazdefrance.calorigazReporting.presentation.main.Launcher.main(La
uncher.java:104)
Caused by: org.apache.poi.util.LittleEndian$BufferUnderrunException: buffer
unde
rrun
        at
org.apache.poi.util.LittleEndian.readFromStream(LittleEndian.java:482
)
        at org.apache.poi.util.LittleEndian.readShort(LittleEndian.java:414)
        at
org.apache.poi.hssf.record.RecordInputStream.nextRecord(RecordInputSt
ream.java:113)


If I open it with Excel and save the file, POI can read it.

Is there any conversion method I can use to force the conversion to the
right format?


Thanks

Paul
-- 
View this message in context: 
http://www.nabble.com/Error-opening-a-Excel-File-tp19083161p19083161.html
Sent from the POI - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to