3 Replies Latest reply on Aug 1, 2014 2:45 AM by nicolas duminil

    Can't orchestrate external web services - Exception occured while invoking ODE: org.apache.ode.bpel.iapi.BpelEngineException: NoSuchService:

    nicolas duminil Master

      Hello,

       

      I have a switchyard project containing a BPEL which tries to orchestrate the execution of two external web services deployed in the same EAP instance. When teted with SoapUI, the following stack trace is raised:

       

      18:07:29,746 ERROR [org.switchyard.bus.camel.DefaultErrorListener] (http-localhost/127.0.0.1:8080-23)

      ------- Begin Message Trace -------

      Consumer -> {urn:fr.simplex-software.soa.travel-service.bpel:travel-bpel:1.0}travelService

      Provider -> {urn:fr.simplex-software.soa.travel-service.bpel:travel-bpel:1.0}travelService

      Operation -> initiate

      MEP -> IN_ONLY

      Phase -> IN

      State -> OK

      Exchange Context ->

          CamelCreatedTimestamp ............................: Mon Jul 28 18:07:29 CEST 2014

          CamelExceptionCaught .............................: org.switchyard.HandlerException: java.lang.Exception: NoSuchService: {urn:fr.simplex-software.soa.travel-service.bpel:travel-bpel:1.0}travelService

          CamelFailureEndpoint .............................: direct://%7Burn:fr.simplex-software.soa.travel-service.bpel:travel-bpel:1.0%7DtravelService

          CamelFilterMatched ...............................: false

          CamelToEndpoint ..................................: direct://%7Burn:fr.simplex-software.soa.travel-service.bpel:travel-bpel:1.0%7DtravelService

          org.switchyard.bus.camel.consumer ................: ServiceReference [name={urn:fr.simplex-software.soa.travel-service.bpel:travel-bpel:1.0}travelService, interface=SWITCHYARD010007: BaseServiceInterface [type=wsdl, operations=[SWITCHYARD010008: initiate : IN_ONLY  : [{urn:fr.simplex-software.soa:travel-service:model:1.0}travelRequest, null, null]]], domain=ServiceDomain [name=null]]

          org.switchyard.bus.camel.contract ................: org.switchyard.metadata.BaseExchangeContract@78b4c8c6

          org.switchyard.bus.camel.dispatcher ..............: org.switchyard.bus.camel.ExchangeDispatcher@24e97d13

          org.switchyard.bus.camel.labels ..................: {org.switchyard.exchangeGatewayName=[org.switchyard.label.behavior.transient], org.switchyard.exchangeInitiatedNS=[org.switchyard.label.behavior.transient], org.switchyard.exchange.transaction.beforeInvoked=[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:fr.simplex-software.soa.travel-service.bpel:travel-bpel:1.0}travelService, interface=SWITCHYARD010007: BaseServiceInterface [type=wsdl, operations=[SWITCHYARD010008: initiate : IN_ONLY  : [{urn:fr.simplex-software.soa:travel-service:model:1.0}travelRequest, null, null]]], domain=ServiceDomain [name=null], metadata=org.switchyard.metadata.ServiceMetadataBuilder$ServiceMetadataImpl@59c3cdce]

          org.switchyard.bus.camel.replyHandler ............: org.switchyard.component.common.SynchronousInOutHandler@5d127d53

          org.switchyard.exchange.transaction.beforeInvoked : true

          org.switchyard.exchangeGatewayName ...............: _travelService_soap_1

          org.switchyard.exchangeInitiatedNS ...............: 16356156405104

          org.switchyard.security.context.SecurityContext ..: DefaultSecurityContext@1633310651[systemUUID=d0b9a3c5-f055-4cd8-9e2b-1239714fd79e, expirationMillis=0, credentials=[ConfidentialityCredential@1916135403[confidential=false]], securityDomainsToSubjects={}]

      Message Context ->

          breadcrumbId ..............................: ID-obx-53073-1406563226762-4-1

          org.switchyard.bus.camel.labels ...........: {org.switchyard.contentType=[org.switchyard.label.behavior.transient], org.switchyard.bus.camel.messageSent=[org.switchyard.label.behavior.transient], org.switchyard.transform.TransformSequence=[org.switchyard.label.behavior.transient]}

          org.switchyard.bus.camel.messageSent ......: true

          org.switchyard.contentType ................: {urn:fr.simplex-software.soa:travel-service:model:1.0}travelRequest

          org.switchyard.messageId ..................: ID-obx-53073-1406563226762-4-1

          org.switchyard.soap.messageName ...........: TravelRequestMessage

          org.switchyard.transform.TransformSequence : org.switchyard.transform.TransformSequence@45fcbd6c

      ------ End Message Trace -------

      Caught exception of type org.switchyard.HandlerException with message: java.lang.Exception: NoSuchService: {urn:fr.simplex-software.soa.travel-service.bpel:travel-bpel:1.0}travelService

        Caused by exception of type java.lang.Exception, message: NoSuchService: {urn:fr.simplex-software.soa.travel-service.bpel:travel-bpel:1.0}travelService

          Caused by exception of type org.apache.ode.bpel.iapi.BpelEngineException, message: NoSuchService: {urn:fr.simplex-software.soa.travel-service.bpel:travel-bpel:1.0}travelService: org.switchyard.HandlerException: java.lang.Exception: NoSuchService: {urn:fr.simplex-software.soa.travel-service.bpel:travel-bpel:1.0}travelService

          at org.switchyard.component.bpel.riftsaw.RiftsawBPELExchangeHandler.handleMessage(RiftsawBPELExchangeHandler.java:317) [switchyard-component-bpel-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]

          at org.switchyard.bus.camel.processors.ProviderProcessor.process(ProviderProcessor.java:29) [switchyard-bus-camel-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]

          at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:91) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.switchyard.bus.camel.audit.FaultProcessor.process(FaultProcessor.java:46) [switchyard-bus-camel-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]

          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.fabric.FabricTraceProcessor.process(FabricTraceProcessor.java:81) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:308) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.Pipeline.process(Pipeline.java:117) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.Pipeline.process(Pipeline.java:80) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.TryProcessor.process(TryProcessor.java:104) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.TryProcessor.process(TryProcessor.java:78) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:91) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.switchyard.bus.camel.audit.FaultProcessor.process(FaultProcessor.java:46) [switchyard-bus-camel-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]

          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.fabric.FabricTraceProcessor.process(FabricTraceProcessor.java:81) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:308) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:122) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.RouteInflightRepositoryProcessor.processNext(RouteInflightRepositoryProcessor.java:48) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:60) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:150) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:117) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:86) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:63) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:366) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:337) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:233) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:337) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:159) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:106) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:92) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]

          at org.switchyard.bus.camel.ExchangeDispatcher.dispatch(ExchangeDispatcher.java:87) [switchyard-bus-camel-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]

          at org.switchyard.bus.camel.CamelExchange.sendInternal(CamelExchange.java:234) [switchyard-bus-camel-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]

          at org.switchyard.bus.camel.CamelExchange.send(CamelExchange.java:171) [switchyard-bus-camel-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]

          at org.switchyard.component.soap.InboundHandler.invoke(InboundHandler.java:314) [switchyard-component-soap-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]

          at org.switchyard.component.soap.endpoint.BaseWebService.invoke(BaseWebService.java:112) [switchyard-component-soap-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]

          at org.switchyard.component.soap.endpoint.BaseWebService.invoke(BaseWebService.java:41) [switchyard-component-soap-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_11]

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_11]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_11]

          at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_11]

          at org.jboss.ws.common.invocation.AbstractInvocationHandlerJSE.invoke(AbstractInvocationHandlerJSE.java:108)

          at org.jboss.wsf.stack.cxf.JBossWSInvoker.performInvocation(JBossWSInvoker.java:149) [jbossws-cxf-server-4.1.4.Final-redhat-7.jar:4.1.4.Final-redhat-7]

          at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) [cxf-api-2.6.8.redhat-7.jar:2.6.8.redhat-7]

          at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.invoke(AbstractJAXWSMethodInvoker.java:178) [cxf-rt-frontend-jaxws-2.6.8.redhat-7.jar:2.6.8.redhat-7]

          at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:66) [cxf-rt-frontend-jaxws-2.6.8.redhat-7.jar:2.6.8.redhat-7]

          at org.jboss.wsf.stack.cxf.JBossWSInvoker.invoke(JBossWSInvoker.java:129) [jbossws-cxf-server-4.1.4.Final-redhat-7.jar:4.1.4.Final-redhat-7]

          at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58) [cxf-api-2.6.8.redhat-7.jar:2.6.8.redhat-7]

          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_11]

          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_11]

          at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_11]

          at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37) [cxf-api-2.6.8.redhat-7.jar:2.6.8.redhat-7]

          at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:107) [cxf-api-2.6.8.redhat-7.jar:2.6.8.redhat-7]

          at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262) [cxf-api-2.6.8.redhat-7.jar:2.6.8.redhat-7]

          at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) [cxf-api-2.6.8.redhat-7.jar:2.6.8.redhat-7]

          at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:237) [cxf-rt-transports-http-2.6.8.redhat-7.jar:2.6.8.redhat-7]

          at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:97) [jbossws-cxf-server-4.1.4.Final-redhat-7.jar:4.1.4.Final-redhat-7]

          at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:156) [jbossws-cxf-server-4.1.4.Final-redhat-7.jar:4.1.4.Final-redhat-7]

          at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87) [jbossws-cxf-server-4.1.4.Final-redhat-7.jar:4.1.4.Final-redhat-7]

          at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:225) [cxf-rt-transports-http-2.6.8.redhat-7.jar:2.6.8.redhat-7]

          at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:145) [cxf-rt-transports-http-2.6.8.redhat-7.jar:2.6.8.redhat-7]

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]

          at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:135) [jbossws-cxf-server-4.1.4.Final-redhat-7.jar:4.1.4.Final-redhat-7]

          at org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140) [jbossws-spi-2.1.3.Final-redhat-1.jar:2.1.3.Final-redhat-1]

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)

          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_11]

      Caused by: java.lang.Exception: NoSuchService: {urn:fr.simplex-software.soa.travel-service.bpel:travel-bpel:1.0}travelService

          at org.riftsaw.engine.internal.BPELEngineImpl.invoke(BPELEngineImpl.java:837) [engine-3.0.0.Final-redhat-8.jar:3.0.0.Final-redhat-8]

          at org.switchyard.component.bpel.riftsaw.RiftsawBPELExchangeHandler.handleMessage(RiftsawBPELExchangeHandler.java:276) [switchyard-component-bpel-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]

          ... 136 more

      Caused by: org.apache.ode.bpel.iapi.BpelEngineException: NoSuchService: {urn:fr.simplex-software.soa.travel-service.bpel:travel-bpel:1.0}travelService

          at org.apache.ode.bpel.engine.BpelEngineImpl.createMessageExchange(BpelEngineImpl.java:151) [riftsaw-bpel-runtime-3.0.0.Final-redhat-8.jar:3.0.0.Final-redhat-8]

          at org.apache.ode.bpel.engine.BpelEngineImpl.createMessageExchange(BpelEngineImpl.java:220) [riftsaw-bpel-runtime-3.0.0.Final-redhat-8.jar:3.0.0.Final-redhat-8]

          at org.riftsaw.engine.internal.BPELEngineImpl.createMessageExchange(BPELEngineImpl.java:958) [engine-3.0.0.Final-redhat-8.jar:3.0.0.Final-redhat-8]

          at org.riftsaw.engine.internal.BPELEngineImpl.invoke(BPELEngineImpl.java:783) [engine-3.0.0.Final-redhat-8.jar:3.0.0.Final-redhat-8]

          ... 137 more

       

      I'm not sure I understand the corelation between the config in switchyard.xml and the one in deploy.xml. While the swithcyard.xml syntax/semantic is quite clear and well documented, I cannot say the same about deploy.xml. So could someone help with that ? Here is the switchyard.xml:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <sy:switchyard xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912" xmlns:soap="urn:switchyard-component-soap:config:1.1" xmlns:sy="urn:switchyard-config:switchyard:1.1" xmlns:ts="urn:fr.simplex-software.soa.travel-service.bpel:travel-bpel:1.0" name="travelService" targetNamespace="urn:fr.simplex-software.soa.travel-service.bpel:travel-bpel:1.0">

        <sca:composite name="travelService" targetNamespace="urn:fr.simplex-software.soa.travel-service.bpel:travel-bpel:1.0">

          <sca:service name="travelService" promote="travelService/travelService">

            <sca:interface.wsdl interface="travelArtifacts.wsdl#wsdl.porttype(travel)"/>

            <soap:binding.soap>

              <soap:wsdl>travelArtifacts.wsdl</soap:wsdl>

            </soap:binding.soap>

          </sca:service>

          <sca:component name="travelService">

            <sca:implementation.bpel process="ts:travel-bpel"/>

            <sca:service name="travelService">

              <sca:interface.wsdl interface="travelArtifacts.wsdl#wsdl.porttype(travel)"/>

            </sca:service>

            <sca:reference name="bookFlight">

              <sca:interface.wsdl interface="travel-service.wsdl#wsdl.porttype(TravelRequestPortType)"/>

            </sca:reference>

            <sca:reference name="checkFlight">

              <sca:interface.wsdl interface="check-flight-service.wsdl#wsdl.porttype(CheckFlightPortType)"/>

            </sca:reference>

          </sca:component>

          <sca:reference name="bookFlight" multiplicity="0..1" promote="travelService/bookFlight">

            <sca:interface.wsdl interface="travel-service.wsdl#wsdl.porttype(TravelRequestPortType)"/>

            <soap:binding.soap>

              <soap:wsdl>travel-service.wsdl</soap:wsdl>

            </soap:binding.soap>

          </sca:reference>

          <sca:reference name="checkFlight" multiplicity="0..1" promote="travelService/checkFlight">

            <sca:interface.wsdl interface="check-flight-service.wsdl#wsdl.porttype(CheckFlightPortType)"/>

            <soap:binding.soap>

              <soap:wsdl>check-flight-service.wsdl</soap:wsdl>

            </soap:binding.soap>

          </sca:reference>

        </sca:composite>

        <sy:domain>

          <sy:properties>

            <sy:property name="org.switchyard.handlers.messageTrace.enabled" value="true"/>

          </sy:properties>

        </sy:domain>

      </sy:switchyard>

       

      And here is the deploy.xml:

       

      <deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"

        xmlns:tns1="urn:fr.simplex-software.soa.travel-service.bpel:travel-bpel:1.0"

        xmlns:wns1="urn:fr.simplex-software.soa.travel-service.bpel:travel-bpel:1.0/travelArtifacts.wsdl">

          <process name="tns1:travel">

              <active>true</active>

              <retired>false</retired>

              <process-events generate="all"/>

              <provide partnerLink="client">

                  <service name="tns1:travel" port="ignored"/>

              </provide>

          </process>

      </deploy>

       

      I looked at the sample soap-binding-rpc and tried to orchestrate in the same way the external web services. But unsuccessfuly. What I'm doing wrong here ?

       

      Many thanks in advance,

       

      Nicolas DUMINIL

        • 1. Re: Can't orchestrate external web services - Exception occured while invoking ODE: org.apache.ode.bpel.iapi.BpelEngineException: NoSuchService:
          nicolas duminil Master

          I'm updating the case. My new deploy.xml looks like this:

           

          <deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"

            xmlns:tns1="urn:fr.simplex-software.soa.travel-service.bpel:travel-bpel:1.0"

            xmlns:cf="urn:fr.simplex-software.soa:check-flight-service:1.0"

            xmlns:bf="urn:fr.simplex-software.soa:travel-service:1.0">

              <process name="tns1:travel">

                  <active>true</active>

                  <retired>false</retired>

                  <process-events generate="all"/>

                  <provide partnerLink="client"/>

              <invoke partnerLink="client"/>

              <invoke partnerLink="bookFlightPL">

                <service name="bf:TravelRequestService" port="TravelRequestSOAP"/>

              </invoke>

              <invoke partnerLink="checkFlightPL">

                <service name="cf:CheckFlightService" port="CheckFlightSOAP"/>

              </invoke>

              </process>

          </deploy>

           

          Now, the deployment fails with the following exception:

           

          18:57:24,312 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.deployment.unit."travel-bpel-0.0.1-SNAPSHOT.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."travel-bpel-0.0.1-SNAPSHOT.jar".SwitchYardService: org.switchyard.SwitchYardException: org.apache.ode.bpel.iapi.ContextException: Error in <provide> element for process {urn:fr.simplex-software.soa.travel-service.bpel:travel-bpel:1.0}travel; partnerlink tns1:clientdid not identify an endpoint

              at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:80)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_11]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_11]

              at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_11]

          Caused by: org.switchyard.SwitchYardException: org.apache.ode.bpel.iapi.ContextException: Error in <provide> element for process {urn:fr.simplex-software.soa.travel-service.bpel:travel-bpel:1.0}travel; partnerlink tns1:clientdid not identify an endpoint

              at org.switchyard.component.bpel.riftsaw.RiftsawBPELExchangeHandler.doStart(RiftsawBPELExchangeHandler.java:242)

              at org.switchyard.deploy.BaseServiceHandler.start(BaseServiceHandler.java:60)

              at org.switchyard.deploy.internal.Deployment.deployImplementations(Deployment.java:574)

              at org.switchyard.deploy.internal.Deployment.start(Deployment.java:144)

              at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:101)

              at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:73)

              ... 5 more

           

          Obviously, the partner link used in the <provide> statement isn't known for some reason. However, it is correct.

          • 2. Re: Can't orchestrate external web services - Exception occured while invoking ODE: org.apache.ode.bpel.iapi.BpelEngineException: NoSuchService:
            Gary Brown Master

            My guess is that it is complaining about this line:

             

            <invoke partnerLink="client"/>

             

            Your definition currently indicates that partnerlink is both provided and invoked by this process.

             

            Regards

            Gary

            • 3. Re: Can't orchestrate external web services - Exception occured while invoking ODE: org.apache.ode.bpel.iapi.BpelEngineException: NoSuchService:
              nicolas duminil Master

              Yes, which is normal for an asynchronous process. It is invoked by the client, hence the provide statement and it invokes the client's callback, hence the invoke statement. Is there anything wrong with that ?