0 Replies Latest reply on Aug 29, 2001 12:23 AM by leo

    Can't use Stateless Session Bean to publish a topic

    leo Newbie

      I been try to use a Stateless Session Bean to publich a message to a topic but the following errors come out. I use the binary of Tomcat+Jboss. Pleae tell me how to solve the problem??

      [NewMailRequestBean] java.net.SocketException: connect (code=10055)
      [NewMailRequestBean] at java.net.PlainSocketImpl.socketConnect(Native Method)
      [NewMailRequestBean] at java.net.PlainSocketImpl.doConnect(Unknown Source)
      [NewMailRequestBean] at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
      [NewMailRequestBean] at java.net.PlainSocketImpl.connect(Unknown Source)
      [NewMailRequestBean] at java.net.Socket.(Unknown Source)
      [NewMailRequestBean] at java.net.Socket.(Unknown Source)
      [NewMailRequestBean] at org.jbossmq.distributed.server.DistributedJMSServerOILClient.createConnection(DistributedJMSServerOILClient.java:65)
      [NewMailRequestBean] at org.jbossmq.distributed.server.DistributedJMSServerOILClient.checkConnection(DistributedJMSServerOILClient.java:76)
      [NewMailRequestBean] at org.jbossmq.distributed.server.DistributedJMSServerUILClient.getID(DistributedJMSServerUILClient.java:131)
      [NewMailRequestBean] at org.jbossmq.SpyConnection.askForAnID(SpyConnection.java:339)
      [NewMailRequestBean] at org.jbossmq.SpyConnection.createReceiver(SpyConnection.java:362)
      [NewMailRequestBean] at org.jbossmq.SpyConnection.start(SpyConnection.java:166)
      [NewMailRequestBean] at com.sniic.c2k.member.java.ejb.session.mail.NewMailRequestBean.sendMessage(NewMailRequestBean.java:40)
      [NewMailRequestBean] at java.lang.reflect.Method.invoke(Native Method)
      [NewMailRequestBean] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:472)
      [NewMailRequestBean] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:87)
      [NewMailRequestBean] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
      [NewMailRequestBean] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:263)
      [NewMailRequestBean] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
      [NewMailRequestBean] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:190)
      [NewMailRequestBean] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
      [NewMailRequestBean] at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:271)
      [NewMailRequestBean] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:482)
      [NewMailRequestBean] at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:152)
      [NewMailRequestBean] at $Proxy4.sendMessage(Unknown Source)
      [NewMailRequestBean] at com.sniic.c2k.member.java.email.GetMailServlet.doGet(GetMailServlet.java:32)
      [NewMailRequestBean] at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      [NewMailRequestBean] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [NewMailRequestBean] at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
      [NewMailRequestBean] at org.apache.tomcat.core.Handler.service(Handler.java:287)
      [NewMailRequestBean] at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
      [NewMailRequestBean] at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
      [NewMailRequestBean] at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
      [NewMailRequestBean] at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
      [NewMailRequestBean] at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
      [NewMailRequestBean] at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
      [NewMailRequestBean] at java.lang.Thread.run(Unknown Source)
      [NewMailRequestBean] java.rmi.RemoteException: Cannot contact the remote object
      [NewMailRequestBean] at org.jbossmq.distributed.server.DistributedJMSServerUILClient.failure(DistributedJMSServerUILClient.java:127)
      [NewMailRequestBean] at org.jbossmq.distributed.server.DistributedJMSServerOILClient.createConnection(DistributedJMSServerOILClient.java:70)
      [NewMailRequestBean] at org.jbossmq.distributed.server.DistributedJMSServerOILClient.checkConnection(DistributedJMSServerOILClient.java:76)
      [NewMailRequestBean] at org.jbossmq.distributed.server.DistributedJMSServerUILClient.getID(DistributedJMSServerUILClient.java:131)
      [NewMailRequestBean] at org.jbossmq.SpyConnection.askForAnID(SpyConnection.java:339)
      [NewMailRequestBean] at org.jbossmq.SpyConnection.createReceiver(SpyConnection.java:362)
      [NewMailRequestBean] at org.jbossmq.SpyConnection.start(SpyConnection.java:166)
      [NewMailRequestBean] at com.sniic.c2k.member.java.ejb.session.mail.NewMailRequestBean.sendMessage(NewMailRequestBean.java:40)
      [NewMailRequestBean] at java.lang.reflect.Method.invoke(Native Method)
      [NewMailRequestBean] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:472)
      [NewMailRequestBean] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:87)
      [NewMailRequestBean] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
      [NewMailRequestBean] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:263)
      [NewMailRequestBean] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
      [NewMailRequestBean] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:190)
      [NewMailRequestBean] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
      [NewMailRequestBean] at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:271)
      [NewMailRequestBean] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:482)
      [NewMailRequestBean] at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:152)
      [NewMailRequestBean] at $Proxy4.sendMessage(Unknown Source)
      [NewMailRequestBean] at com.sniic.c2k.member.java.email.GetMailServlet.doGet(GetMailServlet.java:32)
      [NewMailRequestBean] at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      [NewMailRequestBean] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [NewMailRequestBean] at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
      [NewMailRequestBean] at org.apache.tomcat.core.Handler.service(Handler.java:287)
      [NewMailRequestBean] at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
      [NewMailRequestBean] at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
      [NewMailRequestBean] at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
      [NewMailRequestBean] at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
      [NewMailRequestBean] at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
      [NewMailRequestBean] at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
      [NewMailRequestBean] at java.lang.Thread.run(Unknown Source)
      [NewMailRequestBean] java.rmi.RemoteException: Cannot contact the remote object
      [NewMailRequestBean] at org.jbossmq.distributed.server.DistributedJMSServerUILClient.failure(DistributedJMSServerUILClient.java:127)
      [NewMailRequestBean] at org.jbossmq.distributed.server.DistributedJMSServerOILClient.createConnection(DistributedJMSServerOILClient.java:70)
      [NewMailRequestBean] at org.jbossmq.distributed.server.DistributedJMSServerOILClient.checkConnection(DistributedJMSServerOILClient.java:76)
      [NewMailRequestBean] at org.jbossmq.distributed.server.DistributedJMSServerUILClient.getID(DistributedJMSServerUILClient.java:131)
      [NewMailRequestBean] at org.jbossmq.SpyConnection.askForAnID(SpyConnection.java:339)
      [NewMailRequestBean] at org.jbossmq.SpyConnection.createReceiver(SpyConnection.java:362)
      [NewMailRequestBean] at org.jbossmq.SpyConnection.start(SpyConnection.java:166)
      [NewMailRequestBean] at com.sniic.c2k.member.java.ejb.session.mail.NewMailRequestBean.sendMessage(NewMailRequestBean.java:40)
      [NewMailRequestBean] at java.lang.reflect.Method.invoke(Native Method)
      [NewMailRequestBean] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:472)
      [NewMailRequestBean] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:87)
      [NewMailRequestBean] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
      [NewMailRequestBean] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:263)
      [NewMailRequestBean] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
      [NewMailRequestBean] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:190)
      [NewMailRequestBean] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
      [NewMailRequestBean] at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:271)
      [NewMailRequestBean] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:482)
      [NewMailRequestBean] at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:152)
      [NewMailRequestBean] at $Proxy4.sendMessage(Unknown Source)
      [NewMailRequestBean] at com.sniic.c2k.member.java.email.GetMailServlet.doGet(GetMailServlet.java:32)
      [NewMailRequestBean] at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      [NewMailRequestBean] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [NewMailRequestBean] at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
      [NewMailRequestBean] at org.apache.tomcat.core.Handler.service(Handler.java:287)
      [NewMailRequestBean] at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
      [NewMailRequestBean] at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
      [NewMailRequestBean] at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
      [NewMailRequestBean] at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
      [NewMailRequestBean] at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
      [NewMailRequestBean] at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
      [NewMailRequestBean] at java.lang.Thread.run(Unknown Source)
      [NewMailRequestBean] javax.jms.JMSException: Cannot get an ID
      [NewMailRequestBean] at org.jbossmq.SpyConnection.failureHandler(SpyConnection.java:318)
      [NewMailRequestBean] at org.jbossmq.SpyConnection.askForAnID(SpyConnection.java:341)
      [NewMailRequestBean] at org.jbossmq.SpyConnection.createReceiver(SpyConnection.java:362)
      [NewMailRequestBean] at org.jbossmq.SpyConnection.start(SpyConnection.java:166)
      [NewMailRequestBean] at com.sniic.c2k.member.java.ejb.session.mail.NewMailRequestBean.sendMessage(NewMailRequestBean.java:40)
      [NewMailRequestBean] at java.lang.reflect.Method.invoke(Native Method)
      [NewMailRequestBean] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:472)
      [NewMailRequestBean] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:87)
      [NewMailRequestBean] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
      [NewMailRequestBean] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:263)
      [NewMailRequestBean] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
      [NewMailRequestBean] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:190)
      [NewMailRequestBean] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
      [NewMailRequestBean] at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:271)
      [NewMailRequestBean] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:482)
      [NewMailRequestBean] at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:152)
      [NewMailRequestBean] at $Proxy4.sendMessage(Unknown Source)
      [NewMailRequestBean] at com.sniic.c2k.member.java.email.GetMailServlet.doGet(GetMailServlet.java:32)
      [NewMailRequestBean] at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      [NewMailRequestBean] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [NewMailRequestBean] at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
      [NewMailRequestBean] at org.apache.tomcat.core.Handler.service(Handler.java:287)
      [NewMailRequestBean] at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
      [NewMailRequestBean] at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
      [NewMailRequestBean] at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
      [NewMailRequestBean] at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
      [NewMailRequestBean] at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
      [NewMailRequestBean] at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
      [NewMailRequestBean] at java.lang.Thread.run(Unknown Source)
      [NewMailRequestBean] javax.jms.JMSException: Cannot get an ID
      [NewMailRequestBean] at org.jbossmq.SpyConnection.failureHandler(SpyConnection.java:318)
      [NewMailRequestBean] at org.jbossmq.SpyConnection.askForAnID(SpyConnection.java:341)
      [NewMailRequestBean] at org.jbossmq.SpyConnection.createReceiver(SpyConnection.java:362)
      [NewMailRequestBean] at org.jbossmq.SpyConnection.start(SpyConnection.java:166)
      [NewMailRequestBean] at com.sniic.c2k.member.java.ejb.session.mail.NewMailRequestBean.sendMessage(NewMailRequestBean.java:40)
      [NewMailRequestBean] at java.lang.reflect.Method.invoke(Native Method)
      [NewMailRequestBean] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:472)
      [NewMailRequestBean] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:87)
      [NewMailRequestBean] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
      [NewMailRequestBean] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:263)
      [NewMailRequestBean] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
      [NewMailRequestBean] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:190)
      [NewMailRequestBean] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
      [NewMailRequestBean] at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:271)
      [NewMailRequestBean] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:482)
      [NewMailRequestBean] at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:152)
      [NewMailRequestBean] at $Proxy4.sendMessage(Unknown Source)
      [NewMailRequestBean] at com.sniic.c2k.member.java.email.GetMailServlet.doGet(GetMailServlet.java:32)
      [NewMailRequestBean] at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      [NewMailRequestBean] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [NewMailRequestBean] at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
      [NewMailRequestBean] at org.apache.tomcat.core.Handler.service(Handler.java:287)
      [NewMailRequestBean] at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
      [NewMailRequestBean] at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
      [NewMailRequestBean] at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
      [NewMailRequestBean] at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
      [NewMailRequestBean] at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
      [NewMailRequestBean] at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
      [NewMailRequestBean] at java.lang.Thread.run(Unknown Source)