0 Replies Latest reply on Sep 9, 2014 10:10 AM by Morten Olsen

    No registered service found for a route or?

    Morten Olsen Newbie

      Hi,

       

      I'm new to switchyard, and get the below stacktrace, when starting up.

      I've attached my switchyard.xml and hope someone can point me in some direction to solve it. Please let me know if I should supply more information.

       

      Thanks in advance,

      Morten

       

       

      15:55:52,841 ERROR [org.switchyard.bus.camel.DefaultErrorListener]

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

      Consumer -> {urn:magicktrader:0.1.0}DroolsService/DroolsActivityService

      Provider -> [unassigned]

      Operation -> init

      MEP -> IN_ONLY

      Phase -> IN

      State -> OK

      Exchange Context ->

          CamelCreatedTimestamp ..............: Tue Sep 09 15:55:52 CEST 2014

          CamelExceptionCaught ...............: org.switchyard.SwitchYardException: SWITCHYARD014012: No registered service found for {urn:magicktrader:0.1.0}DroolsService/DroolsActivityService

          CamelFailureEndpoint ...............: direct://%7Burn:magicktrader:0.1.0%7DDroolsService/DroolsActivityService

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

          CamelToEndpoint ....................: direct://%7Burn:magicktrader:0.1.0%7DDroolsService/DroolsActivityService

          org.switchyard.bus.camel.consumer ..: ServiceReference [name={urn:magicktrader:0.1.0}DroolsService/DroolsActivityService, interface=SWITCHYARD010007: BaseServiceInterface [type=java, operations=[SWITCHYARD010008: setGlobal : IN_ONLY  : [java:java.lang.Object, null, null], SWITCHYARD010008: init : IN_ONLY  : [null, null, null], SWITCHYARD010008: insertFact : IN_ONLY  : [java:java.lang.Object, null, null]]], domain=ServiceDomain [name=org.switchyard.domains.root]]

          org.switchyard.bus.camel.contract ..: org.switchyard.metadata.BaseExchangeContract@751211de

          org.switchyard.bus.camel.dispatcher : org.switchyard.bus.camel.ExchangeDispatcher@755341dd

          org.switchyard.bus.camel.labels ....: {org.switchyard.exchangeInitiatedNS=[org.switchyard.label.behavior.transient]}

          org.switchyard.bus.camel.phase .....: IN

          org.switchyard.exchangeInitiatedNS .: 28462934599980

      Message Context ->

          breadcrumbId ........................: ID-morten-tower-60459-1410270917221-1-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-morten-tower-60459-1410270917221-1-1

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

      Caught exception of type org.switchyard.SwitchYardException with message: SWITCHYARD014012: No registered service found for {urn:magicktrader:0.1.0}DroolsService/DroolsActivityService

      org.switchyard.SwitchYardException: SWITCHYARD014012: No registered service found for {urn:magicktrader:0.1.0}DroolsService/DroolsActivityService

        at org.switchyard.handlers.AddressingHandler.handleMessage(AddressingHandler.java:58)

        at org.switchyard.bus.camel.processors.HandlerProcessor.process(HandlerProcessor.java:62)

        at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)

        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)

        at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)

        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)

        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)

        at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)

        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)

        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)

        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)

        at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)

        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)

        at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:91)

        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)

        at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)

        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)

        at org.switchyard.bus.camel.audit.FaultProcessor.process(FaultProcessor.java:46)

        at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45)

        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)

        at org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:303)

        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)

        at org.apache.camel.processor.Pipeline.process(Pipeline.java:117)

        at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)

        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)

        at org.apache.camel.processor.TryProcessor.process(TryProcessor.java:104)

        at org.apache.camel.processor.TryProcessor.process(TryProcessor.java:78)

        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)

        at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)

        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)

        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)

        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)

        at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)

        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)

        at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:91)

        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)

        at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)

        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)

        at org.switchyard.bus.camel.audit.FaultProcessor.process(FaultProcessor.java:46)

        at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45)

        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)

        at org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:303)

        at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45)

        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)

        at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:122)

        at org.apache.camel.processor.RouteInflightRepositoryProcessor.processNext(RouteInflightRepositoryProcessor.java:48)

        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)

        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)

        at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)

        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)

        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)

        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)

        at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:61)

        at org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:150)

        at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:117)

        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)

        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:86)

        at org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:63)

        at org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:360)

        at org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:331)

        at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:227)

        at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:331)

        at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:153)

        at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:106)

        at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:92)

        at org.switchyard.bus.camel.ExchangeDispatcher.dispatch(ExchangeDispatcher.java:87)

        at org.switchyard.bus.camel.CamelExchange.sendInternal(CamelExchange.java:234)

        at org.switchyard.bus.camel.CamelExchange.send(CamelExchange.java:171)

        at org.switchyard.component.bean.ClientProxyBean$ClientProxyInvocationHandler.invoke(ClientProxyBean.java:322)

        at com.sun.proxy.$Proxy84.init(Unknown Source)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:606)

        at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:45)

        at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105)

        at org.jboss.weld.proxies.DroolsActivityService$1366014919$Proxy$_$$_WeldClientProxy.init(DroolsActivityService$1366014919$Proxy$_$$_WeldClientProxy.java)

        at com.magick.magicktrader.process.StrategyServiceBean.init(StrategyServiceBean.java:134)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:606)

        at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:267)

        at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)

        at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)

        at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:263)

        at org.jboss.weld.introspector.jlr.WeldMethodImpl.invoke(WeldMethodImpl.java:174)

        at org.jboss.weld.bean.AbstractClassBean.defaultPostConstruct(AbstractClassBean.java:402)

        at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.postConstruct(ManagedBean.java:174)

        at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:294)

        at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:68)

        at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:608)

        at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:635)

        at org.switchyard.component.bean.deploy.CDIBeanServiceDescriptor.getHandler(CDIBeanServiceDescriptor.java:81)

        at org.switchyard.component.bean.deploy.BeanComponentActivator.activateService(BeanComponentActivator.java:80)

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

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

        at org.switchyard.test.SwitchYardTestKit.deploy(SwitchYardTestKit.java:757)

        at org.switchyard.test.SwitchYardTestKit.start(SwitchYardTestKit.java:177)

        at org.switchyard.test.SwitchYardRunner.createTest(SwitchYardRunner.java:60)

        at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:236)

        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)

        at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:233)

        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)

        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)

        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)

        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)

        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)

        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)

        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)

        at org.junit.runners.ParentRunner.run(ParentRunner.java:300)

        at org.switchyard.test.SwitchYardRunner.run(SwitchYardRunner.java:85)

        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)

        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)

        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)

        at org.apache.maven.surefire.Surefire.run(Surefire.java:180)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:606)

        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)