poi project Exception

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

poi project Exception

范
After using poi 1.0.6 to insert pictures, Microsoft office word can be opened normally, but poi can not open the file again. Thrown as follows
java.lang.IllegalArgumentException: Value for parameter 'id' was out of bounds
at org.apache.poi.util.IdentifierManager.reserve (IdentifierManager.java:80)
at org.apache.poi.xwpf.usermodel.XWPFRun. <init> (XWPFRun.java:107)
at org.apache.poi.xwpf.usermodel.XWPFRun. <init> (XWPFRun.java:146)
at org.apache.poi.xwpf.usermodel.XWPFParagraph.buildRunsInOrderFromXml (XWPFParagraph.java:135)
at org.apache.poi.xwpf.usermodel.XWPFParagraph. <init> (XWPFParagraph.java:88)
at org.apache.poi.xwpf.usermodel.XWPFTableCell. <init> (XWPFTableCell.java:93)
at org.apache.poi.xwpf.usermodel.XWPFTableRow.getTableCells (XWPFTableRow.java:133)
at org.apache.poi.xwpf.usermodel.XWPFTableRow. <init> (XWPFTableRow.java:45)
at org.apache.poi.xwpf.usermodel.XWPFTable. <init> (XWPFTable.java:108)
at org.apache.poi.xwpf.usermodel.XWPFDocument.onDocumentRead (XWPFDocument.java:151)
at org.apache.poi.POIXMLDocument.load (POIXMLDocument.java:159)
at org.apache.poi.xwpf.usermodel.XWPFDocument. <init> (XWPFDocument.java:117)
at com.stpm.utils.WordUtils.showContent (WordUtils.java:612)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:601)
at org.junit.runners.model.FrameworkMethod $ 1.runReflectiveCall (FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run (ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively (FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate (InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf (ParentRunner.java: 325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild (BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild (BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner $ 3.run (ParentRunner.java: 290)
at org.junit.runners.ParentRunner $ 1.schedule (ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren (ParentRunner.java:288)
at org.junit.runners.ParentRunner.access $ 000 (ParentRunner.java:58)
at org.junit.runners.ParentRunner $ 2.evaluate (ParentRunner.java:268)
at org.junit.runners.ParentRunner.run (ParentRunner.java:363)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run (JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run (TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run (RemoteTestRunner.java: 390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main (RemoteTestRunner.java:197)
Reply | Threaded
Open this post in threaded view
|

Re: poi project Exception

kiwiwings
There's no POI 1.0.6 version - please try a current version - e.g. 3.17 - first, if that still fails with your document, please provide us your document in bugzilla.

Andi.



signature.asc (495 bytes) Download Attachment