Hi Nufail,
some ideas you might want to try:
- Enable DEBUG logging to see which bundle is being installed when the
exception is thrown.
- This might be your own bundle or one of Pax Exam's bundles.
- My guess is you're missing one of the pax-url-* dependencies required
to install the Exam bundles.
By the way, you don't need the felix() option with the Native Test
Container. It's enough to put the OSGi framework of your choice on the
classpath, so that java.util.ServiceLoader will find it.
Hope that helps,
Harald
Am 11.08.2012 16:52, schrieb Mohamed Nufail:
Hi,
I'm trying out PaxExam butI get the following exception when running it.|
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)
My configuration looks like this and I'm running Pax Exam 2.5.0
|@Configuration
public Option[] config() {
return options(
bundle("file:/home/nufail/mybundle.jar"),
junitBundles(),
felix().version("3.2.2")
);
}
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general