>>>>> Freeman Fang <freeman.fang-re5jqeeqqe8avxtiumw...@public.gmane.org>:

> Hi,
> Please see the attached patch file, with it, that test can pass with jdk11.

Thanks!  No luck on my side, unfortunately...:-(

It still fails with the error messages below (However, I had to apply
everything except the top pom manually, and I may have done something
wrong...?
 
https://github.com/steinarb/scratch/commit/0e3f91871eadff73414879a165e3675a43143088)

I tried bumping felix framework to 6.0.3 but I still got the error
below.

...
[INFO] --- maven-surefire-plugin:2.22.0:test (default-test) @ authservice.tests 
---
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running no.priv.bang.authservice.tests.AuthserviceIntegrationTest
[org.ops4j.pax.exam.spi.DefaultExamSystem] : Pax Exam System (Version: 4.13.1) 
created.
[org.ops4j.store.intern.TemporaryStore] : Storage Area is /tmp/1560536800700-0
[org.ops4j.pax.exam.junit.impl.ProbeRunner] : creating PaxExam runner for class 
no.priv.bang.authservice.tests.AuthserviceIntegrationTest
[org.ops4j.pax.exam.spi.PaxExamRuntime] : Found TestContainerFactory: 
org.ops4j.pax.exam.karaf.container.internal.KarafTestContainerFactory
[org.ops4j.pax.exam.spi.DefaultExamSystem] : creating default probe
[org.ops4j.pax.exam.spi.reactors.ReactorManager] : No User defined probe hook 
found
[org.ops4j.pax.exam.spi.intern.DefaultTestAddress] : NEW ADDRESS= 
PaxExam-2efc4605-9051-47a5-bc0e-3c5676cb3145 parent=null 
root=[TestAddress:PaxExam-2efc4605-9051-47a5-bc0e-3c5676cb3145 
root:PaxExam-2efc4605-9051-47a5-bc0e-3c5676cb3145] 
args=[Ljava.lang.Object;@71a794e5
[org.ops4j.pax.exam.spi.DefaultExamReactor] : Staging reactor with probes: 1 
using strategy: org.ops4j.pax.exam.spi.reactors.PerClass@b59d31
[org.ops4j.store.intern.TemporaryStore] : Storage Area is /tmp/1560536800700-0
[org.ops4j.pax.exam.spi.intern.DefaultTestAddress] : NEW ADDRESS= 
PaxExam-dd25136e-4bdb-497a-ae3c-52e91e1c33e8 
parent=[TestAddress:PaxExam-2efc4605-9051-47a5-bc0e-3c5676cb3145 
root:PaxExam-2efc4605-9051-47a5-bc0e-3c5676cb3145] 
root=[TestAddress:PaxExam-2efc4605-9051-47a5-bc0e-3c5676cb3145 
root:PaxExam-2efc4605-9051-47a5-bc0e-3c5676cb3145] 
args=[Ljava.lang.Object;@12405818
[org.ops4j.pax.exam.junit.impl.ProbeRunner] : running test class 
no.priv.bang.authservice.tests.AuthserviceIntegrationTest
[org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer] : Creating RMI 
registry server on 127.0.0.1:21000
[org.ops4j.store.intern.TemporaryStore] : Storage Area is /tmp/1560536800700-0
[org.ops4j.pax.url.mvn.internal.Connection] : Resolving 
[mvn:org.apache.karaf/apache-karaf/4.2.5/zip]
[shaded.org.eclipse.aether.internal.impl.DefaultLocalRepositoryProvider] : 
Using manager SimpleLocalRepositoryManager with priority 0.0 for 
/home/sb/.m2/repository Ignored FQCN: 
shaded.org.eclipse.aether.internal.impl.slf4j.Slf4jLoggerFactory$Slf4jLoggerEx
[org.ops4j.pax.url.mvn.internal.AetherBasedResolver] : Resolved 
(org.apache.karaf:apache-karaf:zip:4.2.5) as 
/home/sb/.m2/repository/org/apache/karaf/apache-karaf/4.2.5/apache-karaf-4.2.5.zip
[shaded.org.apache.http.impl.conn.PoolingHttpClientConnectionManager] : 
Connection manager is shutting down Ignored FQCN: 
shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[shaded.org.apache.http.impl.conn.PoolingHttpClientConnectionManager] : 
Connection manager shut down Ignored FQCN: 
shaded.org.apache.commons.logging.impl.SLF4JLocationAwareLog
[org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer] : Found 0 
options when requesting OverrideJUnitBundlesOption.class
[org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer] : Test 
Container started in 1 millis
[org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer] : Wait for 
test container to finish its initialization [ RelativeTimeout value = 120000 ]
[org.ops4j.pax.exam.rbc.client.RemoteBundleContextClient] : Waiting for remote 
bundle context.. on 21000 name: 77cb317d-cfc4-4e90-ba44-40c39fc860e7 timout: [ 
RelativeTimeout value = 120000 ]
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by 
org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender
 
(file:/home/sb/workspaces/ws03/authservice/authservice.tests/target/exam/8330247c-009b-4577-98a0-e1d506c2cc2b/system/org/apache/felix/org.apache.felix.framework/5.6.12/org.apache.felix.framework-5.6.12.jar)
 to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of 
org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender
WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations
WARNING: All illegal access operations will be denied in a future release
[org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer] : Shutting 
down the test container (Pax Runner)
[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 120.762 
s <<< FAILURE! - in no.priv.bang.authservice.tests.AuthserviceIntegrationTest
[ERROR] no.priv.bang.authservice.tests.AuthserviceIntegrationTest  Time 
elapsed: 120.755 s  <<< ERROR!
java.lang.RuntimeException: Cannot get the remote bundle context
Caused by: java.rmi.NotBoundException: 77cb317d-cfc4-4e90-ba44-40c39fc860e7

[ERROR] no.priv.bang.authservice.tests.AuthserviceIntegrationTest  Time 
elapsed: 120.761 s  <<< ERROR!
java.lang.RuntimeException: Container never came up
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Errors: 
[ERROR]   
AuthserviceIntegrationTest.no.priv.bang.authservice.tests.AuthserviceIntegrationTest
 » Runtime
[ERROR]   
JUnit4Provider.invoke:159->executeTestSet:238->executeWithRerun:273->execute:365
 » Runtime
[INFO] 
[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:33 min
[INFO] Finished at: 2019-06-14T20:29:11+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on 
project authservice.tests: There are test failures.
[ERROR] 

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - ops4j@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ops4j+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ops4j/86tvcsou59.fsf%40dod.no.
For more options, visit https://groups.google.com/d/optout.

Reply via email to