8 Replies Latest reply on May 29, 2008 12:28 PM by gopikrishna krishna

    Error in invoking Sync - deliveryAdapter.deliverSync(request

    gopikrishna krishna Newbie

      Hi All,

      I am getting the following error while running the 'quickstarts\webservice_consumer1'- SendEsbMessage.java application.

      root cause

      javax.servlet.ServletException: org.jboss.soa.esb.listeners.message.MessageDeliverException: Failed to deliver message [header: [ ]] to Service [MyServiceCategory:WebserviceConsumer1]. Check for errors.
      org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:855)
      org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:784)
      org.apache.jsp.jsp.client_jsp._jspService(client_jsp.java:114)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      root cause

      org.jboss.soa.esb.listeners.message.MessageDeliverException: Failed to deliver message [header: [ ]] to Service [MyServiceCategory:WebserviceConsumer1]. Check for errors.
      org.jboss.soa.esb.client.ServiceInvoker.post(ServiceInvoker.java:279)
      org.jboss.soa.esb.client.ServiceInvoker.deliverSync(ServiceInvoker.java:155)
      org.apache.jsp.jsp.client_jsp._jspService(client_jsp.java:98)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      note The full stack trace of the root cause is available in the JBossWeb/2.0.0.GA logs.


      Can somebody help me resolving this?

      Thanks in advance!

        • 1. Re: Error in invoking Sync - deliveryAdapter.deliverSync(req
          Daniel Bevenius Master

          Hi,

          can you tell us which version of JBossESB you are using?

          Thanks,

          /Daniel

          • 2. Re: Error in invoking Sync - deliveryAdapter.deliverSync(req
            Kevin Conner Master

            I have removed the posting in the developer forum as it is a duplicate and was in the wrong forum.

            Please follow up on this topic.

            • 3. Re: Error in invoking Sync - deliveryAdapter.deliverSync(req
              gopikrishna krishna Newbie

              I am using 'jbossesb-server-4.3.GA' version.

              • 4. Re: Error in invoking Sync - deliveryAdapter.deliverSync(req
                Daniel Bevenius Master

                Hi,

                I've just tried this on my machine by downloading jbossesb-server-4..3.GA and I'm not getting the error that you posted.
                I started the server and then ran 'ant deploy' followed by 'ant runtest' from the quickstart/webservice_consumer1 directory.

                Are there any more logs or other information in the server console that might be of help to us?

                What OS and which java version are you running?

                Regards,

                Daniel

                • 5. Re: Error in invoking Sync - deliveryAdapter.deliverSync(req
                  gopikrishna krishna Newbie

                  Hi Beve,

                  This is what i am trying to do.

                  I have created a jsp file (client.jsp) with the following scriplets in it.

                  <%
                  String message="hello";
                  // Create the delivery adapter for the target service (cache it)
                  System.setProperty("javax.xml.registry.ConnectionFactoryClass",
                  "org.apache.ws.scout.registry.ConnectionFactoryImpl");

                  // try{
                  // Create the delivery adapter for the target service (cache it)
                  ServiceInvoker deliveryAdapter = new ServiceInvoker("MyServiceCategory",
                  "WebserviceConsumer1");
                  //}catch (Exception e){
                  // e.printStackTrace();

                  //}

                  // Create and populate the request message...
                  Message requestMessage = MessageFactory.getInstance().getMessage(
                  MessageType.JBOSS_XML);
                  requestMessage.getBody().add(message);
                  // Deliver the request message synchronously - timeout after 20
                  // seconds...

                  Message replyMessage = deliveryAdapter.deliverSync(requestMessage, 20000);
                  //deliveryAdapter.deliverAsync(requestMessage);
                  out.println(replyMessage);


                  %>

                  My Jboss Server version as i mentioned earlier is bossesb-server-4.3.GA and my jdk is 'jdk1.6.0_06'

                  I also ran the 'ant deploy' from the quickstart/webservice_consumer1.

                  Now, I am getting a different error when i try to access the 'client.jsp' (ideally, i am expecting that to run!!)

                  If you closely look at the log given below, i am getting two expections.
                  1. java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
                  2. org.jboss.soa.esb.listeners.message.MessageDeliverException: Failed to deliver message [header: [ To: JMSEpr [ PortReference < <wsa:Address jms://127.0.0.1:1099/queue/quickstart_webservice_consumer1_esb/>, ....

                  The error log is given below.

                  12:14:04,109 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
                  12:14:04,109 INFO [STDOUT] Request map is: {sayHello.toWhom=hello}
                  12:14:04,109 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
                  12:14:05,032 WARN [SoapUI] Failed to load settings [soapui-settings.xml (The system cannot find the file specified)], creating new
                  12:14:05,705 INFO [STDOUT] Progress: 1 - Caching definition from url [http://127.0.0.1:8080/Quickstart_webservice_consumer1/HelloWorldWS?wsdl]
                  12:14:05,737 INFO [SchemaUtils] Added default schema from file:/C:/jbossesb-server-4.3.GA/server/default/tmp/deploy/tmp43797soapui-1.7.1.jar!/xop.xsd with targetNamespace http://www.w3.org/2004/08/xop/include
                  12:14:05,784 INFO [SchemaUtils] Added default schema from file:/C:/jbossesb-server-4.3.GA/server/default/tmp/deploy/tmp43797soapui-1.7.1.jar!/XMLSchema.xsd with targetNamespace http://www.w3.org/2001/XMLSchema
                  12:14:05,784 INFO [SchemaUtils] Added default schema from file:/C:/jbossesb-server-4.3.GA/server/default/tmp/deploy/tmp43797soapui-1.7.1.jar!/xml.xsd with targetNamespace http://www.w3.org/XML/1998/namespace
                  12:14:05,784 INFO [SchemaUtils] Added default schema from file:/C:/jbossesb-server-4.3.GA/server/default/tmp/deploy/tmp43797soapui-1.7.1.jar!/swaref.xsd with targetNamespace http://ws-i.org/profiles/basic/1.1/xsd
                  12:14:05,784 INFO [SchemaUtils] Added default schema from file:/C:/jbossesb-server-4.3.GA/server/default/tmp/deploy/tmp43797soapui-1.7.1.jar!/xmime200505.xsd with targetNamespace http://www.w3.org/2005/05/xmlmime
                  12:14:05,784 INFO [SchemaUtils] Added default schema from file:/C:/jbossesb-server-4.3.GA/server/default/tmp/deploy/tmp43797soapui-1.7.1.jar!/xmime200411.xsd with targetNamespace http://www.w3.org/2004/11/xmlmime
                  12:14:06,238 WARN [HttpMethodBase] Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
                  12:14:06,269 INFO [STDOUT] Progress: 1 - Loading definition from cache
                  12:14:06,300 INFO [STDOUT] Retrieving document at 'http://127.0.0.1:8080/Quickstart_webservice_consumer1/HelloWorldWS?wsdl'.
                  12:14:06,425 INFO [SchemaUtils] Loading schema types from [http://127.0.0.1:8080/Quickstart_webservice_consumer1/HelloWorldWS?wsdl]
                  12:14:06,425 INFO [SchemaUtils] Getting schema http://127.0.0.1:8080/Quickstart_webservice_consumer1/HelloWorldWS?wsdl
                  12:14:06,425 INFO [SchemaUtils] schema for [http://webservice_consumer1/helloworld] contained [{}] namespaces
                  12:14:06,629 INFO [WsdlImporter] Finding importer for {http://webservice_consumer1/helloworld}HelloWorldBinding
                  12:14:06,629 INFO [WsdlImporter] Importing binding {http://webservice_consumer1/helloworld}HelloWorldBinding
                  12:14:06,723 INFO [Soap11HttpBindingImporter] importing endpoint http://127.0.0.1:8080/Quickstart_webservice_consumer1/HelloWorldWS
                  12:14:06,738 INFO [Soap11HttpBindingImporter] importing operation sayHello
                  12:14:06,926 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
                  java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
                  at javax.xml.soap.SOAPMessage.setProperty(Unknown Source)
                  at org.jboss.ws.core.soap.SOAPMessageImpl.(SOAPMessageImpl.java:67)
                  at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:207)
                  at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:185)
                  at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:389)
                  at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272)
                  at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
                  at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122)
                  at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                  at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                  at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                  at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                  at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                  at java.lang.Thread.run(Unknown Source)

                  ..........................................................
                  ..........................................................
                  org.jboss.soa.esb.listeners.message.MessageDeliverException: Failed to deliver message [header: [ To: JMSEpr [ PortReference < <wsa:Address jms://127.0.0.1:1099/queue/quickstart_webservice_consumer1_esb/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.initial : org.jnp.interfaces.NamingContextFactory/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url : localhost/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.url.pkgs : org.jnp.interfaces/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:persistent : true/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ] ReplyTo: JMSEpr [ PortReference < <wsa:Address jms://127.0.0.1:1099/queue/quickstart_webservice_consumer1_esb_reply/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url : localhost/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.initial : org.jnp.interfaces.NamingContextFactory/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.url.pkgs : org.jnp.interfaces/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:message-selector : jbossESBresponseUUID='13b07492-01e5-4969-80e6-bac073cf575e'/>, <wsa:ReferenceProperties jbossesb:persistent : true/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ] ]] to Service [MyServiceCategory:WebserviceConsumer1]. Check for errors.
                  at org.jboss.soa.esb.client.ServiceInvoker.post(ServiceInvoker.java:356)
                  at org.jboss.soa.esb.client.ServiceInvoker.deliverSync(ServiceInvoker.java:196)
                  at org.apache.jsp.jsp.client_jsp._jspService(client_jsp.java:98)
                  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
                  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
                  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                  at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                  at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                  at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                  at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                  at java.lang.Thread.run(Unknown Source)
                  ========================================



                  Thanks in advance.

                  Regards,
                  Gopi

                  • 6. Re: Error in invoking Sync - deliveryAdapter.deliverSync(req
                    gopikrishna krishna Newbie

                    Well ...some progress!!

                    One exception gone (java.lang.UnsupportedOperationException:)
                    Now the log looks like this..

                    Can somebody please explain me why still i am getting this error ? (it is very important to our project).

                    Please note, i am still using the client.jsp as metioned in my previous reply.

                    Also, please note - I successfully ran 'ant runtest' from the command prompt. But my requirement is to run it from a webclient.(jsp)

                    My environment details are given below.

                    Operating System - Windows
                    Jdk - jdk1.5.0_15 (i changed now)
                    Jboss Server - jbossesb-server-4.3.GA
                    IDE - Eclipse Version: 3.3.2

                    Can sombody please help me here?

                    Regards,
                    Gopi


                    16:01:13,637 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
                    16:01:13,637 INFO [STDOUT] Request map is: {sayHello.toWhom=hello}
                    16:01:13,637 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
                    16:01:13,669 WARN [HttpMethodBase] Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
                    16:01:13,669 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
                    16:01:13,669 INFO [STDOUT] Response Map is: {sayHelloResponse.return=Hello World Greeting for 'hello' on Wed May 28 16:01:13 MST 2008}
                    16:01:13,669 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
                    16:01:14,637 INFO [ServiceInvoker] Unresponsive EPR: JMSEpr [ PortReference < <wsa:Address jms://127.0.0.1:1099/queue/quickstart_webservice_consumer1_esb/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.initial : org.jnp.interfaces.NamingContextFactory/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url : localhost/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.url.pkgs : org.jnp.interfaces/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:persistent : true/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ] for message: header: [ To: JMSEpr [ PortReference < <wsa:Address jms://127.0.0.1:1099/queue/quickstart_webservice_consumer1_esb/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.initial : org.jnp.interfaces.NamingContextFactory/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url : localhost/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.url.pkgs : org.jnp.interfaces/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:persistent : true/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ] ReplyTo: JMSEpr [ PortReference < <wsa:Address jms://127.0.0.1:1099/queue/quickstart_webservice_consumer1_esb_reply/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url : localhost/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.initial : org.jnp.interfaces.NamingContextFactory/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.url.pkgs : org.jnp.interfaces/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:message-selector : jbossESBresponseUUID='8dbdd108-7744-4234-9357-6abe880e0a71'/>, <wsa:ReferenceProperties jbossesb:persistent : true/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ] ]
                    16:01:14,715 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
                    16:01:14,715 INFO [STDOUT] Request map is: {sayHello.toWhom=hello}
                    16:01:14,715 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
                    16:01:14,762 WARN [HttpMethodBase] Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
                    16:01:14,762 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
                    16:01:14,762 INFO [STDOUT] Response Map is: {sayHelloResponse.return=Hello World Greeting for 'hello' on Wed May 28 16:01:14 MST 2008}
                    16:01:14,762 INFO [STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
                    16:01:15,731 INFO [ServiceInvoker] Unresponsive EPR: JMSEpr [ PortReference < <wsa:Address jms://127.0.0.1:1099/queue/quickstart_webservice_consumer1_esb/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.initial : org.jnp.interfaces.NamingContextFactory/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url : localhost/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.url.pkgs : org.jnp.interfaces/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:persistent : true/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ] for message: header: [ To: JMSEpr [ PortReference < <wsa:Address jms://127.0.0.1:1099/queue/quickstart_webservice_consumer1_esb/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.initial : org.jnp.interfaces.NamingContextFactory/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url : localhost/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.url.pkgs : org.jnp.interfaces/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:persistent : true/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ] ReplyTo: JMSEpr [ PortReference < <wsa:Address jms://127.0.0.1:1099/queue/quickstart_webservice_consumer1_esb_reply/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url : localhost/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.initial : org.jnp.interfaces.NamingContextFactory/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.url.pkgs : org.jnp.interfaces/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:message-selector : jbossESBresponseUUID='8dbdd108-7744-4234-9357-6abe880e0a71'/>, <wsa:ReferenceProperties jbossesb:persistent : true/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ] ]
                    16:01:15,731 INFO [ServiceInvoker] Delivering message [header: [ To: JMSEpr [ PortReference < <wsa:Address jms://127.0.0.1:1099/queue/quickstart_webservice_consumer1_esb/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.initial : org.jnp.interfaces.NamingContextFactory/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url : localhost/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.url.pkgs : org.jnp.interfaces/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:persistent : true/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ] ReplyTo: JMSEpr [ PortReference < <wsa:Address jms://127.0.0.1:1099/queue/quickstart_webservice_consumer1_esb_reply/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url : localhost/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.initial : org.jnp.interfaces.NamingContextFactory/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.url.pkgs : org.jnp.interfaces/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:message-selector : jbossESBresponseUUID='8dbdd108-7744-4234-9357-6abe880e0a71'/>, <wsa:ReferenceProperties jbossesb:persistent : true/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ] ]] to DLQ.
                    16:01:15,840 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
                    org.jboss.soa.esb.listeners.message.MessageDeliverException: Failed to deliver message [header: [ To: JMSEpr [ PortReference < <wsa:Address jms://127.0.0.1:1099/queue/quickstart_webservice_consumer1_esb/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.initial : org.jnp.interfaces.NamingContextFactory/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url : localhost/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.url.pkgs : org.jnp.interfaces/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:persistent : true/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ] ReplyTo: JMSEpr [ PortReference < <wsa:Address jms://127.0.0.1:1099/queue/quickstart_webservice_consumer1_esb_reply/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url : localhost/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.initial : org.jnp.interfaces.NamingContextFactory/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.url.pkgs : org.jnp.interfaces/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:message-selector : jbossESBresponseUUID='8dbdd108-7744-4234-9357-6abe880e0a71'/>, <wsa:ReferenceProperties jbossesb:persistent : true/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ] ]] to Service [MyServiceCategory:WebserviceConsumer1]. Check for errors.
                    at org.jboss.soa.esb.client.ServiceInvoker.post(ServiceInvoker.java:356)
                    at org.jboss.soa.esb.client.ServiceInvoker.deliverSync(ServiceInvoker.java:196)
                    at org.apache.jsp.jsp.client_jsp._jspService(client_jsp.java:74)
                    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
                    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
                    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                    at java.lang.Thread.run(Thread.java:595)

                    • 7. Re: Error in invoking Sync - deliveryAdapter.deliverSync(req
                      Daniel Bevenius Master

                      Hi Gopi,

                      I've tried this by creating a simple webapp and used the code you supplied for the jsp page. I've sent you this in a email.

                      This is what the test.jsp page looks like:

                      <html>
                      <%@page import="org.jboss.soa.esb.client.ServiceInvoker"%>
                      <%@page import="org.jboss.soa.esb.message.Message"%>
                      <%@page import="org.jboss.soa.esb.message.format.MessageFactory"%>
                      <%
                       // Create the delivery adapter for the target service (cache it)
                       System.setProperty("javax.xml.registry.ConnectionFactoryClass", "org.apache.ws.scout.registry.ConnectionFactoryImpl");
                      
                       ServiceInvoker deliveryAdapter = null;
                       try{
                       deliveryAdapter = new ServiceInvoker("MyServiceCategory", "WebserviceConsumer1");
                       }catch (Exception e)
                       {
                       e.printStackTrace();
                      
                       }
                       Message requestMessage = MessageFactory.getInstance().getMessage();
                       requestMessage.getBody().add("hello");
                       Message replyMessage = deliveryAdapter.deliverSync(requestMessage, 20000);
                       out.println("Reply: " + replyMessage);
                      %>
                      </html>
                      

                      The following files are also needed in the war:
                      WEB-INF/lib/jbossesb-rosetta.jar
                      WEB-INF/web.xml

                      web.xml can simply be empty like this:
                      <?xml version="1.0"?>
                      <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
                      <web-app>
                       <description></description>
                      </web-app>


                      Also, the mep (Message Exchange Pattern) in jboss-esb.xml needs to be set to 'RequestReply":
                      <actions mep="RequestResponse">
                       <action name="request-mapper"
                       ....


                      Let us know if you have any further issues.

                      Regards,

                      /Daniel

                      • 8. Re: Error in invoking Sync - deliveryAdapter.deliverSync(req
                        gopikrishna krishna Newbie

                        Hi Beve,

                        That was excellent!!

                        It is working on my machine now.

                        Thank you very much!
                        Regards,
                        Gopi