NPE in URL.openConnection() for bundle:// protocol
--------------------------------------------------
Key: JBOSGI-507
URL:
https://issues.jboss.org/browse/JBOSGI-507
Project: JBoss OSGi
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Core Framework
Reporter: Martin Ždila
Assignee: Thomas Diesler
Priority: Critical
Version: jboss-as-7.1.0.CR1b
I am getting NullPointerException when calling new
URL("bundle://my.bundle-60-0-0/some/path/resource.xml").openConnection();
The URL is actually resolved as bundle.getEntry("some/path/resource.xml") and
the resource exists. The testcase works in Apache Felix.
Stacktrace:
15:49:09,983 WARN [org.eclipse.jetty.util.log] (qtp767222020-128)
/some/path/resource.xml: java.lang.NullPointerException
at
org.jboss.osgi.framework.internal.BundleProtocolHandler.openConnection(BundleProtocolHandler.java:52)
at
org.jboss.osgi.framework.internal.URLHandlerPlugin$URLStreamHandlerProxy.openConnection(URLHandlerPlugin.java:309)
at java.net.URL.openConnection(URL.java:945) [:1.6.0_26]
...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira