2 Replies Latest reply on Oct 1, 2009 9:16 AM by sammy Jenkis

    JNDI Lookup Fails, Causes Failed EJB2 MDB

    sammy Jenkis Newbie

      I'm not exactly sure where to post this one, but since most of the relevant log shows jboss remoting code, I'll start here.

      I'm trying to deploy an EJB 2 MDB to JBoss 4.2.3.
      Here are the points of interest:
      JBoss Messaging 1.4.4
      JBoss Remoting 2.2.3
      ear deployment Isolated=true

      Here's some of my initial findings:
      1) If I turn off ear deployment isolation, this problem goes away (and apparently remoting is not used for the lookup in that scenerio.)
      2) From this log and looking at the source, it looks like a JNDI lookup for java:/StdJMSPool is failing (returning null) - but I don't understanding why that's happening.

      Let me know if you have any ideas. It's important to me to get make the ear deployment isolation work.

      12:43:23,640 DEBUG [JMSContainerInvoker(OfflineEventLogConsumerMDB) Reconnect] [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Using client id: null
      12:43:23,640 DEBUG [JMSContainerInvoker(OfflineEventLogConsumerMDB) Reconnect] [org.jboss.ejb.plugins.jms.JMSContainerInvoker] looking up session pool factory: java:/StdJMSPool
      12:43:23,640 DEBUG [JMSContainerInvoker(OfflineEventLogConsumerMDB) Reconnect] [org.jboss.jms.server.connectionmanager.SimpleConnectionManager] unregistered connection ConnectionEndpoint[l3-c3gw510g-1-cy6v510g-ys6ooo-7375o4c5] with remoting session ID ...-g015wfyk-3f
      12:43:23,640 DEBUG [JMSContainerInvoker(OfflineEventLogConsumerMDB) Reconnect] [org.jboss.remoting.InvokerRegistry] removed org.jboss.remoting.transport.local.LocalClientInvoker@4b2199 from registry
      12:43:23,640 DEBUG [JMSContainerInvoker(OfflineEventLogConsumerMDB) Reconnect] [org.jboss.remoting.Client] Client[12933527:5c4o5737-ooo6sy-g015v6yc-1-g015wg3c-3k] is disconnected
      12:43:23,640 DEBUG [JMSContainerInvoker(OfflineEventLogConsumerMDB) Reconnect] [org.jboss.jms.server.remoting.JMSServerInvocationHandler] removing callback handler ServerInvokerCallbackHandler[5c4o5737-ooo6sy-g015v6yc-1-g015wfyk-3f+5c4o5737-ooo6sy-g015v6yc-1-g015wg3c-3i]
      12:43:23,640 DEBUG [JMSContainerInvoker(OfflineEventLogConsumerMDB) Reconnect] [org.jboss.remoting.Client] Client[9099123:5c4o5737-ooo6sy-g015v6yc-1-g015wfyk-3f].connect(null)
      12:43:23,640 DEBUG [JMSContainerInvoker(OfflineEventLogConsumerMDB) Reconnect] [org.jboss.remoting.Client] Client[9099123:5c4o5737-ooo6sy-g015v6yc-1-g015wfyk-3f] connected to InvokerLocator [bisocket://192.168.187.115:2088433572/callback?callbackServerHost=192.168.187.115&callbackServerPort=2088433572&callbackServerProtocol=bisocket&clientMaxPoolSize=1&clientSocketClass=org.jboss.jms.client.remoting.ClientSocketWrapper&datatype=jms&guid=5c4o5737-ooo6sy-g015v6yc-1-g015wfyk-3h&isCallbackServer=true&onewayThreadPool=org.jboss.jms.server.remoting.DirectThreadPool&serverSocketClass=org.jboss.jms.server.remoting.ServerSocketWrapper]
      12:43:23,640 DEBUG [JMSContainerInvoker(OfflineEventLogConsumerMDB) Reconnect] [org.jboss.remoting.ServerInvoker] ServerInvoker (SocketServerInvoker[UNINITIALIZED]) removing client callback handler with session id of 5c4o5737-ooo6sy-g015v6yc-1-g015wfyk-3f+5c4o5737-ooo6sy-g015v6yc-1-g015wg3c-3i.
      12:43:23,640 DEBUG [JMSContainerInvoker(OfflineEventLogConsumerMDB) Reconnect] [org.jboss.remoting.transport.bisocket.BisocketServerInvoker] unrecognized listener ID: 5c4o5737-ooo6sy-g015v6yc-1-g015wg3c-3i
      12:43:23,640 DEBUG [JMSContainerInvoker(OfflineEventLogConsumerMDB) Reconnect] [org.jboss.remoting.InvokerRegistry] removed org.jboss.remoting.transport.local.LocalClientInvoker@146c67a from registry
      12:43:23,640 DEBUG [JMSContainerInvoker(OfflineEventLogConsumerMDB) Reconnect] [org.jboss.remoting.Client] Client[9099123:5c4o5737-ooo6sy-g015v6yc-1-g015wfyk-3f] is disconnected
      12:43:23,640 DEBUG [JMSContainerInvoker(OfflineEventLogConsumerMDB) Reconnect] [org.jboss.remoting.ServerInvoker] SocketServerInvoker[UNINITIALIZED] stopped
      12:43:23,640 DEBUG [JMSContainerInvoker(OfflineEventLogConsumerMDB) Reconnect] [org.jboss.remoting.InvokerRegistry] decremented org.jboss.remoting.transport.local.LocalClientInvoker@da85fe's count, current count 5
      12:43:23,640 DEBUG [JMSContainerInvoker(OfflineEventLogConsumerMDB) Reconnect] [org.jboss.remoting.Client] Client[8486630:5c4o5737-ooo6sy-g015v6yc-1-g015wfyk-3f] is disconnected
      12:43:23,640 DEBUG [JMSContainerInvoker(OfflineEventLogConsumerMDB) Reconnect] [org.jboss.remoting.InvokerRegistry] decremented org.jboss.remoting.transport.local.LocalClientInvoker@93133e's count, current count 5
      12:43:23,640 DEBUG [JMSContainerInvoker(OfflineEventLogConsumerMDB) Reconnect] [org.jboss.remoting.Client] Client[28468394:5c4o5737-ooo6sy-g015v6yc-1-g015wfyk-3g] is disconnected
      12:43:23,640 ERROR [JMSContainerInvoker(OfflineEventLogConsumerMDB) Reconnect] [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Reconnect failed: JMS provider failure detected for OfflineEventLogConsumerMDB
      org.jboss.deployment.DeploymentException: Error during topic setup; - nested throwable: (java.lang.NullPointerException)
       at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
       at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerStartDelivery(JMSContainerInvoker.java:825)
       at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl$ExceptionListenerRunnable.run(JMSContainerInvoker.java:1533)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.NullPointerException
       at org.jboss.ejb.plugins.jms.JMSContainerInvoker.createSessionPool(JMSContainerInvoker.java:1276)
       at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerStartDelivery(JMSContainerInvoker.java:770)
       ... 2 more