java.lang.NoClassDefFoundError: sun/reflect/ConstructorAccessorImpl

Google Groups | Unknown author | 6 years ago
  1. 0

    I'm seeing spring errors on startup of the Confluence VM. This proceeds all the way through the startup until the VM runs out of space in PermGen. {noformat} 2010-06-28 16:41:41,602 INFO [main] [atlassian.plugin.manager.DefaultPluginManager] init Initialising the plugin system 2010-06-28 16:42:16,393 ERROR [Spring executor 3] [plugin.osgi.factory.OsgiPlugin] onSpringContextFailed Unable to start the Spring context for plugin com.atlassian.confluence.plugins.gadgets org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [bundle://33.0:0/META-INF/spring/atlassian-plugins-component-imports.xml]; nested exception is java.lang.NoClassDefFoundError: sun/reflect/ConstructorAccessorImpl at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:214) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.NoClassDefFoundError: sun/reflect/ConstructorAccessorImpl 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.generateConstructor(MethodAccessorGenerator.java:76) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:30) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:78) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createBeanDefinitionDocumentReader(XmlBeanDefinitionReader.java:518) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:505) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398) ... 20 more Caused by: java.lang.ClassNotFoundException: sun.reflect.ConstructorAccessorImpl at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:814) at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1733) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) ... 34 more {noformat}

    Atlassian JIRA | 6 years ago | George Barnett
    org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [bundle://33.0:0/META-INF/spring/atlassian-plugins-component-imports.xml]; nested exception is java.lang.NoClassDefFoundError: sun/reflect/ConstructorAccessorImpl
  2. 0

    I'm seeing spring errors on startup of the Confluence VM. This proceeds all the way through the startup until the VM runs out of space in PermGen. {noformat} 2010-06-28 16:41:41,602 INFO [main] [atlassian.plugin.manager.DefaultPluginManager] init Initialising the plugin system 2010-06-28 16:42:16,393 ERROR [Spring executor 3] [plugin.osgi.factory.OsgiPlugin] onSpringContextFailed Unable to start the Spring context for plugin com.atlassian.confluence.plugins.gadgets org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [bundle://33.0:0/META-INF/spring/atlassian-plugins-component-imports.xml]; nested exception is java.lang.NoClassDefFoundError: sun/reflect/ConstructorAccessorImpl at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:214) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.NoClassDefFoundError: sun/reflect/ConstructorAccessorImpl 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.generateConstructor(MethodAccessorGenerator.java:76) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:30) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:78) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createBeanDefinitionDocumentReader(XmlBeanDefinitionReader.java:518) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:505) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398) ... 20 more Caused by: java.lang.ClassNotFoundException: sun.reflect.ConstructorAccessorImpl at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:814) at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1733) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) ... 34 more {noformat}

    Atlassian JIRA | 6 years ago | George Barnett
    org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [bundle://33.0:0/META-INF/spring/atlassian-plugins-component-imports.xml]; nested exception is java.lang.NoClassDefFoundError: sun/reflect/ConstructorAccessorImpl
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Android opencv library reference is not working correctly

    Stack Overflow | 4 years ago | Yoda
    java.lang.ClassNotFoundException: org.opencv.R$styleable
  5. 0

    Cannot start embeded Apache Felix

    Stack Overflow | 4 years ago | Peter Penzov
    java.lang.NoClassDefFoundError: org/osgi/framework/launch/FrameworkFactory

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassNotFoundException

      sun.reflect.ConstructorAccessorImpl

      at org.ops4j.peaberry.internal.ImportProxyClassLoader.findClass()
    2. org.ops4j.peaberry
      ImportProxyClassLoader.findClass
      1. org.ops4j.peaberry.internal.ImportProxyClassLoader.findClass(ImportProxyClassLoader.java:147)
      1 frame
    3. Java RT
      ClassLoader.loadClass
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      1 frame
    4. org.ops4j.peaberry
      ImportProxyClassLoader.loadClass
      1. org.ops4j.peaberry.internal.ImportProxyClassLoader.loadClass(ImportProxyClassLoader.java:131)
      1 frame
    5. Java RT
      Constructor.newInstance
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      2. sun.misc.Unsafe.defineClass(Native Method)
      3. sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45)
      4. sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381)
      5. java.security.AccessController.doPrivileged(Native Method)
      6. sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377)
      7. sun.reflect.MethodAccessorGenerator.generateConstructor(MethodAccessorGenerator.java:76)
      8. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:30)
      9. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      10. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      10 frames
    6. org.ops4j.peaberry
      SingleServiceProvider.get
      1. org.ops4j.peaberry.internal.ServiceProxyFactory.buildProxy(ServiceProxyFactory.java:102)
      2. org.ops4j.peaberry.internal.ServiceProxyFactory.serviceProxy(ServiceProxyFactory.java:94)
      3. org.ops4j.peaberry.internal.SingleServiceProvider.get(SingleServiceProvider.java:50)
      3 frames
    7. Google Guice - Core Library
      InjectorImpl.getInstance
      1. com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      2. com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
      3. com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
      4. com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84)
      5. com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
      6. com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
      7. com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
      8. com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
      9. com.google.inject.Scopes$1$1.get(Scopes.java:65)
      10. com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      11. com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
      12. com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
      13. com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84)
      14. com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
      15. com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
      16. com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
      17. com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
      18. com.google.inject.Scopes$1$1.get(Scopes.java:65)
      19. com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      20. com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:54)
      21. com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
      22. com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
      23. com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
      24. com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1009)
      24 frames
    8. org.ops4j.peaberry
      ExportedServiceProvider.get
      1. org.ops4j.peaberry.internal.Setting$2.get(Setting.java:79)
      2. org.ops4j.peaberry.internal.ServiceSettings.getExport(ServiceSettings.java:171)
      3. org.ops4j.peaberry.internal.ExportedServiceProvider.get(ExportedServiceProvider.java:46)
      4. org.ops4j.peaberry.internal.ExportedServiceProvider.get(ExportedServiceProvider.java:32)
      4 frames
    9. Google Guice - Core Library
      InjectorImpl.getInstance
      1. com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
      2. com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
      3. com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
      4. com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
      5. com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1009)
      5 frames
    10. org.ops4j.peaberry
      BundleTracker.bundleChanged
      1. org.ops4j.peaberry.activation.internal.InstanceBundleRoot.activate(InstanceBundleRoot.java:45)
      2. org.ops4j.peaberry.activation.internal.BundleActivation.activate(BundleActivation.java:178)
      3. org.ops4j.peaberry.activation.internal.BundleActivation.update(BundleActivation.java:156)
      4. org.ops4j.peaberry.activation.internal.StateBundleActivationTracker.start(StateBundleActivationTracker.java:38)
      5. org.ops4j.peaberry.activation.internal.BundleActivation.start(BundleActivation.java:136)
      6. org.ops4j.peaberry.activation.internal.BundleTracker.start(BundleTracker.java:103)
      7. org.ops4j.peaberry.activation.internal.BundleTracker.bundleChanged(BundleTracker.java:82)
      7 frames
    11. Apache Felix Framework
      BundleImpl.start
      1. org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:807)
      2. org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:729)
      3. org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)
      4. org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3883)
      5. org.apache.felix.framework.Felix.startBundle(Felix.java:1797)
      6. org.apache.felix.framework.BundleImpl.start(BundleImpl.java:927)
      6 frames
    12. Apache Felix Gogo Command
      Basic.start
      1. org.apache.felix.gogo.command.Basic.start(Basic.java:758)
      1 frame
    13. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    14. Apache Felix Gogo Runtime
      CommandSessionImpl.execute
      1. org.apache.felix.gogo.runtime.Reflective.method(Reflective.java:136)
      2. org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
      3. org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:469)
      4. org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:395)
      5. org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
      6. org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
      7. org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
      8. org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
      8 frames
    15. Felix Gogo
      Shell.gosh
      1. org.apache.felix.gogo.shell.Console.run(Console.java:62)
      2. org.apache.felix.gogo.shell.Shell.console(Shell.java:203)
      3. org.apache.felix.gogo.shell.Shell.gosh(Shell.java:128)
      3 frames
    16. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    17. Apache Felix Gogo Runtime
      CommandSessionImpl.execute
      1. org.apache.felix.gogo.runtime.Reflective.method(Reflective.java:136)
      2. org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
      3. org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:469)
      4. org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:395)
      5. org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
      6. org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
      7. org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
      8. org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
      8 frames
    18. Felix Gogo
      Activator.run
      1. org.apache.felix.gogo.shell.Activator.run(Activator.java:75)
      1 frame
    19. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:680)
      1 frame