You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2010/12/11 15:41:00 UTC

[jira] Commented: (SLING-1895) sun.reflect.MethodAccessorImpl not correctly boot delegated

    [ https://issues.apache.org/jira/browse/SLING-1895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12970465#action_12970465 ] 

Felix Meschberger commented on SLING-1895:
------------------------------------------

I am not in favor of adding this. In fact, I am even contemplating removing the com.yourkit.* configuration ...

But then, this is something we cannot control and it may be the best solution to try to go this route.

Have you tried to only add sun.reflect to the bootdelegation:

    org.osgi.framework.bootdelegation=com.yourkit.*,sun.reflect

If we can limit the addition to this package, I would be ok.

Am I right that this issue only occurrs after a few calls ? For example as discussed in http://www.mail-archive.com/users@felix.apache.org/msg07724.html

> sun.reflect.MethodAccessorImpl not correctly boot delegated
> -----------------------------------------------------------
>
>                 Key: SLING-1895
>                 URL: https://issues.apache.org/jira/browse/SLING-1895
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>            Reporter: Michael Dürig
>
> When running the forum sample application (Scala) I'm getting
> java.lang.NoClassDefFoundError: sun/reflect/MethodAccessorImpl
> 	at sun.misc.Unsafe.defineClass(Native Method)
> 	at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45)
> 	at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377)
> 	at sun.reflect.MethodAccessorGenerator.generateMethod(MethodAccessorGenerator.java:59)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:28)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> By manually editing the sling.properties file in my sling folder:
> org.osgi.framework.bootdelegation=com.yourkit.*,sun.*,sun.com.*
> the error goes away. 
> Can we add the sun packages to boot delegation by default?

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