You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2010/03/03 13:32:27 UTC

[jira] Commented: (FELIX-2119) Bundle update fails, if OBR is not installed

    [ https://issues.apache.org/jira/browse/FELIX-2119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840630#action_12840630 ] 

Felix Meschberger commented on FELIX-2119:
------------------------------------------

The problem is caused by the Thread.init method checking whether any security sensitive method, which is not final, is overwritten by the extension of the Thread class. This causes -- in the Sun VM -- all declared methods to be accessed which in turn causes the Resource interface to be required.

By refactoring the BsaeUpdateInstaller class in Rev. 918442/918443 the Thread class is now not overwritten any more and thus the methods are not accessed any longer. This should fix this issue.

> Bundle update fails, if OBR is not installed
> --------------------------------------------
>
>                 Key: FELIX-2119
>                 URL: https://issues.apache.org/jira/browse/FELIX-2119
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>            Reporter: Valentin Valchev
>
> The reason for this is that UpdateHelper depends on OBR service API. While OBR is not a core service, its absence shouldn't disallow execution of normal bundle life-cycle commands.
> Stack trace:
> Exception: java.lang.NoClassDefFoundError: [Lorg/osgi/service/obr/Resource;
>         at java.lang.Class.getDeclaredMethods0(Native Method)
>         at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
>         at java.lang.Class.getDeclaredMethod(Unknown Source)
>         at java.lang.Thread$1.run(Unknown Source)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.lang.Thread.auditSubclass(Unknown Source)
>         at java.lang.Thread.isCCLOverridden(Unknown Source)
>         at java.lang.Thread.init(Unknown Source)
>         at java.lang.Thread.<init>(Unknown Source)
>         at org.apache.felix.webconsole.internal.core.BaseUpdateInstallHelper.<init>(BaseUpdateInstallHelper.java:45)
>         at org.apache.felix.webconsole.internal.core.UpdateHelper.<init>(UpdateHelper.java:52)
>         at org.apache.felix.webconsole.internal.core.UpdateHelper.<init>(UpdateHelper.java:46)
>         at org.apache.felix.webconsole.internal.core.BundlesServlet$4.<init>(BundlesServlet.java:1283)
>         at org.apache.felix.webconsole.internal.core.BundlesServlet.update(BundlesServlet.java:1282)
>         at org.apache.felix.webconsole.internal.core.BundlesServlet.doPost(BundlesServlet.java:312)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:815)
>         at org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:372)

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