java.lang.NoClassDefFoundError: sun/reflect/ConstructorAccessorImpl

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

    OSGi (Felix) on Android: NoClassDefFoundError: sun/reflect/ConstructorAccessorImpl

    Stack Overflow | 4 years ago | Rob Anderson
    java.lang.NoClassDefFoundError: sun/reflect/ConstructorAccessorImpl
  2. 0

    [groovy-user] groovy in a hosted OSGi environment

    Google Groups | 3 years ago | Anthony Bargnesi
    java.lang.NoClassDefFoundError: sun/reflect/ConstructorAccessorImpl
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    HibernatePersistence class not found exception with JPA + Hibernate + OSGI

    Stack Overflow | 2 years ago | user1926519
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter#53308cd' defined in OSGi resource[classpath:/spring/gdl-commons-db-jpa-context.xml|bnd.id=177|bnd.sym=gdl-open-domain]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/ejb/HibernatePersistence
  5. 0

    Bet6e.com Maven: NoClassDefFoundError: org.springframework.test.context.junit4.SpringJUnit4ClassRunner -

    bet6e.com | 12 months ago
    java.lang.NoClassDefFoundError: Could not initialize class org.springframework.test.context.junit4.SpringJUnit4ClassRunner
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.NoClassDefFoundError

    sun/reflect/ConstructorAccessorImpl

    at sun.misc.Unsafe.defineClass()
  2. Java RT
    Constructor.newInstance
    1. sun.misc.Unsafe.defineClass(Native Method)
    2. sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45)
    3. sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381)
    4. java.security.AccessController.doPrivileged(Native Method)
    5. sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377)
    6. sun.reflect.MethodAccessorGenerator.generateConstructor(MethodAccessorGenerator.java:76)
    7. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:30)
    8. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    9. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    9 frames
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. Apache Felix Gogo Command
    Basic.start
    1. org.apache.felix.gogo.command.Basic.start(Basic.java:758)
    1 frame
  10. 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
  11. 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
  12. 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
  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
    Closure.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)
    7 frames