javax.jms.JMSException: Could not create session javax.jms.QueueSession: Error in allocating a connection. Cause: Failed to create session: javax.jms.JMSException: Could not find JNDI object by name [corbaname:iiop:1.2@ucadtestapp:22001#weblogic.jms.XAConnectionFactory]: java.lang.NullPointerException

Oracle Community | 807574 | 1 decade 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.
  1. 0

    Messages to Weblogic Queue from JCAPS

    Oracle Community | 1 decade ago | 807574
    javax.jms.JMSException: Could not create session javax.jms.QueueSession: Error in allocating a connection. Cause: Failed to create session: javax.jms.JMSException: Could not find JNDI object by name [corbaname:iiop:1.2@ucadtestapp:22001#weblogic.jms.XAConnectionFactory]: java.lang.NullPointerException
  2. 0

    My setup consists of clustered OpenMQ and several OpenESB standalone instances. Clustered OpenMQ doesn't bind to localhost. During initialization of JMS-BC following WARNING is generated. kwi 17, 2015 11:21:10 PM com.sun.messaging.jmq.jmsclient.ExceptionHandler throwConnectionException WARNING: [C4003]: Error occurred on connection creation [localhost:7676]. - cause: java.net.ConnectException: Connection refused kwi 17, 2015 11:21:10 PM com.sun.jbi.jmsbc.recovery.JMSXARecovery recover WARNING: JMSBC-W0504: Failed to register XAResource (registerXAResource) to connection mq://localhost:7676 for transaction recovery; will try agai n on next JMS BC initialization javax.jms.JMSException: JMSJCA-E034: Could not create session javax.jms.QueueSession: JMSJCA-E073: Could not allocate connection: JMSJCA-E084: Failed to create session: [C4003]: Error occurred on connection creation [localhost:7676]. - cause: java.net.ConnectException: Connection refused at com.stc.jmsjca.util.Exc.jmsExc(Exc.java:113) at com.stc.jmsjca.core.JConnection.createSessionByApplication(JConnection.java:153) at com.stc.jmsjca.core.JConnection.createQueueSession(JConnection.java:286) at com.stc.jmsjca.core.WQueueConnection.createQueueSession(WQueueConnection.java:58) at com.sun.jbi.jmsbc.recovery.JMSXARecoveryHelper.getXAResource(JMSXARecoveryHelper.java:146) at com.sun.jbi.jmsbc.recovery.JMSXARecovery.recover(JMSXARecovery.java:94) at com.sun.jbi.jmsbc.JMSBindingComponent.init(JMSBindingComponent.java:276) at com.sun.jbi.framework.ComponentFramework.initializeComponent(ComponentFramework.java:1205) at com.sun.jbi.framework.ComponentFramework.initializeComponent(ComponentFramework.java:1169) at com.sun.jbi.framework.ComponentOperation.process(ComponentOperation.java:228) at com.sun.jbi.framework.Operation.run(Operation.java:104) at java.lang.Thread.run(Thread.java:745) Caused by: javax.resource.ResourceException: JMSJCA-E073: Could not allocate connection: JMSJCA-E084: Failed to create session: [C4003]: Error occurred on connection creation [localhost:7676]. - cause: java.net.ConnectException: Connection refused at com.stc.jmsjca.util.Exc.rsrcExc(Exc.java:74) at com.stc.jmsjca.core.XDefaultConnectionManager.obtainConnection(XDefaultConnectionManager.java:564) at com.stc.jmsjca.core.XDefaultConnectionManager.allocateConnection(XDefaultConnectionManager.java:419) at com.stc.jmsjca.core.JConnection.createSessionByApplication(JConnection.java:131) ... 10 more Caused by: javax.resource.ResourceException: JMSJCA-E084: Failed to create session: [C4003]: Error occurred on connection creation [localhost:7676]. - cause: java.net.ConnectException: Connection refused at com.stc.jmsjca.util.Exc.rsrcExc(Exc.java:74) at com.stc.jmsjca.core.XManagedConnection.<init>(XManagedConnection.java:123) at com.stc.jmsjca.core.XManagedConnectionFactory.createManagedConnection(XManagedConnectionFactory.java:272) at com.stc.jmsjca.core.XDefaultConnectionManager.obtainConnection(XDefaultConnectionManager.java:511) ... 12 more

    JIRA | 2 years ago | Jakub Grabowski
    javax.jms.JMSException: JMSJCA-E034: Could not create session javax.jms.QueueSession: JMSJCA-E073: Could not allocate connection: JMSJCA-E084: Failed to create session: [C4003]: Error occurred on connection creation [localhost:7676]. - cause: java.net.ConnectException: Connection refused

    Root Cause Analysis

    1. javax.jms.JMSException

      Could not create session javax.jms.QueueSession: Error in allocating a connection. Cause: Failed to create session: javax.jms.JMSException: Could not find JNDI object by name [corbaname:iiop:1.2@ucadtestapp:22001#weblogic.jms.XAConnectionFactory]: java.lang.NullPointerException

      at com.stc.jmsjca.util.Exc.jmsExc()
    2. com.stc.jmsjca
      WQueueConnection.createQueueSession
      1. com.stc.jmsjca.util.Exc.jmsExc(Exc.java:92)
      2. com.stc.jmsjca.core.JConnection.createSessionByApplication(JConnection.java:139)
      3. com.stc.jmsjca.core.JConnection.createQueueSession(JConnection.java:270)
      4. com.stc.jmsjca.core.WQueueConnection.createQueueSession(WQueueConnection.java:58)
      4 frames
    3. com.stc.codegen
      JMSAdapterFactory$QueueJMSAdapter.createSession
      1. com.stc.codegen.appconn.jms.JMSAdapterFactory$QueueJMSAdapter.createSession(JMSAdapterFactory.java:316)
      1 frame