You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2009/07/23 12:53:47 UTC
DO NOT REPLY [Bug 47563] New: Exception when working with table
https://issues.apache.org/bugzilla/show_bug.cgi?id=47563
Summary: Exception when working with table
Product: POI
Version: 3.5-dev
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: NEW
Severity: normal
Priority: P2
Component: HWPF
AssignedTo: dev@poi.apache.org
ReportedBy: udittmer@yahoo.com
Created an attachment (id=24022)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=24022)
creates DOC files with tables in various sizes; only the 2x2 table is OK
The attached source file creates DOC files containing a single table. Filling
in the table contents only works for the 2x2 table; all other table sizes cause
an exception to be thrown like this one:
java.lang.IllegalArgumentException: The end (15) must not be before the start
(17)
at org.apache.poi.hwpf.usermodel.Range.sanityCheckStartEnd(Range.java:247)
at org.apache.poi.hwpf.usermodel.Range.<init>(Range.java:181)
at org.apache.poi.hwpf.usermodel.Paragraph.<init>(Paragraph.java:103)
at org.apache.poi.hwpf.usermodel.Range.getParagraph(Range.java:830)
at CreateWordDocTable.test(CreateWordDocTable.java:31)
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 47563] Exception when working with table
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47563
Sergey Vladimirov <vl...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #5 from Sergey Vladimirov <vl...@gmail.com> ---
Can't reproduce with latest trunk code.
Seems to be fixed already, since there is additional checks in
Range.findRange(...)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
DO NOT REPLY [Bug 47563] Exception when working with table
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47563
--- Comment #1 from awm@mbcli.com 2009-08-09 14:47:13 PDT ---
I just tried this and at least with 2007 I can't open the 2x2 either. It's
corrupted.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
DO NOT REPLY [Bug 47563] Exception when working with table
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47563
--- Comment #4 from georgosn@yahoo.com 2011-11-15 15:49:06 UTC ---
Now it fails with
java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.get(Unknown Source)
at org.apache.poi.hwpf.usermodel.Range.findRange(Range.java:1060)
at org.apache.poi.hwpf.usermodel.Range.initCharacterRuns(Range.java:953)
at org.apache.poi.hwpf.usermodel.Range.initAll(Range.java:931)
at org.apache.poi.hwpf.usermodel.Range.insertAfter(Range.java:352)
at org.apache.poi.hwpf.usermodel.Range.insertTableBefore(Range.java:632)
at
lu.intrasoft.poi.utilities.tablehandler.Writer.startTable(Writer.java:52)
at
lu.intrasoft.poi.utilities.tablehandler.WriterTest.testMakeThedocument(WriterTest.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
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)
any thoughts?
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
DO NOT REPLY [Bug 47563] Exception when working with table
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47563
Yegor Kozlov <ye...@dinom.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS/Version| |All
Severity|blocker |normal
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
DO NOT REPLY [Bug 47563] Exception when working with table
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47563
georgosn@yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
DO NOT REPLY [Bug 47563] Exception when working with table
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47563
georgosn@yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P1
Platform|Macintosh |PC
OS/Version|Mac OS X 10.4 |Windows 7
Severity|normal |blocker
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
DO NOT REPLY [Bug 47563] Exception when working with table
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47563
--- Comment #2 from Yegor Kozlov <ye...@dinom.ru> 2011-06-24 08:22:57 UTC ---
The problem is still reproducible in trunk.
Yegor
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
DO NOT REPLY [Bug 47563] Exception when working with table
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47563
Sergey Vladimirov <vl...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Sergey Vladimirov <vl...@gmail.com> 2011-07-07 12:57:53 UTC ---
Fixed in r1143802; shall be part of 3.8-beta4
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org