java.lang.reflect.InvocationTargetException

Stack Overflow | Paul | 3 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

    @Resource is not Injecting JMS resources in glassfish4 Application client container (ACC)

    Stack Overflow | 11 months ago | Mukesh kumar saini
    com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Res-Ref-Env-Property: jms/QueueConnectionFactory@javax.jms.QueueConnectionFactory@ resolved as: jndi: jms/QueueConnectionFactory@res principal: null@mail: null No Runtime properties Database Vendor : null Create Tables at Deploy : false Delete Tables at Undeploy : false into class Main: Lookup failed for 'java:comp/env/jms/QueueConnectionFactory' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl}
  2. 0

    Calling SessionBean gives InjectionException

    Stack Overflow | 1 year ago | James Lin
    com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Env-Prop: ejbclient1.EJBSBMAIN/sb1@Field-Injectable Resource. Class name = ejbclient1.EJBSBMAIN Field name=sb1@java.lang.String@@@ into class ejbclient1.EJBSBMAIN: Lookup failed for 'java:comp/env/ejbclient1.EJBSBMAIN/sb1' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl}
  3. 0

    Embedded container example in EJB Cookbook does not work

    Coderanch | 2 years ago | Himai Minh
    javax.naming.NamingException: Lookup failed for 'java:global/CapitalApplication/CapitalBean' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl} [Root exception is javax.naming.NameNotFoundException: CapitalBean not found]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    javax.naming.NameNotFoundException: jms

    Stack Overflow | 5 years ago | g123k
    javax.naming.NamingException: Lookup failed for 'jms/ConnectionFactory' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: jms]
  6. 0

    JNDI.lookup not handling unknown JNDI variables elegantly

    GitHub | 2 years ago | wsaxton
    java.lang.IllegalStateException: javax.naming.NamingException: Lookup failed for 'swr/devLoginEnabled' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: devLoginEnabled not found]

    5 unregistered visitors
    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. javax.naming.NameNotFoundException

      IPersonEJB!remote.IPersonEJB not found

      at com.sun.enterprise.naming.impl.TransientContext.doLookup()
    2. Glassfish Naming
      RemoteSerialContextProviderImpl.lookup
      1. com.sun.enterprise.naming.impl.TransientContext.doLookup(TransientContext.java:237)
      2. com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:204)
      3. com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:208)
      4. com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:208)
      5. com.sun.enterprise.naming.impl.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:66)
      6. com.sun.enterprise.naming.impl.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProviderImpl.java:109)
      6 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    4. glassfish-corba-orb
      MessageMediatorImpl.doWork
      1. com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie.dispatchToMethod(ReflectiveTie.java:143)
      2. com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:173)
      3. com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.dispatchToServant(ServerRequestDispatcherImpl.java:528)
      4. com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.dispatch(ServerRequestDispatcherImpl.java:199)
      5. com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequestRequest(MessageMediatorImpl.java:1549)
      6. com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:1425)
      7. com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleInput(MessageMediatorImpl.java:930)
      8. com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:213)
      9. com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:694)
      10. com.sun.corba.ee.impl.protocol.MessageMediatorImpl.dispatch(MessageMediatorImpl.java:496)
      11. com.sun.corba.ee.impl.protocol.MessageMediatorImpl.doWork(MessageMediatorImpl.java:2222)
      11 frames
    5. Maven Default Project
      ThreadPoolImpl$WorkerThread.run
      1. com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)
      2. com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)
      2 frames