Crossing-Tech / akka-osgi-sample

Apache License 2.0
4 stars 3 forks source link

Integration test fails #8

Open sandermak opened 10 years ago

sandermak commented 10 years ago

After fixing https://github.com/Crossing-Tech/akka-osgi-sample/issues/7, I ran into the following integration test error:


Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 37.15 sec <<< FAILURE!
verifyObtainingAHakkerViaTheTheDiningHakkersService:HakkerStatusTest.verifyObtainingAHakkerViaTheTheDiningHakkersService:KarafTestContainer{mvn:org.apache.karaf/apache-karaf/2.3.0/zip}(akka.osgi.sample.test.HakkerStatusTest)  Time elapsed: 36.599 sec  <<< ERROR!
java.lang.ClassNotFoundException: org.ops4j.pax.swissbox.framework.ServiceLookupException (no security manager: RMI class loader disabled)
    at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:395)
    at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:185)

earlier in the build output, the following exception was thrown during Karaf's startup:

2013-10-15 09:50:44,973 | ERROR | Thread-7         | FeaturesServiceImpl              | s.internal.FeaturesServiceImpl$2 1143 | 20 - org.apache.karaf.features.core - 2.3.0 | Error installing boot features
java.lang.Exception: Could not start bundle mvn:com.typesafe.akka/akka-cluster-experimental_2.10/2.2-SNAPSHOT in feature(s) akka-2.2-SNAPSHOT: The bundle "com.typesafe.akka.cluster.experimental_2.2.0.SNAPSHOT [59]" could not be resolved. Reason: Missing Constraint: Import-Package: net.sandrogrzicic.scalabuff; version="0.0.0"
    at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:476)[20:org.apache.karaf.features.core:2.3.0]
    at org.apache.karaf.features.internal.FeaturesServiceImpl$2.run(FeaturesServiceImpl.java:1141)[20:org.apache.karaf.features.core:2.3.0]
Caused by: org.osgi.framework.BundleException: The bundle "com.typesafe.akka.cluster.experimental_2.2.0.SNAPSHOT [59]" could not be resolved. Reason: Missing Constraint: Import-Package: net.sandrogrzicic.scalabuff; version="0.0.0"
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1332)[osgi-3.8.0.v20120529-1548.jar:]
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1316)[osgi-3.8.0.v20120529-1548.jar:]
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:323)[osgi-3.8.0.v20120529-1548.jar:]
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)[osgi-3.8.0.v20120529-1548.jar:]
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:292)[osgi-3.8.0.v20120529-1548.jar:]
    at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:473)[20:org.apache.karaf.features.core:2.3.0]
    ... 1 more

It seems like the latter exception is more informative. The first one looks like a follow-up exception because the classes around handling service lookup failure are not available.

rocketraman commented 10 years ago

@sandermak The akka-osgi-sample was merged upstream into the akka source code several months ago. I would suggest using that (same comment as #7)