I also have a web app from which I attempted to connect to JMS and I observe 
the same behavior.


  | java.lang.NullPointerException
  |     at 
org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:86)
  |     at 
org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
  |     at 
org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java)
  |     at 
org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
  |     at 
org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
  |     at 
org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java)
  |     at 
org.jboss.jms.client.delegate.ClientConnectionDelegate.createSessionDelegate(ClientConnectionDelegate.java)
  |     at 
org.jboss.jms.client.JBossConnection.createSessionInternal(JBossConnection.java:269)
  |     at 
org.jboss.jms.client.JBossConnection.createSession(JBossConnection.java:91)
  |     at 
com.eLynx.Controller.TestController.testMessaging(TestController.java:110)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:585)
  |     at com.eLynx.Dispatch.XmlDispatcher.dispatch(XmlDispatcher.java:160)
  |     at com.eLynx.Dispatch.XmlDispatcher.dispatch(XmlDispatcher.java:81)
  |     at com.eLynx.Servlet.XmlWebappServlet.doPost(XmlWebappServlet.java:119)
  |     at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
  |     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

The code in the servlet that the exception occurred on:

            m_initialContext = ConnectionManager.getInitialContext ();
  |             ConnectionFactory factory = (ConnectionFactory) 
m_initialContext.lookup ("/ConnectionFactory");
  |             m_jmsConnection = factory.createConnection ();
  |             m_jmsSession    = (QueueSession) m_jmsConnection.createSession 
(false, Session.AUTO_ACKNOWLEDGE);
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050749#4050749

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050749
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to