[ 
https://issues.apache.org/jira/browse/PDFBOX-2453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14183365#comment-14183365
 ] 

Tilman Hausherr commented on PDFBOX-2453:
-----------------------------------------

Probably not, the bug report mentions that it would be fixed in 9. I'd change 
it as soon as somebody reports about 8 not working.

> Building on OpenJDK throws javax.imageio.IIOException
> -----------------------------------------------------
>
>                 Key: PDFBOX-2453
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2453
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 2.0.0
>         Environment: DISTRIB_ID=Ubuntu
> DISTRIB_RELEASE=12.04
> DISTRIB_CODENAME=precise
> DISTRIB_DESCRIPTION="Ubuntu 12.04.5 LTS"
> java version "1.7.0_65"
> OpenJDK Runtime Environment (IcedTea 2.5.3) (7u71-2.5.3-0ubuntu0.12.04.1)
> OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
>            Reporter: Juan Uys
>            Assignee: Tilman Hausherr
>             Fix For: 2.0.0
>
>
> Originally captured here: 
> http://stackoverflow.com/questions/26531191/pdfbox-throws-writeimage-error-when-building-on-openjdk
> I get this error when building with OpenJDK:
> {code}
> -------------------------------------------------------------------------------
> Test set: org.apache.pdfbox.pdmodel.graphics.image.JPEGFactoryTest
> -------------------------------------------------------------------------------
> Tests run: 6, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.804 sec <<< 
> FAILURE! - in org.apache.pdfbox.pdmodel.graphics.image.JPEGFactoryTest
> testCreateFromImageINT_ARGB(org.apache.pdfbox.pdmodel.graphics.image.JPEGFactoryTest)
>   Time elapsed: 0.387 sec  <<< ERROR!
> javax.imageio.IIOException: Invalid argument to native writeImage
>         at com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeImage(Native 
> Method)
>         at 
> com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeOnThread(JPEGImageWriter.java:1058)
>         at 
> com.sun.imageio.plugins.jpeg.JPEGImageWriter.write(JPEGImageWriter.java:360)
>         at javax.imageio.ImageWriter.write(ImageWriter.java:615)
>         at javax.imageio.ImageIO.doWrite(ImageIO.java:1612)
>         at javax.imageio.ImageIO.write(ImageIO.java:1578)
>         at 
> org.apache.pdfbox.pdmodel.graphics.image.ValidateXImage.validate(ValidateXImage.java:63)
>         at 
> org.apache.pdfbox.pdmodel.graphics.image.JPEGFactoryTest.testCreateFromImageINT_ARGB(JPEGFactoryTest.java:141)
> testCreateFromImage4BYTE_ABGR(org.apache.pdfbox.pdmodel.graphics.image.JPEGFactoryTest)
>   Time elapsed: 0.147 sec  <<< ERROR!
> javax.imageio.IIOException: Invalid argument to native writeImage
>         at com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeImage(Native 
> Method)
>         at 
> com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeOnThread(JPEGImageWriter.java:1058)
>         at 
> com.sun.imageio.plugins.jpeg.JPEGImageWriter.write(JPEGImageWriter.java:360)
>         at javax.imageio.ImageWriter.write(ImageWriter.java:615)
>         at javax.imageio.ImageIO.doWrite(ImageIO.java:1612)
>         at javax.imageio.ImageIO.write(ImageIO.java:1578)
>         at 
> org.apache.pdfbox.pdmodel.graphics.image.ValidateXImage.validate(ValidateXImage.java:63)
>         at 
> org.apache.pdfbox.pdmodel.graphics.image.JPEGFactoryTest.testCreateFromImage4BYTE_ABGR(JPEGFactoryTest.java:182)
> {code}
> I'm aware OpenJDK does not have a native JPEG encoder, and I can build with 
> Oracle JDK:
> {code}
> JAVA_HOME="/path/to/oracle/jdk" mvn clean compile
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to