Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-2312

JMS Resource Adapter throws NPE for missing configuration

XMLWordPrintable

      The JMS resource adapter does not check whether the connection factory jndi bindings have been
      configured which leads to a NullPointerException when they are missing, e.g.

      WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
      java.lang.NullPointerException
      at javax.naming.InitialContext.getURLScheme(InitialContext.java:228)
      at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:277)
      at javax.naming.InitialContext.lookup(InitialContext.java:351)
      at org.jboss.resource.adapter.jms.JmsManagedConnection.setup(JmsManagedConnection.java:712)
      <snip/>
      ERROR [JmsSessionFactoryImpl] could not create session

      We need to throw a more meaningful error message.

            adrian.brock Adrian Brock (Inactive)
            adrian.brock Adrian Brock (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: