0 Replies Latest reply on Dec 9, 2012 10:45 AM by carl lee

    jbossesb-server-4.7\samples\quickstarts\webservice_producer

    carl lee Newbie
      public class SendMessage

       

      public static void main(String args[]) throws Throwable
          {      
           String args1[] = {"jms"};
           //String args1[] = {"socket","8888"};
           SendMessage sm = new SendMessage();
              String msg = getMessage("01");

              String protocol = args1[0];
              if(protocol.equals("jms")) {
                  sm.sendMessageOverJMS(msg);
              } else {
                  sm.sendMessageToJBRListener(protocol, Integer.parseInt(args1[1]), msg);
              }
          }

       

       

      got the  exception

      23:37:16,424 INFO  [JBossRemotingGatewayListener] JBoss Remoting Gateway listener 'listener' started.

      23:37:16,474 INFO  [JBossRemotingGatewayListener] JBoss Remoting Gateway listener 'listener' started.

      23:38:08,653 INFO  [ServiceInvoker] Badly formed EPR [EPR: PortReference < <wsa:Address http://localhost:8765/> >] for Service [MyServiceCategory:MyWSProducerService] and Message [header: [  ]].Courier for EPR not supported: ESB-unaware EPR used!

      23:38:08,890 INFO  [STDOUT] [Quickstart_webservice_producer] BEFORE invoking jbossws endpoint:

      23:38:08,890 INFO  [STDOUT] [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:good="http://webservice_producer/goodbyeworld">

         <soapenv:Header/>

         <soapenv:Body>

            <good:sayGoodbye>

               <message>Goodbye!!</message>

            </good:sayGoodbye>

         </soapenv:Body>

      </soapenv:Envelope>].

      23:38:08,946 ERROR [SOAPFaultHelperJAXWS] SOAP request exception

      java.lang.ClassCastException: org.jboss.ws.core.soap.EnvelopeBuilderDOM cannot be cast to org.jboss.ws.core.soap.EnvelopeBuilder

      at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:275)

      at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:195)

      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:447)

      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:284)

      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:201)

      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:134)

      at org.jboss.soa.esb.actions.soap.SOAPProcessor.process(SOAPProcessor.java:187)

      at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:634)

      at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:586)

      at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:420)

      at org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:540)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

      at java.lang.Thread.run(Unknown Source)

      23:38:08,972 ERROR [RequestHandlerImpl] Error processing web service request

      org.jboss.ws.WSException: java.lang.ClassCastException: org.jboss.ws.core.soap.SOAPMessageImpl cannot be cast to org.jboss.ws.core.soap.SOAPMessageImpl

      at org.jboss.ws.WSException.rethrow(WSException.java:68)

      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:325)

      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:201)

      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:134)

      at org.jboss.soa.esb.actions.soap.SOAPProcessor.process(SOAPProcessor.java:187)

      at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:634)

      at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:586)

      at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:420)

      at org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:540)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

      at java.lang.Thread.run(Unknown Source)