2 Replies Latest reply on Feb 18, 2004 6:45 AM by pep grifell

    SpyJMSException when sending a message (linux to linux)

    pep grifell Newbie

      I´m sending one message from one server to another. The two are JBoss 3.2.3 tomcat 4.1.29. The two servers are linux. I´m getting the following error :

      17/02/2004 18:34:24 ERROR IntiJMS [] JMSException en IntiJMS.sendJMSMessage()
      org.jboss.mq.SpyJMSException: Cannot send a message to the JMS server; - nested throwable: (java.lang.ClassCastException)
       at org.jboss.mq.Connection.sendToServer(Unknown Source)
       at org.jboss.mq.SpySession.sendMessage(Unknown Source)
       at org.jboss.mq.SpyQueueSender.internalSend(Unknown Source)
       at org.jboss.mq.SpyQueueSender.send(Unknown Source)
       at org.notariado.inti.emulador.business.utils.IntiJMS.sendJMSMessage(IntiJMS.java:110)
       at org.notariado.inti.emulador.business.ejb.SenderSessionBean.sendRequestMessageToCGN(SenderSessionBean.java:73)
       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:324)
       at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Unknown Source)
       at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Unknown Source)
       at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Unknown Source)
       at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(Unknown Source)
       at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(Unknown Source)
       at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(Unknown Source)
       at org.jboss.ejb.plugins.SecurityInterceptor.invoke(Unknown Source)
       at org.jboss.ejb.plugins.LogInterceptor.invoke(Unknown Source)
       at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(Unknown Source)
       at org.jboss.ejb.StatelessSessionContainer.internalInvoke(Unknown Source)
       at org.jboss.ejb.Container.invoke(Unknown Source)
       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:324)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(Unknown Source)
       at org.jboss.mx.server.MBeanServerImpl.invoke(Unknown Source)
       at org.jboss.invocation.local.LocalInvoker.invoke(Unknown Source)
       at org.jboss.invocation.InvokerInterceptor.invoke(Unknown Source)
       at org.jboss.proxy.TransactionInterceptor.invoke(Unknown Source)
       at org.jboss.proxy.SecurityInterceptor.invoke(Unknown Source)
       at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(Unknown Source)
       at org.jboss.proxy.ClientContainer.invoke(Unknown Source)
       at $Proxy56.sendRequestMessageToCGN(Unknown Source)
       at org.notariado.inti.emulador.web.struts.SendToCGNAction.execute(SendToCGNAction.java:83)
       at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:480)
       at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
       at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
       at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
       at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
       at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
       at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(Unknown Source)
       at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
       at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
       at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
       at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(Unknown Source)
       at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
       at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
       at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
       at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
       at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
       at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Unknown Source)
       at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
       at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
       at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
       at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
       at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
       at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
       at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
       at java.lang.Thread.run(Thread.java:536)
      Caused by: java.lang.ClassCastException
       at org.jboss.mq.security.ServerSecurityInterceptor.addMessage(Unknown Source)
       at org.jboss.mq.server.TracingInterceptor.addMessage(Unknown Source)
       at org.jboss.mq.server.JMSServerInvoker.addMessage(Unknown Source)
       at org.jboss.mq.il.oil.OILServerILService$Client.run(Unknown Source)
       ... 1 more
      


      I tried to send a message from JBoss(linux) to Weblogic(linux) and everything went ok.

      Any help ? Thanks !