Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
JUnit Core 1.1.0
-
None
Description
The integration tests under src/it/annotations-it fail with jdk11 as follows:
INFO] [INFO] Running org.apache.sling.junit.annotations.ReferenceIT [INFO] [main] INFO org.ops4j.pax.exam.spi.DefaultExamSystem - Pax Exam System (Version: 4.13.4) created. ... [INFO] WARNING: An illegal reflective access operation has occurred [INFO] WARNING: Illegal reflective access by org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender (file:/Users/bert/workspace/apache/sling/sling-org-apache-sling-junit-core/target/it-repo/org/apache/felix/org.apache.felix.framework/6.0.3/org.apache.felix.framework-6.0.3.jar) to method java.net.URLClassLoader.addURL(java.net.URL) [INFO] WARNING: Please consider reporting this to the maintainers of org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender [INFO] WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations ... [INFO] [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 89.29 s <<< FAILURE! - in org.apache.sling.junit.annotations.ReferenceIT [INFO] [ERROR] org.apache.sling.junit.annotations.ReferenceIT Time elapsed: 89.27 s <<< ERROR! [INFO] org.ops4j.pax.exam.TestContainerException: org.osgi.framework.BundleException: Could not create bundle object. [INFO] at org.ops4j.pax.exam.forked.ForkedTestContainer.start(ForkedTestContainer.java:168) [INFO] at org.ops4j.pax.exam.junit.PaxExamServer.before(PaxExamServer.java:87) [INFO] at org.apache.sling.junit.annotations.it@1.0.0/org.apache.sling.junit.annotations.ReferenceIT$1.before(ReferenceIT.java:61) ... [INFO] Caused by: org.osgi.framework.BundleException: Could not create bundle object. [INFO] at org.apache.felix.framework.Felix.installBundle(Felix.java:3312) [INFO] at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:147) [INFO] at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:120) [INFO] at org.ops4j.pax.swissbox.framework.RemoteFrameworkImpl.installBundle(RemoteFrameworkImpl.java:132) ... [INFO] Caused by: java.lang.UnsupportedOperationException: Unable to add extension bundle. [INFO] at org.apache.felix.framework.ExtensionManager.addExtensionBundle(ExtensionManager.java:430) [INFO] at org.apache.felix.framework.Felix.installBundle(Felix.java:3279) [INFO] at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:147) [INFO] at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:120) [INFO] at org.ops4j.pax.swissbox.framework.RemoteFrameworkImpl.installBundle(RemoteFrameworkImpl.java:132)
Attachments
Issue Links
- relates to
-
SLING-10216 Servlets annotations ITs fail with Java 11
- Closed
-
SLING-9839 Jenkins: Sonarcloud analysis with Java 11
- Resolved