org.jvnet.hk2.component.ComponentException: injection failed on org.glassfish.api.invocation.InvocationManagerImpl.invHandlers with class [Lorg.glassfish.api.invocation.ComponentInvocationHandler;

coderanch.com | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    cannot retrieve stateless bean using JNDI (EJB and other Java EE Technologies forum at Coderanch)

    coderanch.com | 7 months ago
    org.jvnet.hk2.component.ComponentException: injection failed on org.glassfish.api.invocation.InvocationManagerImpl.invHandlers with class [Lorg.glassfish.api.invocation.ComponentInvocationHandler;
  2. 0

    Anybody using hybrid (EE+OSGi) applications in production?

    Oracle Community | 7 years ago | 392 Guest
    org.jvnet.hk2.component.ComponentException: Failed to create class org.glassfish.weld.WeldSniffer >

    Root Cause Analysis

    1. org.jvnet.hk2.component.ComponentException

      Failed to create class com.sun.enterprise.resource.pool.PoolManagerImpl

      at com.sun.hk2.component.ConstructorCreator.create()
    2. Inversion of Control / Autodependency mechanism
      AbstractInhabitantImpl.get
      1. com.sun.hk2.component.ConstructorCreator.create(ConstructorCreator.java:71)
      2. com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:80)
      3. com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
      4. com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
      5. com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
      5 frames
    3. HK2 Implementation Utilities
      Habitat$5.get
      1. org.jvnet.hk2.component.Habitat$5.get(Habitat.java:701)
      1 frame
    4. Java RT
      AbstractCollection.toArray
      1. java.util.AbstractList$Itr.next(AbstractList.java:358)
      2. java.util.AbstractCollection.toArray(AbstractCollection.java:188)
      2 frames
    5. Inversion of Control / Autodependency mechanism
      InjectInjectionResolver.getValue
      1. com.sun.hk2.component.InjectInjectionResolver.getArrayInjectValue(InjectInjectionResolver.java:113)
      2. com.sun.hk2.component.InjectInjectionResolver.getValue(InjectInjectionResolver.java:81)
      2 frames
    6. HK2 Implementation Utilities
      InjectionManager.inject
      1. org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:141)
      2. org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:91)
      2 frames
    7. Inversion of Control / Autodependency mechanism
      AbstractInhabitantImpl.get
      1. com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:126)
      2. com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
      3. com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
      4. com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
      5. com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
      6. com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
      6 frames
    8. HK2 Implementation Utilities
      Habitat.getComponent
      1. org.jvnet.hk2.component.Habitat.getByContract(Habitat.java:1042)
      2. org.jvnet.hk2.component.Habitat.getComponent(Habitat.java:777)
      2 frames
    9. com.sun.enterprise
      SecurityMechanismSelector.postConstruct
      1. com.sun.enterprise.iiop.security.SecurityMechanismSelector.postConstruct(SecurityMechanismSelector.java:166)
      1 frame
    10. Inversion of Control / Autodependency mechanism
      AbstractInhabitantImpl.get
      1. com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
      2. com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
      3. com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
      4. com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
      5. com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
      6. com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
      6 frames
    11. HK2 Implementation Utilities
      Habitat.getByType
      1. org.jvnet.hk2.component.Habitat.getBy(Habitat.java:1048)
      2. org.jvnet.hk2.component.Habitat.getByType(Habitat.java:1029)
      2 frames
    12. Inversion of Control / Autodependency mechanism
      InjectInjectionResolver.getValue
      1. com.sun.hk2.component.InjectInjectionResolver.getComponentInjectValue(InjectInjectionResolver.java:159)
      2. com.sun.hk2.component.InjectInjectionResolver.getValue(InjectInjectionResolver.java:90)
      2 frames
    13. HK2 Implementation Utilities
      InjectionManager.inject
      1. org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:141)
      2. org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:91)
      2 frames
    14. Inversion of Control / Autodependency mechanism
      AbstractInhabitantImpl.get
      1. com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:126)
      2. com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
      3. com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
      4. com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
      5. com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
      6. com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
      6 frames
    15. HK2 Implementation Utilities
      Habitat.getComponent
      1. org.jvnet.hk2.component.Habitat.getBy(Habitat.java:1048)
      2. org.jvnet.hk2.component.Habitat.getByType(Habitat.java:1029)
      3. org.jvnet.hk2.component.Habitat.getComponent(Habitat.java:779)
      3 frames
    16. com.sun.enterprise
      AppclientIIOPInterceptorFactory.createClientRequestInterceptor
      1. com.sun.enterprise.iiop.security.Lookups._getSecurityContextUtil(Lookups.java:97)
      2. com.sun.enterprise.iiop.security.Lookups.getSecurityContextUtil(Lookups.java:92)
      3. com.sun.enterprise.iiop.security.SecClientRequestInterceptor.<init>(SecClientRequestInterceptor.java:119)
      4. com.sun.enterprise.security.appclient.AppclientIIOPInterceptorFactory.getClientInterceptorInstance(AppclientIIOPInterceptorFactory.java:127)
      5. com.sun.enterprise.security.appclient.AppclientIIOPInterceptorFactory.createClientRequestInterceptor(AppclientIIOPInterceptorFactory.java:96)
      5 frames
    17. GlassFish ORB interface layer implementation
      GlassFishORBInitializer.post_init
      1. org.glassfish.enterprise.iiop.impl.GlassFishORBInitializer.post_init(GlassFishORBInitializer.java:132)
      1 frame
    18. glassfish-corba-orb
      ORBFactory.initialize
      1. com.sun.corba.ee.impl.interceptors.PIHandlerImpl.postInitORBInitializers(PIHandlerImpl.java:915)
      2. com.sun.corba.ee.impl.interceptors.PIHandlerImpl.initialize(PIHandlerImpl.java:265)
      3. com.sun.corba.ee.impl.orb.ORBImpl.postInit(ORBImpl.java:643)
      4. com.sun.corba.ee.impl.orb.ORBImpl.set_parameters(ORBImpl.java:704)
      5. com.sun.corba.ee.impl.orb.ORBImpl.setParameters(ORBImpl.java:691)
      6. com.sun.corba.ee.spi.osgi.ORBFactory.initialize(ORBFactory.java:107)
      6 frames
    19. GlassFish ORB interface layer implementation
      GlassFishORBFactoryImpl.createORB
      1. org.glassfish.enterprise.iiop.impl.GlassFishORBManager.initORB(GlassFishORBManager.java:581)
      2. org.glassfish.enterprise.iiop.impl.GlassFishORBManager.getORB(GlassFishORBManager.java:263)
      3. org.glassfish.enterprise.iiop.impl.GlassFishORBFactoryImpl.createORB(GlassFishORBFactoryImpl.java:93)
      3 frames
    20. GlassFish ORB connector implementation
      GlassFishORBHelper.getORB
      1. org.glassfish.enterprise.iiop.api.GlassFishORBHelper.getORB(GlassFishORBHelper.java:120)
      1 frame
    21. Glassfish Naming
      SerialContext.lookup
      1. com.sun.enterprise.naming.impl.SerialContext.getORB(SerialContext.java:365)
      2. com.sun.enterprise.naming.impl.SerialContext.getProviderCacheKey(SerialContext.java:372)
      3. com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(SerialContext.java:402)
      4. com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:347)
      5. com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:504)
      6. com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455)
      6 frames
    22. Java RT
      InitialContext.lookup
      1. javax.naming.InitialContext.lookup(InitialContext.java:411)
      1 frame
    23. javaapplication1
      JavaApplication1.main
      1. javaapplication1.JavaApplication1.main(JavaApplication1.java:47)
      1 frame