Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-4053

build test fails on jdk9

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.8
    • 2.0.9
    • None
    • Java Version: 9.0.1 (Oracle vendor)
      OS: Mac OS X 10.13.2
      Locale: en_BR
      encoding: UTF-8

    Description

      As reported by Diego Azevedo in the user mailing list:

      testRenderImage(org.apache.pdfbox.tools.imageio.TestImageIOUtils)  Time elapsed: 0.124 sec  <<< ERROR!
      java.lang.ExceptionInInitializerError: null
      	at java.desktop/javax.imageio.spi.ServiceRegistry.checkClassAllowed(ServiceRegistry.java:745)
      	at java.desktop/javax.imageio.spi.ServiceRegistry.lookupProviders(ServiceRegistry.java:230)
      	at com.levigo.jbig2.util.ServiceLookup.getServices(ServiceLookup.java:31)
      	at com.levigo.jbig2.util.log.LoggerFactory.getLogger(LoggerFactory.java:38)
      	at com.levigo.jbig2.util.log.LoggerFactory.getLogger(LoggerFactory.java:50)
      	at com.levigo.jbig2.JBIG2ImageReader.<clinit>(JBIG2ImageReader.java:49)
      	at com.levigo.jbig2.JBIG2ImageReaderSpi.createReaderInstance(JBIG2ImageReaderSpi.java:118)
      	at java.desktop/javax.imageio.spi.ImageReaderSpi.createReaderInstance(ImageReaderSpi.java:320)
      	at java.desktop/javax.imageio.ImageIO$ImageReaderIterator.next(ImageIO.java:532)
      	at java.desktop/javax.imageio.ImageIO$ImageReaderIterator.next(ImageIO.java:516)
      	at org.apache.pdfbox.filter.Filter.findImageReader(Filter.java:133)
      	at org.apache.pdfbox.filter.JBIG2Filter.decode(JBIG2Filter.java:54)
      	at org.apache.pdfbox.cos.COSInputStream.create(COSInputStream.java:69)
      	at org.apache.pdfbox.cos.COSStream.createInputStream(COSStream.java:167)
      	at org.apache.pdfbox.pdmodel.common.PDStream.createInputStream(PDStream.java:235)
      	at org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.<init>(PDImageXObject.java:125)
      	at org.apache.pdfbox.pdmodel.graphics.PDXObject.createXObject(PDXObject.java:70)
      	at org.apache.pdfbox.pdmodel.PDResources.getXObject(PDResources.java:409)
      	at org.apache.pdfbox.tools.imageio.TestImageIOUtils.checkSaveResources(TestImageIOUtils.java:77)
      	at org.apache.pdfbox.tools.imageio.TestImageIOUtils.doTestFile(TestImageIOUtils.java:123)
      	at org.apache.pdfbox.tools.imageio.TestImageIOUtils.testRenderImage(TestImageIOUtils.java:287)
      

      The cause is an outdated jbig2 dependency.

      Attachments

        Activity

          People

            tilman Tilman Hausherr
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: