You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Karl Pauls (JIRA)" <ji...@apache.org> on 2007/12/13 23:47:42 UTC

[jira] Resolved: (FELIX-435) StackOverflowError in URLHandlers.createStreamHandler() when creating URL on jamvm and Mika

     [ https://issues.apache.org/jira/browse/FELIX-435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karl Pauls resolved FELIX-435.
------------------------------

    Resolution: Fixed

The URLHandlers are now aware of the extension protocol. We will directly return the extension manager in case this protocol is used - pretty much like we already do for the bundle protocol. Seems to work on both, jamvm and Mika. 

> StackOverflowError in URLHandlers.createStreamHandler() when creating URL on jamvm and Mika 
> --------------------------------------------------------------------------------------------
>
>                 Key: FELIX-435
>                 URL: https://issues.apache.org/jira/browse/FELIX-435
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>            Reporter: Karl Pauls
>            Assignee: Karl Pauls
>
> It looks like we have an unfortunate interaction between our ExtensionManager and the URLHandlers on jamvm and Mika . 
> Basically, when a URL is created inside a bundle the URLHandlers are asked to find a stream handler. One step of this process is to do a Class.forName() which will use the framework classloader. Now, in case this happens to be a URLClassLoader we have added a URL with our ExtensionManager as a handler. This is not a problem unless the URL is toString()-ed and then recreated which seems to be the case for jamvm/classpath and Mika. 
> Subsequently, the attempt to find a handler for the protocol of the ExtensionManager URL will call URLHandlers.createStreamHandler() again and we have a loop until StackOverflowError. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.