0 Replies Latest reply on Feb 8, 2002 1:34 AM by ccipl

    JMS createTopicSession problem

    ccipl Newbie

      Hi,
      This is regarding creating topic session using JMS.
      It works fine and sometimes i get an exception while creating topic session.
      And once when i restart the jboss server it works.
      I just can't figure out what the problem is,like topic session gets created at times and not otherwise.
      Can anyone help me in sorting out this problem?
      The Jboss version which is being used is :
      JBoss-2.4.0_Tomcat-3.2.2

      The exception generated is as follows :
      inside MessagePublisher....factoryJNDI>>>TopicConnectionFactory
      [Default] inside MessagePublisher....topicJNDI>>topic/APSMail
      [Default] inside MessagePublisher....got context..
      [Default] inside MessagePublisher....got TopicConnectionFactory...
      [Default] inside MessagePublisher....before createTopicConnection...
      [Default] inside MessagePublisher....after createTopicConnection...
      [Default] inside MessagePublisher....before createTopicSession...
      [Default] java.lang.NullPointerException
      [Default] at org.jbossmq.distributed.server.ConnectionReceiverOIL.failure(ConnectionReceiverOIL.java:176)
      [Default]
      [Default] at org.jbossmq.distributed.server.ConnectionReceiverOIL.exportObject(ConnectionReceiverOIL.java:85)
      [Default]
      [Default] at org.jbossmq.distributed.server.ConnectionReceiverOIL.(ConnectionReceiverOIL.java:75)
      [Default]
      [Default] at java.lang.Class.newInstance0(Native Method)
      [Default]
      [Default] at java.lang.Class.newInstance(Unknown Source)
      [Default]
      [Default] at org.jbossmq.SpyConnection.createReceiver(SpyConnection.java:367)
      [Default]
      [Default] at org.jbossmq.SpyTopicConnection.createTopicSession(SpyTopicConnection.java:52)
      [Default]
      [Default] at aps.message.ejb.session.MessagePublisher.(MessagePublisher.java:44)
      [Default]
      [Default] at aps.message.ejb.session.MessageSessionBean.send(MessageSessionBean.java:133)
      [Default]
      [Default] at java.lang.reflect.Method.invoke(Native Method)
      [Default]
      [Default] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:543)
      [Default]
      [Default] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:87)
      [Default]
      [Default] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
      [Default]
      [Default] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:298)
      [Default]
      [Default] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
      [Default]
      [Default] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
      [Default]
      [Default] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
      [Default]
      [Default] at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:286)
      [Default]
      [Default] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:390)
      [Default]
      [Default] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:467)
      [Default]
      [Default] at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:335)
      [Default]
      [Default] at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:123)
      [Default]
      [Default] at $Proxy22.send(Unknown Source)
      [Default]
      [Default] at aps.message.MessageActions.create(MessageActions.java:676)
      [Default]
      [Default] at aps.message.MessageActions.perform(MessageActions.java:609)
      [Default]
      [Default] at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
      [Default]
      [Default] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
      [Default]
      [Default] at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
      [Default]
      [Default] at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
      [Default]
      [Default] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [Default]
      [Default] at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
      [Default]
      [Default] at org.apache.tomcat.core.Handler.service(Handler.java:287)
      [Default]
      [Default] at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
      [Default]
      [Default] at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
      [Default]
      [Default] at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
      [Default]
      [Default] at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
      [Default]
      [Default] at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
      [Default]
      [Default] at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
      [Default]
      [Default] at java.lang.Thread.run(Unknown Source)
      [Default]
      [Default] java.lang.NullPointerException
      [Default] at org.jbossmq.distributed.server.ConnectionReceiverOIL.failure(ConnectionReceiverOIL.java:176)
      [Default]
      [Default] at org.jbossmq.distributed.server.ConnectionReceiverOIL.exportObject(ConnectionReceiverOIL.java:85)
      [Default]
      [Default] at org.jbossmq.distributed.server.ConnectionReceiverOIL.(ConnectionReceiverOIL.java:75)
      [Default]
      [Default] at java.lang.Class.newInstance0(Native Method)
      [Default]
      [Default] at java.lang.Class.newInstance(Unknown Source)
      [Default]
      [Default] at org.jbossmq.SpyConnection.createReceiver(SpyConnection.java:367)
      [Default]
      [Default] at org.jbossmq.SpyTopicConnection.createTopicSession(SpyTopicConnection.java:52)
      [Default]
      [Default] at aps.message.ejb.session.MessagePublisher.(MessagePublisher.java:44)
      [Default]
      [Default] at aps.message.ejb.session.MessageSessionBean.send(MessageSessionBean.java:133)
      [Default]
      [Default] at java.lang.reflect.Method.invoke(Native Method)
      [Default]
      [Default] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:543)
      [Default]
      [Default] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:87)
      [Default]
      [Default] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
      [Default]
      [Default] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:298)
      [Default]
      [Default] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
      [Default]
      [Default] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
      [Default]
      [Default] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
      [Default]
      [Default] at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:286)
      [Default]
      [Default] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:390)
      [Default]
      [Default] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:467)
      [Default]
      [Default] at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:335)
      [Default]
      [Default] at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:123)
      [Default]
      [Default] at $Proxy22.send(Unknown Source)
      [Default]
      [Default] at aps.message.MessageActions.create(MessageActions.java:676)
      [Default]
      [Default] at aps.message.MessageActions.perform(MessageActions.java:609)
      [Default]
      [Default] at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
      [Default]
      [Default] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
      [Default]
      [Default] at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
      [Default]
      [Default] at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
      [Default]
      [Default] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [Default]
      [Default] at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
      [Default]
      [Default] at org.apache.tomcat.core.Handler.service(Handler.java:287)
      [Default]
      [Default] at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
      [Default]
      [Default] at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
      [Default]
      [Default] at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
      [Default]
      [Default] at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
      [Default]
      [Default] at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
      [Default]
      [Default] at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
      [Default]
      [Default] at java.lang.Thread.run(Unknown Source)
      [Default]
      [Default] javax.jms.JMSException: Cannot create a ConnectionReceiver
      [Default] at org.jbossmq.SpyConnection.failureHandler(SpyConnection.java:320)
      [Default]
      [Default] at org.jbossmq.SpyConnection.createReceiver(SpyConnection.java:374)
      [Default]
      [Default] at org.jbossmq.SpyTopicConnection.createTopicSession(SpyTopicConnection.java:52)
      [Default]
      [Default] at aps.message.ejb.session.MessagePublisher.(MessagePublisher.java:44)
      [Default]
      [Default] at aps.message.ejb.session.MessageSessionBean.send(MessageSessionBean.java:133)
      [Default]
      [Default] at java.lang.reflect.Method.invoke(Native Method)
      [Default]
      [Default] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:543)
      [Default]
      [Default] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:87)
      [Default]
      [Default] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
      [Default]
      [Default] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:298)
      [Default]
      [Default] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
      [Default]
      [Default] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
      [Default]
      [Default] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
      [Default]
      [Default] at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:286)
      [Default]
      [Default] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:390)
      [Default]
      [Default] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:467)
      [Default]
      [Default] at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:335)
      [Default]
      [Default] at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:123)
      [Default]
      [Default] at $Proxy22.send(Unknown Source)
      [Default]
      [Default] at aps.message.MessageActions.create(MessageActions.java:676)
      [Default]
      [Default] at aps.message.MessageActions.perform(MessageActions.java:609)
      [Default]
      [Default] at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
      [Default]
      [Default] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
      [Default]
      [Default] at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
      [Default]
      [Default] at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
      [Default]
      [Default] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [Default]
      [Default] at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
      [Default]
      [Default] at org.apache.tomcat.core.Handler.service(Handler.java:287)
      [Default]
      [Default] at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
      [Default]
      [Default] at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
      [Default]
      [Default] at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
      [Default]
      [Default] at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
      [Default]
      [Default] at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
      [Default]
      [Default] at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
      [Default]
      [Default] at java.lang.Thread.run(Unknown Source)