You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Benson Margulies (JIRA)" <ji...@apache.org> on 2015/09/01 17:09:45 UTC

[jira] [Created] (KARAF-3967) Seemingly simple Karaf application fails with equinox as framework

Benson Margulies created KARAF-3967:
---------------------------------------

             Summary: Seemingly simple Karaf application fails with equinox as framework
                 Key: KARAF-3967
                 URL: https://issues.apache.org/jira/browse/KARAF-3967
             Project: Karaf
          Issue Type: Bug
    Affects Versions: 4.0.1
         Environment: Java 1.8.
            Reporter: Benson Margulies


If you clone git@github.com:bimargulies/karaf-loop-tc.git, and checkout the 'equinox' branch, and run mvn install with Maven 3.2.5, you will see the following exception, followed by the test hanging. jstack shows all karaf threads sitting around, none of them are doing anything. Eventually, pax-exam gives up and quits.



{noformat}
2015-09-01 11:02:07,533 | WARN  | pool-1-thread-1  | Activator                        | 8 - org.apache.karaf.features.core - 4.0.1 | Error starting activator
java.lang.IllegalStateException: BundleContext is no longer valid
	at org.eclipse.osgi.internal.framework.BundleContextImpl.checkValid(BundleContextImpl.java:983)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
	at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:463)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:]
	at org.apache.karaf.util.tracker.BaseActivator.registerMBean(BaseActivator.java:290)[8:org.apache.karaf.features.core:4.0.1]
	at org.apache.karaf.features.internal.osgi.Activator.doStart(Activator.java:262)[8:org.apache.karaf.features.core:4.0.1]
	at org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:233)[8:org.apache.karaf.features.core:4.0.1]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_05]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_05]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_05]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_05]
	at java.lang.Thread.run(Thread.java:745)[:1.8.0_05]
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)