Uploaded image for project: 'RiftSaw'
  1. RiftSaw
  2. RIFTSAW-90

Exception when BPEL process is receiving a fault from a JAX-WS external service

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0-M2
    • Fix Version/s: 2.0-M2
    • Component/s: Integration
    • Labels:
      None

      Description

      Updated the riftsaw loan_approval example so that the approver throws an exception (SOAP fault) when the amount is above 20000.

      This causes the following server stack trace:

      15:59:19,002 INFO [STDOUT]
      LoanApprovalPTImpl
      15:59:19,002 INFO [STDOUT] *************************************************
      15:59:19,002 INFO [STDOUT] firstName Parameter: Joe
      15:59:19,002 INFO [STDOUT] name Parameter: Bloggs
      15:59:19,002 INFO [STDOUT] amount Parameter: 21000
      15:59:19,002 INFO [STDOUT] *************************************************
      15:59:19,009 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
      com.example.loan_approval.wsdl.ErrorMessage: Amount too large
      at com.example.loan_approval.wsdl.LoanApprovalPTImpl.approve(LoanApprovalPTImpl.java:27)
      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:597)
      at org.jboss.wsf.container.jboss50.invocation.InvocationHandlerJSE.invoke(InvocationHandlerJSE.java:108)
      at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:222)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:474)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:295)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:205)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:131)
      at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85)
      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)
      15:59:19,034 ERROR [WebServiceClient] WS invocation failed
      java.lang.RuntimeException: Expected part wrapper '

      {http://example.com/loan-approval/wsdl/}

      approveResponse'missing on service:

      {http://example.com/loan-approval/wsdl/}

      loanApprover/loanApprover_Port
      at org.jboss.soa.bpel.runtime.ws.SOAPMessageAdapter.extractSoapBodyParts(SOAPMessageAdapter.java:268)
      at org.jboss.soa.bpel.runtime.ws.SOAPMessageAdapter.parseSoapResponse(SOAPMessageAdapter.java:237)
      at org.jboss.soa.bpel.runtime.ws.WebServiceClient$1$1.call(WebServiceClient.java:139)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)

      This can be reproduced by performing the following commands in the riftsaw samples/quickstart/loan_approval folder:

      ant deploy
      ant sendloanreq3

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  heiko.braun Heiko Braun
                  Reporter:
                  objectiser Gary Brown
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: