0 Replies Latest reply on Jun 23, 2004 6:19 AM by duhengfei

    Topic appoint customer problem?

    duhengfei Newbie

      TopicPublisher:

       try {
       TextMessage message = tSession.createTextMessage();
      
       message.setText(txtMessage);
       message.setStringProperty(KEY_NAME, subscriber);
       message.setJMSCorrelationID((new java.util.Date()).toString());
       message.setJMSReplyTo(tSession.createTopic("Reply"));
      
       publisher.publish(topic, message);
       } catch (JMSException e) {
       e.printStackTrace();
       }
      

      TopicSubscriber:
       try{
      
       subscriber = session.createSubscriber(topic, msnSel, true);
       //TODO: 20040616 subscriber = session.createSubscriber(topic);
       }catch(Exception e){
       e.printStackTrace();
       }
      


      Exception:
      18:08:19,953 WARN [OILServerILService] Client request resulted in a server exception:
      javax.jms.JMSException: This destination does not exist !
       at org.jboss.mq.server.JMSDestinationManager.createTopic(JMSDestinationManager.java:701)
       at org.jboss.mq.server.JMSServerInterceptorSupport.createTopic(JMSServerInterceptorSupport.java:162)
       at org.jboss.mq.server.TracingInterceptor.createTopic(TracingInterceptor.java:356)
       at org.jboss.mq.server.JMSServerInvoker.createTopic(JMSServerInvoker.java:162)
       at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:273)
       at java.lang.Thread.run(Thread.java:534)
      18:08:19,984 ERROR [STDERR] org.jboss.mq.SpyJMSException: Cannot get the Topic from the provider; - nested throwable: (javax.jms.JMSException: This destination
      does not exist !)
      18:08:19,984 ERROR [STDERR] at org.jboss.mq.SpyConnection.createTopic(SpyConnection.java:201)
      18:08:19,984 ERROR [STDERR] at org.jboss.mq.SpyTopicSession.createTopic(SpyTopicSession.java:73)
      18:08:19,984 ERROR [STDERR] at com.gnt.ywzcpt.jms.core.TopicPublisherCommand.Execute(Unknown Source)
      18:08:19,984 ERROR [STDERR] at com.gnt.ywzcpt.jms.client.MessageInvoker.Execute(Unknown Source)
      18:08:19,984 ERROR [STDERR] at org.apache.jsp.topicmessageaction_jsp._jspService(topicmessageaction_jsp.java:59)
      18:08:19,984 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
      18:08:19,984 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      18:08:19,984 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
      18:08:20,015 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
      18:08:20,015 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
      18:08:20,015 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      18:08:20,015 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      18:08:20,015 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
      18:08:20,015 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
      18:08:20,015 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      18:08:20,015 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      18:08:20,031 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      18:08:20,031 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      18:08:20,031 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      18:08:20,031 ERROR [STDERR] at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
      18:08:20,031 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      18:08:20,031 ERROR [STDERR] at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
      18:08:20,031 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      18:08:20,031 ERROR [STDERR] at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
      18:08:20,031 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      18:08:20,031 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      18:08:20,031 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      18:08:20,031 ERROR [STDERR] at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
      18:08:20,031 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
      18:08:20,031 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      18:08:20,031 ERROR [STDERR] at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
      18:08:20,046 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      18:08:20,046 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
      18:08:20,078 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      18:08:20,078 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
      18:08:20,078 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      18:08:20,078 ERROR [STDERR] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
      18:08:20,078 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
      18:08:20,078 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      18:08:20,078 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      18:08:20,078 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
      18:08:20,078 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      18:08:20,078 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      18:08:20,078 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      18:08:20,078 ERROR [STDERR] at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
      18:08:20,078 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
      18:08:20,078 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
      18:08:20,078 ERROR [STDERR] at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
      18:08:20,093 ERROR [STDERR] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
      18:08:20,093 ERROR [STDERR] at java.lang.Thread.run(Thread.java:534)
      18:08:20,125 ERROR [STDERR] Caused by: javax.jms.JMSException: This destination does not exist !
      18:08:20,125 ERROR [STDERR] at org.jboss.mq.server.JMSDestinationManager.createTopic(JMSDestinationManager.java:701)
      18:08:20,125 ERROR [STDERR] at org.jboss.mq.server.JMSServerInterceptorSupport.createTopic(JMSServerInterceptorSupport.java:162)
      18:08:20,125 ERROR [STDERR] at org.jboss.mq.server.TracingInterceptor.createTopic(TracingInterceptor.java:356)
      18:08:20,125 ERROR [STDERR] at org.jboss.mq.server.JMSServerInvoker.createTopic(JMSServerInvoker.java:162)
      18:08:20,125 ERROR [STDERR] at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:273)
      18:08:20,125 ERROR [STDERR] ... 1 more
      


      thx