2 Replies Latest reply on Oct 22, 2011 11:14 AM by Malcolm Mallia

    Get Started with ServiceMix 4.2: Fuse ESB

    Malcolm Mallia Newbie

      Hi,

       

      I downloaded the payment-service example files from the 'Get Started with ServiceMix 4.2: Fuse ESB' Webinar and tried to run them on my Fuse ESB / Apache ServiceMix 4.4 installation on Windows 7. 

       

      I get the Service engine running OK.  However after installing the Binding component, when i try to start it I get an IllegalArgumentException.

      Endpoint: Endpoint[service: PaymentService, endpoint: null, role: consumer] has no endpoint name defined.

       

      Stack trace below.

       

      Any ideas what I am doing wrong? ...or have not configured properly?

       

      Regards

       

      Malcolm

       

      Stack trace:

       

      java.lang.reflect.InvocationTargetException

      at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_23]

      at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_23]

      at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:226)[10:org.apache.aries.blueprint:0.3.1]

      at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.invokeMethods(AbstractServiceReferenceRecipe.java:465)[10:org.apache.aries.blueprint:0.3.1]

      at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.bind(AbstractServiceReferenceRecipe.java:430)[10:org.apache.aries.blueprint:0.3.1]

      at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.bind(AbstractServiceReferenceRecipe.java:327)[10:org.apache.aries.blueprint:0.3.1]

      at org.apache.aries.blueprint.container.ReferenceListRecipe.track(ReferenceListRecipe.java:130)[10:org.apache.aries.blueprint:0.3.1]

      at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceAdded(AbstractServiceReferenceRecipe.java:261)[10:org.apache.aries.blueprint:0.3.1]

      at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceChanged(AbstractServiceReferenceRecipe.java:245)[10:org.apache.aries.blueprint:0.3.1]

      at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:859)[org.apache.felix.framework-3.0.9-fuse-01-08.jar:]

      at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:721)[org.apache.felix.framework-3.0.9-fuse-01-08.jar:]

      at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:649)[org.apache.felix.framework-3.0.9-fuse-01-08.jar:]

      at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3781)[org.apache.felix.framework-3.0.9-fuse-01-08.jar:]

      at org.apache.felix.framework.Felix.access$000(Felix.java:79)[org.apache.felix.framework-3.0.9-fuse-01-08.jar:]

      at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:723)[org.apache.felix.framework-3.0.9-fuse-01-08.jar:]

      at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)[org.apache.felix.framework-3.0.9-fuse-01-08.jar:]

      at org.apache.felix.framework.Felix.registerService(Felix.java:2870)[org.apache.felix.framework-3.0.9-fuse-01-08.jar:]

      at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)[org.apache.felix.framework-3.0.9-fuse-01-08.jar:]

      at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:229)[org.apache.felix.framework-3.0.9-fuse-01-08.jar:]

      at org.apache.servicemix.common.osgi.EndpointExporter.deploy(EndpointExporter.java:120)[154:servicemix-common:2011.02.1.fuse-00-08]

      at org.apache.servicemix.common.osgi.EndpointExporter.afterPropertiesSet(EndpointExporter.java:184)[154:servicemix-common:2011.02.1.fuse-00-08]

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)[67:org.springframework.beans:3.0.5.RELEASE]

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)[67:org.springframework.beans:3.0.5.RELEASE]

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[67:org.springframework.beans:3.0.5.RELEASE]

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[67:org.springframework.beans:3.0.5.RELEASE]

      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[67:org.springframework.beans:3.0.5.RELEASE]

      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[67:org.springframework.beans:3.0.5.RELEASE]

      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[67:org.springframework.beans:3.0.5.RELEASE]

      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[67:org.springframework.beans:3.0.5.RELEASE]

      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)[67:org.springframework.beans:3.0.5.RELEASE]

      at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[69:org.springframework.context:3.0.5.RELEASE]

      at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[75:org.springframework.osgi.core:1.2.1]

      at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[75:org.springframework.osgi.core:1.2.1]

      at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[75:org.springframework.osgi.core:1.2.1]

      at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[75:org.springframework.osgi.core:1.2.1]

      at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[78:org.springframework.osgi.extender:1.2.1]

      at java.lang.Thread.run(Thread.java:662)[:1.6.0_23]

      Caused by: java.lang.IllegalArgumentException: Endpoint: Endpoint[service: PaymentService, endpoint: null, role: consumer] has no endpoint name defined

      at org.apache.servicemix.common.endpoints.AbstractEndpoint.getKey(AbstractEndpoint.java:232)

      at org.apache.servicemix.common.osgi.EndpointExporter.checkAndRegisterSA(EndpointExporter.java:136)[154:servicemix-common:2011.02.1.fuse-00-08]

      at org.apache.servicemix.common.osgi.EndpointExporter$1.setDeployed(EndpointExporter.java:116)[154:servicemix-common:2011.02.1.fuse-00-08]

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_23]

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_23]

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_23]

      at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_23]

      at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:50)

      at org.apache.aries.proxy.impl.DefaultWrapper.invoke(DefaultWrapper.java:31)

      at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:78)

      at $Proxy75.setDeployed(Unknown Source)

      at org.apache.servicemix.common.osgi.EndpointTracker.register(EndpointTracker.java:60)[154:servicemix-common:2011.02.1.fuse-00-08]

      ... 38 more