Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
Commons Testing 2.1.2
-
None
Description
Currently when deriving tests from RepositoryTestBase and running them with Java9 you see an error like
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:170) at org.apache.jackrabbit.commons.JcrUtils.getRepository(JcrUtils.java:244) at org.apache.sling.commons.testing.jcr.RepositoryUtil.startRepository(RepositoryUtil.java:107) at org.apache.sling.commons.testing.jcr.RepositoryProvider.getRepository(RepositoryProvider.java:68) at org.apache.sling.commons.testing.jcr.RepositoryTestBase.getRepository(RepositoryTestBase.java:67) at org.apache.sling.commons.testing.jcr.RepositoryTestBase.getSession(RepositoryTestBase.java:50) ...
This is due to the issue described in JCR-4179. Therefore the jackrabbit dependencies should be upgraded to at least 2.14.3.
Attachments
Issue Links
- is related to
-
SLING-10010 Make testing compliant with Java 9 and higher
- Closed
- relates to
-
JCR-4179 Test failures with Java 9 when using javax.imageio.spi.ServiceRegistry
- Closed
-
SLING-7166 Deprecate Commons Testing
- Open