Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-7102

DavEx integration tests fail on Java 9 - javax.jcr.RepositoryFactory is not an ImageIO SPI class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Starter 10
    • Testing
    • None

    Description

      This seems to be a stricter constraint in Java 9 when using the javax.imageio.spi.ServiceRegistry class:

      Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0 sec <<< FAILURE! - in org.apache.sling.launchpad.webapp.integrationtest.DavExIntegrationTest
      testDescriptor(org.apache.sling.launchpad.webapp.integrationtest.DavExIntegrationTest)  Time elapsed: 0 sec  <<< ERROR!
      java.lang.IllegalArgumentException: javax.jcr.RepositoryFactory is not an ImageIO SPI class
      	at java.desktop/javax.imageio.spi.ServiceRegistry.checkClassAllowed(ServiceRegistry.java:745)
      	at java.desktop/javax.imageio.spi.ServiceRegistry.lookupProviders(ServiceRegistry.java:230)
      	at org.apache.jackrabbit.commons.JcrUtils.getRepository(JcrUtils.java:189)
      	at org.apache.jackrabbit.commons.JcrUtils.getRepository(JcrUtils.java:263)
      	at org.apache.sling.launchpad.webapp.integrationtest.DavExIntegrationTest.setUp(DavExIntegrationTest.java:47)
      
      testReadNode(org.apache.sling.launchpad.webapp.integrationtest.DavExIntegrationTest)  Time elapsed: 0 sec  <<< ERROR!
      java.lang.IllegalArgumentException: javax.jcr.RepositoryFactory is not an ImageIO SPI class
      	at java.desktop/javax.imageio.spi.ServiceRegistry.checkClassAllowed(ServiceRegistry.java:745)
      	at java.desktop/javax.imageio.spi.ServiceRegistry.lookupProviders(ServiceRegistry.java:230)
      	at org.apache.jackrabbit.commons.JcrUtils.getRepository(JcrUtils.java:189)
      	at org.apache.jackrabbit.commons.JcrUtils.getRepository(JcrUtils.java:263)
      	at org.apache.sling.launchpad.webapp.integrationtest.DavExIntegrationTest.setUp(DavExIntegrationTest.java:47)

      Attachments

        Issue Links

          Activity

            People

              rombert Robert Munteanu
              rombert Robert Munteanu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: