[jboss-osgi-issues] [JBoss JIRA] (JBOSGI-507) NPE in URL.openConnection() for bundle:// protocol
Thomas Diesler (JIRA)
jira-events at lists.jboss.org
Wed Jan 25 09:53:49 EST 2012
[ https://issues.jboss.org/browse/JBOSGI-507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Diesler updated JBOSGI-507:
----------------------------------
Description:
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.
{code}
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]
...
{code}
was:
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]
...
> 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
> Fix For: JBossOSGi 1.0.1
>
> Attachments: gofer-sandbox2.jar
>
>
> 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.
> {code}
> 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]
> ...
> {code}
--
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
More information about the jboss-osgi-issues
mailing list