java.lang.NoClassDefFoundError: sun/reflect/ConstructorAccessorImpl

Google Groups | Unknown author | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

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