3 Replies Latest reply: Aug 26, 2010 5:42 AM by Gary Brown RSS

    Error executing the TrailBlazer example

    glaucus augustus Newbie

      Hi,

       

      I ran the TrailBlazer example, (first the server, then the monitor). When I tried to submit the form of the example, it gives an error at the server, and the monitor (that's working) shows nothing.

       

      I have the pi4soa.xml configured accordingly to the explanation at item 3.3 - Monitoring the choreography description

       

      Could it be related to the configurations on the pi4soa.xml destination (topic/track) and the monitoring source configured on the other files (/tmp/input and /tmp/output)?

       

      Thank you in advance

       

      the trace:

       

      2010-08-23 20:31:32,220 ERROR [org.jboss.ws.core.CommonClient] (http-127.0.0.1-8080-1) Exception caught while (preparing for) performing the invocation:
      java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
          at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:445)
          at org.jboss.ws.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:87)
          at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:169)
          at org.jboss.ws.core.CommonSOAP11Binding.createMessage(CommonSOAP11Binding.java:57)
          at org.jboss.ws.core.CommonSOAPBinding.bindRequestMessage(CommonSOAPBinding.java:157)
          at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:290)
          at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:290)
          at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:170)
          at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
          at $Proxy375.RequestLoan(Unknown Source)
          at org.jboss.soa.esb.samples.trailblazer.loanbroker.LoanRequester.request(LoanRequester.java:29)
          at org.apache.jsp.index_jsp._jspService(index_jsp.java:198)
          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
          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:235)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
          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:158)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
          at java.lang.Thread.run(Thread.java:619)
      2010-08-23 20:31:32,221 ERROR [STDERR] (http-127.0.0.1-8080-1) javax.xml.ws.WebServiceException: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
      2010-08-23 20:31:32,221 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:396)
      2010-08-23 20:31:32,221 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:302)
      2010-08-23 20:31:32,221 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:170)
      2010-08-23 20:31:32,221 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
      2010-08-23 20:31:32,221 ERROR [STDERR] (http-127.0.0.1-8080-1)     at $Proxy375.RequestLoan(Unknown Source)
      2010-08-23 20:31:32,221 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.jboss.soa.esb.samples.trailblazer.loanbroker.LoanRequester.request(LoanRequester.java:29)
      2010-08-23 20:31:32,221 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.apache.jsp.index_jsp._jspService(index_jsp.java:198)
      2010-08-23 20:31:32,222 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      2010-08-23 20:31:32,222 ERROR [STDERR] (http-127.0.0.1-8080-1)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      2010-08-23 20:31:32,222 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
      2010-08-23 20:31:32,222 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
      2010-08-23 20:31:32,222 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
      2010-08-23 20:31:32,222 ERROR [STDERR] (http-127.0.0.1-8080-1)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      2010-08-23 20:31:32,222 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      2010-08-23 20:31:32,222 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2010-08-23 20:31:32,222 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      2010-08-23 20:31:32,222 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2010-08-23 20:31:32,222 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2010-08-23 20:31:32,222 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
      2010-08-23 20:31:32,222 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      2010-08-23 20:31:32,222 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
      2010-08-23 20:31:32,222 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
      2010-08-23 20:31:32,222 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
      2010-08-23 20:31:32,223 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
      2010-08-23 20:31:32,223 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      2010-08-23 20:31:32,223 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      2010-08-23 20:31:32,223 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
      2010-08-23 20:31:32,223 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      2010-08-23 20:31:32,226 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
      2010-08-23 20:31:32,226 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
      2010-08-23 20:31:32,226 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
      2010-08-23 20:31:32,226 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      2010-08-23 20:31:32,226 ERROR [STDERR] (http-127.0.0.1-8080-1)     at java.lang.Thread.run(Thread.java:619)
      2010-08-23 20:31:32,226 ERROR [STDERR] (http-127.0.0.1-8080-1) Caused by: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
      2010-08-23 20:31:32,226 ERROR [STDERR] (http-127.0.0.1-8080-1)     at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:445)
      2010-08-23 20:31:32,226 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.jboss.ws.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:87)
      2010-08-23 20:31:32,227 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:169)
      2010-08-23 20:31:32,227 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.jboss.ws.core.CommonSOAP11Binding.createMessage(CommonSOAP11Binding.java:57)
      2010-08-23 20:31:32,227 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.jboss.ws.core.CommonSOAPBinding.bindRequestMessage(CommonSOAPBinding.java:157)
      2010-08-23 20:31:32,227 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:290)
      2010-08-23 20:31:32,227 ERROR [STDERR] (http-127.0.0.1-8080-1)     at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:290)
      2010-08-23 20:31:32,227 ERROR [STDERR] (http-127.0.0.1-8080-1)     ... 31 more

        • 1. Re: Error executing the TrailBlazer example
          Gary Brown Master

          I believe this is a JDK version issue related to jbossws.

           

          Which JBossAS version are you using? Is it 5.1.0.GA-jdk6?

           

          Which JDK are you using?

           

          One way to definitely overcome this problem would be to use JBossAS-5.1.0.GA-jdk6, jdk6 and update the jbossws version to 3.2.2.GA (download from http://jboss.org/jbossws/downloads.html).

           

          Regards

          Gary

          • 2. Re: Error executing the TrailBlazer example
            glaucus augustus Newbie

            Hi,

             

            I was using 5.1.0 (without jdk), jdk6. I'm not sure, but I think it was jbossws 3.1.2.

             

            I've downloaded and installed the 5.1.0-jdk6, and the jbossws3.2.2.

             

            It works fine, but when I run the ant runJMSBank it process a previous requisition from the jms queue and give a ConnectionRefusedException (related to the smtp). 

             

            How can I empty the queue ? (jboss admin console shows 3 queues, two up, and they aren't related to the trailblazer)

             

            Do you have any clue about this? I guess it'll be easier to "change" the email notification by a console one. Do you think this is the way or there is a better one?


            In attachment the server log(stack) and the console of the runJMSBank

             

            Thank you!

            • 3. Re: Error executing the TrailBlazer example
              Gary Brown Master

              It works fine, but when I run the ant runJMSBank it process a previous requisition from the jms queue and give a ConnectionRefusedException (related to the smtp). 

               

              How can I empty the queue ? (jboss admin console shows 3 queues, two up, and they aren't related to the trailblazer)


               

              Clearing the JMS queue - not sure how this could be done, you may need to ask on the forums for JBoss Messaging (http://jboss.org/jbossmessaging). When starting a server in a clean state, I usually delete the $JBossAS/servers/default/data folder - but you may not want to be that extreme.

               

              This example was originally taken from the JBossESB project - however they have stopped distibuting it, and it looks like they have made changes to the configuration files in more recent versions of the ESB - so the property file listed in the documentation, where the SMTP URL is supposed to be configured, no longer exists.

               

              Could you raise this as a bug in the Savara jira - although the plan is to eventually also remove this example from Savara when other more appropriate examples can be developed.

               

              The example still works fine - its just that it won't send out the final email. As you suggest, for now it may be better just to log a message in the console where an email could be sent.

               

              Regards

              Gary