Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.0
    • Fix Version/s: None
    • Component/s: component-camel
    • Labels:
      None
    • Environment:

      JBoss Fuse 6.3.0

      Description

      {{{{See attached file.

      I'm trying to handle socket time outs when calling Web Services, using onException and doTry / doCatch in the route calling the Switchyard SOAP component.

      Some of them seem to be called according to the DEBUG traces, but the bodies of the doCatch statement are never executed (we should have logging). The service is failing in error as if the exception was not handled.

      17:10:38,765 INFO [org.switchyard.common.camel.SwitchYardCamelContextImpl] Route: direct:

      {urn:bug:exceptionhandlingbug:1.0}

      ESBService started and consuming from: Endpoint[direct://%7Burn:bug:exceptionhandlingbug:1.0%7DESBService]
      17:10:38,797 DEBUG [org.apache.camel.processor.FilterProcessor] Filter matches: false for exchange: Exchange[ID-63313-1484151036514-0-2]
      17:10:38,984 INFO [_route1] ESBService - message to send: <a:ping xmlns:a='http://toto/ping/'><in>ha</in></a:ping>
      17:10:39,000 DEBUG [org.apache.camel.processor.SendProcessor] >>>> Endpoint[switchyard://ping] Exchange[ID-63313-1484151036514-0-4]
      17:10:39,000 DEBUG [org.apache.camel.processor.FilterProcessor] Filter matches: false for exchange: Exchange[ID-63313-1484151036514-0-6]
      17:10:39,109 WARN [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for

      {http://toto/ping/}

      ping#

      {http://cxf.apache.org/jaxws/dispatch}

      Invoke has thrown exception, unwinding now
      org.apache.cxf.interceptor.Fault: Could not send Message.
      [snip]
      17:10:47,068 DEBUG [org.apache.camel.processor.Pipeline] Message exchange has failed: so breaking out of pipeline for exchange: Exchange[ID-63313-1484151036514-0-6] Exception: org.switchyard.HandlerException: SWITCHYARD035429: Unexpected exception handling SOAP Message
      17:10:47,068 DEBUG [org.apache.camel.processor.CatchProcessor] The exception is handled: true for the exception: org.switchyard.HandlerException caused by: SWITCHYARD035429: Unexpected exception handling SOAP Message
      17:10:47,083 DEBUG [org.apache.camel.processor.FilterProcessor] Filter matches: true for exchange: Exchange[ID-63313-1484151036514-0-6]
      17:10:47,099 DEBUG [org.apache.camel.processor.Pipeline] Message exchange has failed: so breaking out of pipeline for exchange: Exchange[ID-63313-1484151036514-0-4] Exception: org.switchyard.HandlerException: SWITCHYARD035429: Unexpected exception handling SOAP Message
      17:10:47,099 DEBUG [org.apache.camel.processor.Pipeline] Message exchange has failed: so breaking out of pipeline for exchange: Exchange[ID-63313-1484151036514-0-4] Exception: org.switchyard.HandlerException: SWITCHYARD035429: Unexpected exception handling SOAP Message
      17:10:47,100 DEBUG [org.apache.camel.processor.Pipeline] Message exchange has failed: so breaking out of pipeline for exchange: Exchange[ID-63313-1484151036514-0-2] Exception: org.switchyard.HandlerException: org.switchyard.HandlerException: SWITCHYARD035429: Unexpected exception handling SOAP Message
      17:10:47,100 DEBUG [org.apache.camel.processor.CatchProcessor] The exception is handled: true for the exception: org.switchyard.HandlerException caused by: org.switchyard.HandlerException: SWITCHYARD035429: Unexpected exception handling SOAP Message
      17:10:47,100 ERROR [org.switchyard.bus.camel.DefaultErrorListener]
      ------- Begin Message Trace -------
      Consumer ->

      {urn:bug:exceptionhandlingbug:1.0}

      ESBService
      Provider ->

      {urn:bug:exceptionhandlingbug:1.0}

      ESBService
      Operation ->
      MEP -> IN_ONLY
      Phase -> IN
      State -> OK
      Exchange Context ->
      CamelCreatedTimestamp ..........................: Wed Jan 11 17:10:38 CET 2017
      CamelExceptionCaught ...........................: org.switchyard.HandlerException: org.switchyard.HandlerException: SWITCHYARD035429: Unexpected exception handling SOAP Message
      CamelExceptionHandled ..........................: true
      CamelFailureEndpoint ...........................: direct://%7Burn:bug:exceptionhandlingbug:1.0%7DESBService
      CamelFilterMatched .............................: false
      CamelMessageHistory ............................: [DefaultMessageHistory[routeId=direct:

      {urn:bug:exceptionhandlingbug:1.0}

      ESBService, node=doTry3], DefaultMessageHistory[routeId=direct:

      {urn:bug:exceptionhandlingbug:1.0}

      ESBService, node=filter7], DefaultMessageHistory[routeId=direct:

      {urn:bug:exceptionhandlingbug:1.0}

      ESBService, node=process51], DefaultMessageHistory[routeId=direct:

      {urn:bug:exceptionhandlingbug:1.0}

      ESBService, node=process52], DefaultMessageHistory[routeId=direct:

      {urn:bug:exceptionhandlingbug:1.0}

      ESBService, node=process53], DefaultMessageHistory[routeId=direct:

      {urn:bug:exceptionhandlingbug:1.0}

      ESBService, node=process54], DefaultMessageHistory[routeId=direct:

      {urn:bug:exceptionhandlingbug:1.0}

      ESBService, node=process55], DefaultMessageHistory[routeId=direct:

      {urn:bug:exceptionhandlingbug:1.0}

      ESBService, node=process56], DefaultMessageHistory[routeId=direct:

      {urn:bug:exceptionhandlingbug:1.0}

      ESBService, node=process57], DefaultMessageHistory[routeId=direct:

      {urn:bug:exceptionhandlingbug:1.0}

      ESBService, node=process58], DefaultMessageHistory[routeId=direct:

      {urn:bug:exceptionhandlingbug:1.0}

      ESBService, node=process59], DefaultMessageHistory[routeId=direct:

      {urn:bug:exceptionhandlingbug:1.0}

      ESBService, node=process60], DefaultMessageHistory[routeId=_route1, node=_log1], DefaultMessageHistory[routeId=_route1, node=_doTry1], DefaultMessageHistory[routeId=_route1, node=_to1], DefaultMessageHistory[routeId=direct:

      {urn:bug:exceptionhandlingbug:1.0}

      ESBService, node=process67]]
      CamelToEndpoint ................................: direct://%7Burn:bug:exceptionhandlingbug:1.0%7DESBService
      TryRouteBlock ..................................: true
      org.switchyard.bus.camel.consumer ..............: ServiceReference [name=

      {urn:bug:exceptionhandlingbug:1.0}

      ESBService, interface=BaseServiceInterface [type=esb, operations=[ : IN_ONLY : [null, null, null]]], domain=ServiceDomain [name=org.switchyard.domains.root]]
      org.switchyard.bus.camel.contract ..............: org.switchyard.metadata.BaseExchangeContract@7de5871d
      org.switchyard.bus.camel.dispatcher ............: org.switchyard.bus.camel.ExchangeDispatcher@595814a1
      org.switchyard.bus.camel.labels ................:

      {org.switchyard.exchangeInitiatedNS=[org.switchyard.label.behavior.transient], org.switchyard.security.context.SecurityContext=[org.switchyard.label.behavior.transient]}

      org.switchyard.bus.camel.phase .................: IN
      org.switchyard.bus.camel.provider ..............: Service [name=

      {urn:bug:exceptionhandlingbug:1.0}

      ESBService, interface=BaseServiceInterface [type=esb, operations=[ : IN_ONLY : [java:java.lang.Object, null, null]]], domain=ServiceDomain [name=org.switchyard.domains.root], metadata=org.switchyard.metadata.ServiceMetadataBuilder$ServiceMetadataImpl@50bf795f]
      org.switchyard.bus.camel.replyHandler ..........: org.switchyard.test.Invoker$ResponseCatcher@1214d23c
      org.switchyard.exchangeInitiatedNS .............: 544445194779979
      org.switchyard.operationName ...................:
      org.switchyard.rollbackOnFault .................: true
      org.switchyard.security.context.SecurityContext : DefaultSecurityContext@533951552[systemUUID=be15f82c-7853-4b4e-8b60-c8e545821281, expirationMillis=0, credentials=[], securityDomainsToSubjects=

      {other=Objet : Principal : GroupPrincipal@781357442[name=Roles, members=[]] }

      ]
      org.switchyard.serviceName .....................:

      {urn:bug:exceptionhandlingbug:1.0}

      ESBService
      Message Context ->
      breadcrumbId ........................: ID-63313-1484151036514-0-1
      org.switchyard.bus.camel.labels .....:

      {org.switchyard.bus.camel.messageSent=[org.switchyard.label.behavior.transient]}

      org.switchyard.bus.camel.messageSent : true
      org.switchyard.messageId ............: ID-63313-1484151036514-0-7
      org.switchyard.relatesTo ............: ID-63313-1484151036514-0-5
      ------ End Message Trace -------
      Caught exception of type org.switchyard.HandlerException with message: org.switchyard.HandlerException: SWITCHYARD035429: Unexpected exception handling SOAP Message
      Caused by exception of type org.switchyard.HandlerException, message: SWITCHYARD035429: Unexpected exception handling SOAP Message
      Caused by exception of type javax.xml.soap.SOAPException, message: javax.xml.ws.WebServiceException: Could not send Message.
      Caused by exception of type javax.xml.ws.WebServiceException, message: Could not send Message.
      Caused by exception of type java.net.SocketTimeoutException, message: SocketTimeoutException invoking http://127.10.15.20:44221: connect timed out
      Caused by exception of type java.net.SocketTimeoutException, message: connect timed out
      org.switchyard.HandlerException: org.switchyard.HandlerException: SWITCHYARD035429: Unexpected exception handling SOAP Message
      [snip]
      17:10:47,100 DEBUG [org.apache.camel.processor.FilterProcessor] Filter matches: false for exchange: Exchange[ID-63313-1484151036514-0-2]
      17:10:47,100 INFO [org.switchyard.common.camel.SwitchYardCamelContextImpl] Apache Camel 2.17.0.redhat-630187 (CamelContext: org.switchyard.domains.root) is shutting down}}}}

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                damien_b Damien BONVILLAIN
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: