Note that there are some explanatory texts on larger screens.

plurals
  1. POIllegalStateException when running Pax Exam
    text
    copied!<p>I get the following exception when running Pax Exam. My configuration includes a single bundle from file system and junit and felix only. Any idea why this happens?</p> <pre><code>java.lang.IllegalStateException: Stream handler unavailable due to: null at org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:311) at java.net.URL.openConnection(URL.java:945) at org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.java:155) at org.apache.felix.framework.cache.JarRevision.&amp;lt;init&amp;gt;(JarRevision.java:82) at org.apache.felix.framework.cache.JarRevision.&amp;lt;init&amp;gt;(JarRevision.java:60) at org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:868) at org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:549) at org.apache.felix.framework.cache.BundleArchive.&amp;lt;init&amp;gt;(BundleArchive.java:148) at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:251) at org.apache.felix.framework.Felix.installBundle(Felix.java:2541) at org.apache.felix.framework.Felix.installBundle(Felix.java:2501) at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:150) at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:123) at org.ops4j.pax.exam.nat.internal.NativeTestContainer.installAndStartBundles(NativeTestContainer.java:319) at org.ops4j.pax.exam.nat.internal.NativeTestContainer.start(NativeTestContainer.java:163) at org.ops4j.pax.exam.spi.reactors.AllConfinedStagedReactor.invoke(AllConfinedStagedReactor.java:67) at org.ops4j.pax.exam.junit.JUnit4TestRunner$2.evaluate(JUnit4TestRunner.java:284) at org.ops4j.pax.exam.junit.JUnit4TestRunner.run(JUnit4TestRunner.java:93) </code></pre> <p>EDIT: I'm using Pax Exam 2.5.0 and following is my configuration method.</p> <pre><code>@Configuration public Option[] config() { return options( bundle("file:/home/nufail/mybundle.jar"), junitBundles(), felix().version("3.2.2") ); } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload