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.

Reply via email to