You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Daniel Wilson (JIRA)" <ji...@apache.org> on 2010/02/10 04:04:27 UTC
[jira] Created: (PDFBOX-614) Rendering image results in
java.lang.NoSuchMethodError: java.awt.geom.GeneralPath.moveTo(DD)V
Rendering image results in java.lang.NoSuchMethodError: java.awt.geom.GeneralPath.moveTo(DD)V
---------------------------------------------------------------------------------------------
Key: PDFBOX-614
URL: https://issues.apache.org/jira/browse/PDFBOX-614
Project: PDFBox
Issue Type: Bug
Affects Versions: 1.0.0
Reporter: Daniel Wilson
Assignee: Daniel Wilson
This is using survey.pdf which is in our test set:
http://svn.eu.apache.org/viewvc/pdfbox/trunk/test/input/rendering/survey.pdf
The full dump is:
[junit] Testcase: testRenderImage took 22.108 sec
[junit] Caused an ERROR
[junit] java.awt.geom.GeneralPath.moveTo(DD)V
[junit] java.lang.NoSuchMethodError: java.awt.geom.GeneralPath.moveTo(DD)V
[junit] at org.apache.fontbox.cff.CharStringRenderer.rmoveTo(CharStringRenderer.java:122)
[junit] at org.apache.fontbox.cff.CharStringRenderer.handleCommand(CharStringRenderer.java:9
6)
[junit] at org.apache.fontbox.cff.CharStringHandler.handleSequence(CharStringHandler.java:46
)
[junit] at org.apache.fontbox.cff.CharStringRenderer.render(CharStringRenderer.java:48)
[junit] at org.apache.fontbox.cff.AFMFormatter.renderFont(AFMFormatter.java:134)
[junit] at org.apache.fontbox.cff.AFMFormatter.printCharMetrics(AFMFormatter.java:99)
[junit] at org.apache.fontbox.cff.AFMFormatter.printFontMetrics(AFMFormatter.java:78)
[junit] at org.apache.fontbox.cff.AFMFormatter.printFont(AFMFormatter.java:57)
[junit] at org.apache.fontbox.cff.AFMFormatter.format(AFMFormatter.java:50)
[junit] at org.apache.pdfbox.pdmodel.font.PDType1CFont.prepareFontMetric(PDType1CFont.java:4
96)
[junit] at org.apache.pdfbox.pdmodel.font.PDType1CFont.ensureLoaded(PDType1CFont.java:373)
[junit] at org.apache.pdfbox.pdmodel.font.PDType1CFont.getFontWidth(PDType1CFont.java:138)
[junit] at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:32
2)
[junit] at org.apache.pdfbox.util.operator.ShowTextGlyph.process(ShowTextGlyph.java:61)
[junit] at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:546)
[junit] at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:248)
[junit] at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:207)
[junit] at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:99)
[junit] at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:699)
[junit] at org.apache.pdfbox.util.PDFImageWriter.writeImage(PDFImageWriter.java:137)
[junit] at org.apache.pdfbox.util.PDFImageWriter.writeImage(PDFImageWriter.java:107)
[junit] at org.apache.pdfbox.util.TestPDFToImage.doTestFile(TestPDFToImage.java:111)
[junit] at org.apache.pdfbox.util.TestPDFToImage.testRenderImage(TestPDFToImage.java:180)
[junit]
[junit] Test org.apache.pdfbox.util.TestPDFToImage FAILED
I will attempt to correct this later in the week ... but if anyone else sees the correction first, I've no objection :)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PDFBOX-614) Rendering image results in
java.lang.NoSuchMethodError: java.awt.geom.GeneralPath.moveTo(DD)V
Posted by "Daniel Wilson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12831841#action_12831841 ]
Daniel Wilson commented on PDFBOX-614:
--------------------------------------
I now have this exception handled & logged ... rather than causing a crash.
If the other developers are satisfied with that, we can close this issue. If not ... the real solution appears to be in FontBox, not PDFBox.
> Rendering image results in java.lang.NoSuchMethodError: java.awt.geom.GeneralPath.moveTo(DD)V
> ---------------------------------------------------------------------------------------------
>
> Key: PDFBOX-614
> URL: https://issues.apache.org/jira/browse/PDFBOX-614
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.0.0
> Reporter: Daniel Wilson
> Assignee: Daniel Wilson
>
> This is using survey.pdf which is in our test set:
> http://svn.eu.apache.org/viewvc/pdfbox/trunk/test/input/rendering/survey.pdf
> The full dump is:
> [junit] Testcase: testRenderImage took 22.108 sec
> [junit] Caused an ERROR
> [junit] java.awt.geom.GeneralPath.moveTo(DD)V
> [junit] java.lang.NoSuchMethodError: java.awt.geom.GeneralPath.moveTo(DD)V
> [junit] at org.apache.fontbox.cff.CharStringRenderer.rmoveTo(CharStringRenderer.java:122)
> [junit] at org.apache.fontbox.cff.CharStringRenderer.handleCommand(CharStringRenderer.java:9
> 6)
> [junit] at org.apache.fontbox.cff.CharStringHandler.handleSequence(CharStringHandler.java:46
> )
> [junit] at org.apache.fontbox.cff.CharStringRenderer.render(CharStringRenderer.java:48)
> [junit] at org.apache.fontbox.cff.AFMFormatter.renderFont(AFMFormatter.java:134)
> [junit] at org.apache.fontbox.cff.AFMFormatter.printCharMetrics(AFMFormatter.java:99)
> [junit] at org.apache.fontbox.cff.AFMFormatter.printFontMetrics(AFMFormatter.java:78)
> [junit] at org.apache.fontbox.cff.AFMFormatter.printFont(AFMFormatter.java:57)
> [junit] at org.apache.fontbox.cff.AFMFormatter.format(AFMFormatter.java:50)
> [junit] at org.apache.pdfbox.pdmodel.font.PDType1CFont.prepareFontMetric(PDType1CFont.java:4
> 96)
> [junit] at org.apache.pdfbox.pdmodel.font.PDType1CFont.ensureLoaded(PDType1CFont.java:373)
> [junit] at org.apache.pdfbox.pdmodel.font.PDType1CFont.getFontWidth(PDType1CFont.java:138)
> [junit] at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:32
> 2)
> [junit] at org.apache.pdfbox.util.operator.ShowTextGlyph.process(ShowTextGlyph.java:61)
> [junit] at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:546)
> [junit] at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:248)
> [junit] at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:207)
> [junit] at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:99)
> [junit] at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:699)
> [junit] at org.apache.pdfbox.util.PDFImageWriter.writeImage(PDFImageWriter.java:137)
> [junit] at org.apache.pdfbox.util.PDFImageWriter.writeImage(PDFImageWriter.java:107)
> [junit] at org.apache.pdfbox.util.TestPDFToImage.doTestFile(TestPDFToImage.java:111)
> [junit] at org.apache.pdfbox.util.TestPDFToImage.testRenderImage(TestPDFToImage.java:180)
> [junit]
> [junit] Test org.apache.pdfbox.util.TestPDFToImage FAILED
> I will attempt to correct this later in the week ... but if anyone else sees the correction first, I've no objection :)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (PDFBOX-614) Rendering image results in
java.lang.NoSuchMethodError: java.awt.geom.GeneralPath.moveTo(DD)V
Posted by "Daniel Wilson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Wilson resolved PDFBOX-614.
----------------------------------
Resolution: Fixed
Fix Version/s: 1.0.0
Andreas' correction to FontBox corrects this.
> Rendering image results in java.lang.NoSuchMethodError: java.awt.geom.GeneralPath.moveTo(DD)V
> ---------------------------------------------------------------------------------------------
>
> Key: PDFBOX-614
> URL: https://issues.apache.org/jira/browse/PDFBOX-614
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.0.0
> Reporter: Daniel Wilson
> Assignee: Daniel Wilson
> Fix For: 1.0.0
>
>
> This is using survey.pdf which is in our test set:
> http://svn.eu.apache.org/viewvc/pdfbox/trunk/test/input/rendering/survey.pdf
> The full dump is:
> [junit] Testcase: testRenderImage took 22.108 sec
> [junit] Caused an ERROR
> [junit] java.awt.geom.GeneralPath.moveTo(DD)V
> [junit] java.lang.NoSuchMethodError: java.awt.geom.GeneralPath.moveTo(DD)V
> [junit] at org.apache.fontbox.cff.CharStringRenderer.rmoveTo(CharStringRenderer.java:122)
> [junit] at org.apache.fontbox.cff.CharStringRenderer.handleCommand(CharStringRenderer.java:9
> 6)
> [junit] at org.apache.fontbox.cff.CharStringHandler.handleSequence(CharStringHandler.java:46
> )
> [junit] at org.apache.fontbox.cff.CharStringRenderer.render(CharStringRenderer.java:48)
> [junit] at org.apache.fontbox.cff.AFMFormatter.renderFont(AFMFormatter.java:134)
> [junit] at org.apache.fontbox.cff.AFMFormatter.printCharMetrics(AFMFormatter.java:99)
> [junit] at org.apache.fontbox.cff.AFMFormatter.printFontMetrics(AFMFormatter.java:78)
> [junit] at org.apache.fontbox.cff.AFMFormatter.printFont(AFMFormatter.java:57)
> [junit] at org.apache.fontbox.cff.AFMFormatter.format(AFMFormatter.java:50)
> [junit] at org.apache.pdfbox.pdmodel.font.PDType1CFont.prepareFontMetric(PDType1CFont.java:4
> 96)
> [junit] at org.apache.pdfbox.pdmodel.font.PDType1CFont.ensureLoaded(PDType1CFont.java:373)
> [junit] at org.apache.pdfbox.pdmodel.font.PDType1CFont.getFontWidth(PDType1CFont.java:138)
> [junit] at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:32
> 2)
> [junit] at org.apache.pdfbox.util.operator.ShowTextGlyph.process(ShowTextGlyph.java:61)
> [junit] at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:546)
> [junit] at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:248)
> [junit] at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:207)
> [junit] at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:99)
> [junit] at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:699)
> [junit] at org.apache.pdfbox.util.PDFImageWriter.writeImage(PDFImageWriter.java:137)
> [junit] at org.apache.pdfbox.util.PDFImageWriter.writeImage(PDFImageWriter.java:107)
> [junit] at org.apache.pdfbox.util.TestPDFToImage.doTestFile(TestPDFToImage.java:111)
> [junit] at org.apache.pdfbox.util.TestPDFToImage.testRenderImage(TestPDFToImage.java:180)
> [junit]
> [junit] Test org.apache.pdfbox.util.TestPDFToImage FAILED
> I will attempt to correct this later in the week ... but if anyone else sees the correction first, I've no objection :)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PDFBOX-614) Rendering image results in
java.lang.NoSuchMethodError: java.awt.geom.GeneralPath.moveTo(DD)V
Posted by "Daniel Wilson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12832252#action_12832252 ]
Daniel Wilson commented on PDFBOX-614:
--------------------------------------
Yes, that does fix it.
Thanks, Andreas!
Also, the link to the test case doesn't work. It should be http://svn.apache.org/viewvc/pdfbox/trunk/src/test/resources/input/rendering/survey.pdf?view=co
> Rendering image results in java.lang.NoSuchMethodError: java.awt.geom.GeneralPath.moveTo(DD)V
> ---------------------------------------------------------------------------------------------
>
> Key: PDFBOX-614
> URL: https://issues.apache.org/jira/browse/PDFBOX-614
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.0.0
> Reporter: Daniel Wilson
> Assignee: Daniel Wilson
>
> This is using survey.pdf which is in our test set:
> http://svn.eu.apache.org/viewvc/pdfbox/trunk/test/input/rendering/survey.pdf
> The full dump is:
> [junit] Testcase: testRenderImage took 22.108 sec
> [junit] Caused an ERROR
> [junit] java.awt.geom.GeneralPath.moveTo(DD)V
> [junit] java.lang.NoSuchMethodError: java.awt.geom.GeneralPath.moveTo(DD)V
> [junit] at org.apache.fontbox.cff.CharStringRenderer.rmoveTo(CharStringRenderer.java:122)
> [junit] at org.apache.fontbox.cff.CharStringRenderer.handleCommand(CharStringRenderer.java:9
> 6)
> [junit] at org.apache.fontbox.cff.CharStringHandler.handleSequence(CharStringHandler.java:46
> )
> [junit] at org.apache.fontbox.cff.CharStringRenderer.render(CharStringRenderer.java:48)
> [junit] at org.apache.fontbox.cff.AFMFormatter.renderFont(AFMFormatter.java:134)
> [junit] at org.apache.fontbox.cff.AFMFormatter.printCharMetrics(AFMFormatter.java:99)
> [junit] at org.apache.fontbox.cff.AFMFormatter.printFontMetrics(AFMFormatter.java:78)
> [junit] at org.apache.fontbox.cff.AFMFormatter.printFont(AFMFormatter.java:57)
> [junit] at org.apache.fontbox.cff.AFMFormatter.format(AFMFormatter.java:50)
> [junit] at org.apache.pdfbox.pdmodel.font.PDType1CFont.prepareFontMetric(PDType1CFont.java:4
> 96)
> [junit] at org.apache.pdfbox.pdmodel.font.PDType1CFont.ensureLoaded(PDType1CFont.java:373)
> [junit] at org.apache.pdfbox.pdmodel.font.PDType1CFont.getFontWidth(PDType1CFont.java:138)
> [junit] at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:32
> 2)
> [junit] at org.apache.pdfbox.util.operator.ShowTextGlyph.process(ShowTextGlyph.java:61)
> [junit] at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:546)
> [junit] at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:248)
> [junit] at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:207)
> [junit] at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:99)
> [junit] at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:699)
> [junit] at org.apache.pdfbox.util.PDFImageWriter.writeImage(PDFImageWriter.java:137)
> [junit] at org.apache.pdfbox.util.PDFImageWriter.writeImage(PDFImageWriter.java:107)
> [junit] at org.apache.pdfbox.util.TestPDFToImage.doTestFile(TestPDFToImage.java:111)
> [junit] at org.apache.pdfbox.util.TestPDFToImage.testRenderImage(TestPDFToImage.java:180)
> [junit]
> [junit] Test org.apache.pdfbox.util.TestPDFToImage FAILED
> I will attempt to correct this later in the week ... but if anyone else sees the correction first, I've no objection :)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PDFBOX-614) Rendering image results in
java.lang.NoSuchMethodError: java.awt.geom.GeneralPath.moveTo(DD)V
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12831904#action_12831904 ]
Andreas Lehmkühler commented on PDFBOX-614:
-------------------------------------------
I've already fixed that issue with version 907941. The exception occured because of an unwanted Java 6 dependency. See [1] for further details. To avoid the exception just use the newest fontbox snapshot (fontbox-1.0-20100209.210141-3.jar) which can be found at [2]
[1] http://markmail.org/thread/r67cu5gqsd4eozsu
[2] https://repository.apache.org/content/repositories/snapshots/org/apache/pdfbox/fontbox/1.0-SNAPSHOT/
> Rendering image results in java.lang.NoSuchMethodError: java.awt.geom.GeneralPath.moveTo(DD)V
> ---------------------------------------------------------------------------------------------
>
> Key: PDFBOX-614
> URL: https://issues.apache.org/jira/browse/PDFBOX-614
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.0.0
> Reporter: Daniel Wilson
> Assignee: Daniel Wilson
>
> This is using survey.pdf which is in our test set:
> http://svn.eu.apache.org/viewvc/pdfbox/trunk/test/input/rendering/survey.pdf
> The full dump is:
> [junit] Testcase: testRenderImage took 22.108 sec
> [junit] Caused an ERROR
> [junit] java.awt.geom.GeneralPath.moveTo(DD)V
> [junit] java.lang.NoSuchMethodError: java.awt.geom.GeneralPath.moveTo(DD)V
> [junit] at org.apache.fontbox.cff.CharStringRenderer.rmoveTo(CharStringRenderer.java:122)
> [junit] at org.apache.fontbox.cff.CharStringRenderer.handleCommand(CharStringRenderer.java:9
> 6)
> [junit] at org.apache.fontbox.cff.CharStringHandler.handleSequence(CharStringHandler.java:46
> )
> [junit] at org.apache.fontbox.cff.CharStringRenderer.render(CharStringRenderer.java:48)
> [junit] at org.apache.fontbox.cff.AFMFormatter.renderFont(AFMFormatter.java:134)
> [junit] at org.apache.fontbox.cff.AFMFormatter.printCharMetrics(AFMFormatter.java:99)
> [junit] at org.apache.fontbox.cff.AFMFormatter.printFontMetrics(AFMFormatter.java:78)
> [junit] at org.apache.fontbox.cff.AFMFormatter.printFont(AFMFormatter.java:57)
> [junit] at org.apache.fontbox.cff.AFMFormatter.format(AFMFormatter.java:50)
> [junit] at org.apache.pdfbox.pdmodel.font.PDType1CFont.prepareFontMetric(PDType1CFont.java:4
> 96)
> [junit] at org.apache.pdfbox.pdmodel.font.PDType1CFont.ensureLoaded(PDType1CFont.java:373)
> [junit] at org.apache.pdfbox.pdmodel.font.PDType1CFont.getFontWidth(PDType1CFont.java:138)
> [junit] at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:32
> 2)
> [junit] at org.apache.pdfbox.util.operator.ShowTextGlyph.process(ShowTextGlyph.java:61)
> [junit] at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:546)
> [junit] at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:248)
> [junit] at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:207)
> [junit] at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:99)
> [junit] at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:699)
> [junit] at org.apache.pdfbox.util.PDFImageWriter.writeImage(PDFImageWriter.java:137)
> [junit] at org.apache.pdfbox.util.PDFImageWriter.writeImage(PDFImageWriter.java:107)
> [junit] at org.apache.pdfbox.util.TestPDFToImage.doTestFile(TestPDFToImage.java:111)
> [junit] at org.apache.pdfbox.util.TestPDFToImage.testRenderImage(TestPDFToImage.java:180)
> [junit]
> [junit] Test org.apache.pdfbox.util.TestPDFToImage FAILED
> I will attempt to correct this later in the week ... but if anyone else sees the correction first, I've no objection :)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.