You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Dan Powell <da...@abakas.com> on 2011/09/07 16:04:00 UTC
Endpoint: Endpoint[service: null, endpoint: null, role: consumer] has no service name defined
Using ServiceMix 4.3.0, I am getting the following exception deploying some of my CXF endpoints. The cxfse:endpoint service deploys fine, but when deploying the cxfbc bundle containing the cxfbc:consumer I get the following exception. I have two other endpoints that are deploying fine, and have been unable to identify the difference in this one that fails. I have confirmed that the MBeans are registered, and the logs are clean when deploying the cxfse bundle. Any suggestions as to where to look would be greatly appreciated.
09:39:27,108 | ERROR | xtenderThread-12 | tServiceReferenceRecipe$Listener | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Error calling listener method public void org.apache.servicemix.common.osgi.EndpointTracker.register(org.apache.servicemix.common.osgi.EndpointWrapper,java.util.Map) throws java.lang.Exception
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:221)[7:org.apache.aries.blueprint:0.2.0.incubating]
at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.invokeMethods(AbstractServiceReferenceRecipe.java:553)[7:org.apache.aries.blueprint:0.2.0.incubating]
at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.bind(AbstractServiceReferenceRecipe.java:518)[7:org.apache.aries.blueprint:0.2.0.incubating]
at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.bind(AbstractServiceReferenceRecipe.java:415)[7:org.apache.aries.blueprint:0.2.0.incubating]
at org.apache.aries.blueprint.container.ReferenceListRecipe.track(ReferenceListRecipe.java:135)[7:org.apache.aries.blueprint:0.2.0.incubating]
at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceAdded(AbstractServiceReferenceRecipe.java:365)[7:org.apache.aries.blueprint:0.2.0.incubating]
at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceChanged(AbstractServiceReferenceRecipe.java:349)[7:org.apache.aries.blueprint:0.2.0.incubating]
at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:871)[org.apache.felix.framework-3.0.9.jar:]
at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:733)[org.apache.felix.framework-3.0.9.jar:]
at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662)[org.apache.felix.framework-3.0.9.jar:]
at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3772)[org.apache.felix.framework-3.0.9.jar:]
at org.apache.felix.framework.Felix.access$000(Felix.java:80)[org.apache.felix.framework-3.0.9.jar:]
at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:729)[org.apache.felix.framework-3.0.9.jar:]
at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)[org.apache.felix.framework-3.0.9.jar:]
at org.apache.felix.framework.Felix.registerService(Felix.java:2861)[org.apache.felix.framework-3.0.9.jar:]
at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)[org.apache.felix.framework-3.0.9.jar:]
at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:229)[org.apache.felix.framework-3.0.9.jar:]
at org.apache.servicemix.common.osgi.EndpointExporter.deploy(EndpointExporter.java:121)[124:servicemix-common:2011.01.0]
at org.apache.servicemix.common.osgi.EndpointExporter.afterPropertiesSet(EndpointExporter.java:185)[124:servicemix-common:2011.01.0]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)[62:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)[62:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[62:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[62:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[62:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[62:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[62:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[62:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)[62:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[64:org.springframework.context:3.0.5.RELEASE]
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[74:org.springframework.osgi.core:1.2.0]
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[74:org.springframework.osgi.core:1.2.0]
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[74:org.springframework.osgi.core:1.2.0]
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[74:org.springframework.osgi.core:1.2.0]
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)[75:org.springframework.osgi.extender:1.2.0]
at java.lang.Thread.run(Thread.java:680)[:1.6.0_26]
Caused by: java.lang.IllegalArgumentException: Endpoint: Endpoint[service: null, endpoint: null, role: consumer] has no service name defined
at org.apache.servicemix.common.endpoints.AbstractEndpoint.getKey(AbstractEndpoint.java:195)
at org.apache.servicemix.common.osgi.EndpointExporter.checkAndRegisterSA(EndpointExporter.java:137)[124:servicemix-common:2011.01.0]
at org.apache.servicemix.common.osgi.EndpointExporter$1.setDeployed(EndpointExporter.java:117)[124:servicemix-common:2011.01.0]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_26]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_26]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$JdkProxyFactory$1.invoke(AbstractServiceReferenceRecipe.java:632)
at $Proxy154.setDeployed(Unknown Source)
at org.apache.servicemix.common.osgi.EndpointTracker.register(EndpointTracker.java:63)[124:servicemix-common:2011.01.0]
... 38 more
Thanks!
Dan
Re: Endpoint: Endpoint[service: null, endpoint: null, role: consumer]
has no service name defined
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Dan,
could you try:
1/ add a namespace for you in the xbean.xml files, let say dan
(xmlns:dan="http://
2/ in the CXFSE xbean.xml:
<cxfse:endpoint ...>
<cxfse:service>dan:my</cxfse:endpoint>
<cxfse:endpoint>DocumentRegistryPortTypeImpl</cxfse:endpoint>
<cxfse:pojo .../>
</cxfse:endpoint>
3/ in the binding endpoint (HTTP or CXFBC), the target service should be:
targetService="dan:my"
targetEndpoint="DocumentRegistryPortTypeImpl"
Regards
JB
On 09/07/2011 04:11 PM, Dan Powell wrote:
> Both the cxfse and cxfbc beans.xml are attached here. The annotations on the Java classes are below:
>
> @javax.jws.WebService(
> serviceName = "DocumentRegistry_Service",
> portName = "DocumentRegistry_Port_Soap12",
> targetNamespace = "urn:ihe:iti:xds-b:2007",
> wsdlLocation = "classpath:wsdl/XDS.b_DocumentRegistry.wsdl",
> endpointInterface = "ihe.iti.xds_b._2007.DocumentRegistryPortType")
>
> @javax.jws.WebService(
> serviceName = "DocumentRepository_Service",
> portName = "DocumentRepository_Port_Soap12",
> targetNamespace = "urn:ihe:iti:xds-b:2007",
> wsdlLocation = "classpath:wsdl/XDS.b_DocumentRepository.wsdl",
> endpointInterface = "ihe.iti.xds_b._2007.DocumentRepositoryPortType")
>
> Thank you!
>
> Dan
>
>
>
>
>
>
> On Sep 7, 2011, at 10:05 AM, Jean-Baptiste Onofré wrote:
>
>> Hi,
>>
>> could you paste your xbean.xml ?
>>
>> It seems that your JBI target URI is not correct or doesn't exist.
>>
>> Regards
>> JB
>>
>> On 09/07/2011 04:04 PM, Dan Powell wrote:
>>> Using ServiceMix 4.3.0, I am getting the following exception deploying some of my CXF endpoints. The cxfse:endpoint service deploys fine, but when deploying the cxfbc bundle containing the cxfbc:consumer I get the following exception. I have two other endpoints that are deploying fine, and have been unable to identify the difference in this one that fails. I have confirmed that the MBeans are registered, and the logs are clean when deploying the cxfse bundle. Any suggestions as to where to look would be greatly appreciated.
>>>
>>> 09:39:27,108 | ERROR | xtenderThread-12 | tServiceReferenceRecipe$Listener | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Error calling listener method public void org.apache.servicemix.common.osgi.EndpointTracker.register(org.apache.servicemix.common.osgi.EndpointWrapper,java.util.Map) throws java.lang.Exception
>>> java.lang.reflect.InvocationTargetException
>>> at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
>>> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
>>> at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:221)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.invokeMethods(AbstractServiceReferenceRecipe.java:553)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.bind(AbstractServiceReferenceRecipe.java:518)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.bind(AbstractServiceReferenceRecipe.java:415)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>> at org.apache.aries.blueprint.container.ReferenceListRecipe.track(ReferenceListRecipe.java:135)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceAdded(AbstractServiceReferenceRecipe.java:365)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceChanged(AbstractServiceReferenceRecipe.java:349)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>> at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:871)[org.apache.felix.framework-3.0.9.jar:]
>>> at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:733)[org.apache.felix.framework-3.0.9.jar:]
>>> at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662)[org.apache.felix.framework-3.0.9.jar:]
>>> at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3772)[org.apache.felix.framework-3.0.9.jar:]
>>> at org.apache.felix.framework.Felix.access$000(Felix.java:80)[org.apache.felix.framework-3.0.9.jar:]
>>> at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:729)[org.apache.felix.framework-3.0.9.jar:]
>>> at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)[org.apache.felix.framework-3.0.9.jar:]
>>> at org.apache.felix.framework.Felix.registerService(Felix.java:2861)[org.apache.felix.framework-3.0.9.jar:]
>>> at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)[org.apache.felix.framework-3.0.9.jar:]
>>> at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:229)[org.apache.felix.framework-3.0.9.jar:]
>>> at org.apache.servicemix.common.osgi.EndpointExporter.deploy(EndpointExporter.java:121)[124:servicemix-common:2011.01.0]
>>> at org.apache.servicemix.common.osgi.EndpointExporter.afterPropertiesSet(EndpointExporter.java:185)[124:servicemix-common:2011.01.0]
>>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)[62:org.springframework.beans:3.0.5.RELEASE]
>>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)[62:org.springframework.beans:3.0.5.RELEASE]
>>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[62:org.springframework.beans:3.0.5.RELEASE]
>>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[62:org.springframework.beans:3.0.5.RELEASE]
>>> at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[62:org.springframework.beans:3.0.5.RELEASE]
>>> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[62:org.springframework.beans:3.0.5.RELEASE]
>>> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[62:org.springframework.beans:3.0.5.RELEASE]
>>> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[62:org.springframework.beans:3.0.5.RELEASE]
>>> at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)[62:org.springframework.beans:3.0.5.RELEASE]
>>> at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[64:org.springframework.context:3.0.5.RELEASE]
>>> at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[74:org.springframework.osgi.core:1.2.0]
>>> at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[74:org.springframework.osgi.core:1.2.0]
>>> at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[74:org.springframework.osgi.core:1.2.0]
>>> at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[74:org.springframework.osgi.core:1.2.0]
>>> at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)[75:org.springframework.osgi.extender:1.2.0]
>>> at java.lang.Thread.run(Thread.java:680)[:1.6.0_26]
>>> Caused by: java.lang.IllegalArgumentException: Endpoint: Endpoint[service: null, endpoint: null, role: consumer] has no service name defined
>>> at org.apache.servicemix.common.endpoints.AbstractEndpoint.getKey(AbstractEndpoint.java:195)
>>> at org.apache.servicemix.common.osgi.EndpointExporter.checkAndRegisterSA(EndpointExporter.java:137)[124:servicemix-common:2011.01.0]
>>> at org.apache.servicemix.common.osgi.EndpointExporter$1.setDeployed(EndpointExporter.java:117)[124:servicemix-common:2011.01.0]
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_26]
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_26]
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
>>> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$JdkProxyFactory$1.invoke(AbstractServiceReferenceRecipe.java:632)
>>> at $Proxy154.setDeployed(Unknown Source)
>>> at org.apache.servicemix.common.osgi.EndpointTracker.register(EndpointTracker.java:63)[124:servicemix-common:2011.01.0]
>>> ... 38 more
>>>
>>> Thanks!
>>>
>>> Dan
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Endpoint: Endpoint[service: null, endpoint: null, role: consumer] has no service name defined
Posted by Dan Powell <da...@abakas.com>.
I suspect the issue may be a difference between patch levels of the JDK - 1.6.0_24 vs _26. A previously compiled bundle deploys without exception.
Dan
On Sep 7, 2011, at 10:20 PM, Freeman Fang <fr...@gmail.com> wrote:
> Hi,
>
> In your wsdl, there should be a service part like
> <wsdl:service name="SOAPService">
> <wsdl:port binding="tns:Greeter_SOAPBinding" name="SoapPort">
> <soap:address location="http://localhost:9000/SoapContext/SoapPort"/>
> </wsdl:port>
> </wsdl:service>
> So the service name should be the namespace:SOAPService, and the endpoint name should be SoapPort.
>
>
> Freeman
> On 2011-9-7, at 下午10:51, Dan Powell wrote:
>
>> That's correct, it does, although I get the same error even if I only create cxf endpoints for one of the services.
>>
>> "the service name of the proxied endpoint" - how would I determine this value?
>>
>> Dan
>>
>> On Sep 7, 2011, at 10:26 AM, Freeman Fang wrote:
>>
>>> Hi,
>>>
>>> I believe the wsdl specified for cxf bc consumer endpoint have multiple service, right?
>>> In this case, you need specify a service for cxf bc consumer endpoint, take a look at [1]"Consumer Endpoint Attributes" to get more details.
>>>
>>> [1]http://servicemix.apache.org/servicemix-cxf-bc.html
>>>
>>> Freeman
>>> On 2011-9-7, at 下午10:11, Dan Powell wrote:
>>>
>>>> Both the cxfse and cxfbc beans.xml are attached here. The annotations on the Java classes are below:
>>>>
>>>> @javax.jws.WebService(
>>>> serviceName = "DocumentRegistry_Service",
>>>> portName = "DocumentRegistry_Port_Soap12",
>>>> targetNamespace = "urn:ihe:iti:xds-b:2007",
>>>> wsdlLocation = "classpath:wsdl/XDS.b_DocumentRegistry.wsdl",
>>>> endpointInterface = "ihe.iti.xds_b._2007.DocumentRegistryPortType")
>>>>
>>>> @javax.jws.WebService(
>>>> serviceName = "DocumentRepository_Service",
>>>> portName = "DocumentRepository_Port_Soap12",
>>>> targetNamespace = "urn:ihe:iti:xds-b:2007",
>>>> wsdlLocation = "classpath:wsdl/XDS.b_DocumentRepository.wsdl",
>>>> endpointInterface = "ihe.iti.xds_b._2007.DocumentRepositoryPortType")
>>>>
>>>> Thank you!
>>>>
>>>> Dan
>>>>
>>>> <cxfbc-beans.xml><cxfse-beans.xml>
>>>>
>>>> On Sep 7, 2011, at 10:05 AM, Jean-Baptiste Onofré wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> could you paste your xbean.xml ?
>>>>>
>>>>> It seems that your JBI target URI is not correct or doesn't exist.
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> On 09/07/2011 04:04 PM, Dan Powell wrote:
>>>>>> Using ServiceMix 4.3.0, I am getting the following exception deploying some of my CXF endpoints. The cxfse:endpoint service deploys fine, but when deploying the cxfbc bundle containing the cxfbc:consumer I get the following exception. I have two other endpoints that are deploying fine, and have been unable to identify the difference in this one that fails. I have confirmed that the MBeans are registered, and the logs are clean when deploying the cxfse bundle. Any suggestions as to where to look would be greatly appreciated.
>>>>>>
>>>>>> 09:39:27,108 | ERROR | xtenderThread-12 | tServiceReferenceRecipe$Listener | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Error calling listener method public void org.apache.servicemix.common.osgi.EndpointTracker.register(org.apache.servicemix.common.osgi.EndpointWrapper,java.util.Map) throws java.lang.Exception
>>>>>> java.lang.reflect.InvocationTargetException
>>>>>> at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source)
>>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
>>>>>> at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:221)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.invokeMethods(AbstractServiceReferenceRecipe.java:553)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.bind(AbstractServiceReferenceRecipe.java:518)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.bind(AbstractServiceReferenceRecipe.java:415)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>>> at org.apache.aries.blueprint.container.ReferenceListRecipe.track(ReferenceListRecipe.java:135)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceAdded(AbstractServiceReferenceRecipe.java:365)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceChanged(AbstractServiceReferenceRecipe.java:349)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>>> at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:871)[org.apache.felix.framework-3.0.9.jar:]
>>>>>> at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:733)[org.apache.felix.framework-3.0.9.jar:]
>>>>>> at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662)[org.apache.felix.framework-3.0.9.jar:]
>>>>>> at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3772)[org.apache.felix.framework-3.0.9.jar:]
>>>>>> at org.apache.felix.framework.Felix.access$000(Felix.java:80)[org.apache.felix.framework-3.0.9.jar:]
>>>>>> at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:729)[org.apache.felix.framework-3.0.9.jar:]
>>>>>> at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)[org.apache.felix.framework-3.0.9.jar:]
>>>>>> at org.apache.felix.framework.Felix.registerService(Felix.java:2861)[org.apache.felix.framework-3.0.9.jar:]
>>>>>> at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)[org.apache.felix.framework-3.0.9.jar:]
>>>>>> at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:229)[org.apache.felix.framework-3.0.9.jar:]
>>>>>> at org.apache.servicemix.common.osgi.EndpointExporter.deploy(EndpointExporter.java:121)[124:servicemix-common:2011.01.0]
>>>>>> at org.apache.servicemix.common.osgi.EndpointExporter.afterPropertiesSet(EndpointExporter.java:185)[124:servicemix-common:2011.01.0]
>>>>>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>>> at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>>> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>>> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>>> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>>> at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>>> at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[64:org.springframework.context:3.0.5.RELEASE]
>>>>>> at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[74:org.springframework.osgi.core:1.2.0]
>>>>>> at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[74:org.springframework.osgi.core:1.2.0]
>>>>>> at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[74:org.springframework.osgi.core:1.2.0]
>>>>>> at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[74:org.springframework.osgi.core:1.2.0]
>>>>>> at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)[75:org.springframework.osgi.extender:1.2.0]
>>>>>> at java.lang.Thread.run(Thread.java:680)[:1.6.0_26]
>>>>>> Caused by: java.lang.IllegalArgumentException: Endpoint: Endpoint[service: null, endpoint: null, role: consumer] has no service name defined
>>>>>> at org.apache.servicemix.common.endpoints.AbstractEndpoint.getKey(AbstractEndpoint.java:195)
>>>>>> at org.apache.servicemix.common.osgi.EndpointExporter.checkAndRegisterSA(EndpointExporter.java:137)[124:servicemix-common:2011.01.0]
>>>>>> at org.apache.servicemix.common.osgi.EndpointExporter$1.setDeployed(EndpointExporter.java:117)[124:servicemix-common:2011.01.0]
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_26]
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_26]
>>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
>>>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$JdkProxyFactory$1.invoke(AbstractServiceReferenceRecipe.java:632)
>>>>>> at $Proxy154.setDeployed(Unknown Source)
>>>>>> at org.apache.servicemix.common.osgi.EndpointTracker.register(EndpointTracker.java:63)[124:servicemix-common:2011.01.0]
>>>>>> ... 38 more
>>>>>>
>>>>>> Thanks!
>>>>>>
>>>>>> Dan
>>>>>
>>>>> --
>>>>> Jean-Baptiste Onofré
>>>>> jbonofre@apache.org
>>>>> http://blog.nanthrax.net
>>>>> Talend - http://www.talend.com
>>>>
>>>
>>> ---------------------------------------------
>>> Freeman Fang
>>>
>>> FuseSource
>>> Email:ffang@fusesource.com
>>> Web: fusesource.com
>>> Twitter: freemanfang
>>> Blog: http://freemanfang.blogspot.com
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>
> ---------------------------------------------
> Freeman Fang
>
> FuseSource
> Email:ffang@fusesource.com
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
>
>
>
>
>
>
>
>
>
Re: Endpoint: Endpoint[service: null, endpoint: null, role: consumer] has no service name defined
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
In your wsdl, there should be a service part like
<wsdl:service name="SOAPService">
<wsdl:port binding="tns:Greeter_SOAPBinding" name="SoapPort">
<soap:address location="http://localhost:9000/SoapContext/SoapPort
"/>
</wsdl:port>
</wsdl:service>
So the service name should be the namespace:SOAPService, and the
endpoint name should be SoapPort.
Freeman
On 2011-9-7, at 下午10:51, Dan Powell wrote:
> That's correct, it does, although I get the same error even if I
> only create cxf endpoints for one of the services.
>
> "the service name of the proxied endpoint" - how would I determine
> this value?
>
> Dan
>
> On Sep 7, 2011, at 10:26 AM, Freeman Fang wrote:
>
>> Hi,
>>
>> I believe the wsdl specified for cxf bc consumer endpoint have
>> multiple service, right?
>> In this case, you need specify a service for cxf bc consumer
>> endpoint, take a look at [1]"Consumer Endpoint Attributes" to get
>> more details.
>>
>> [1]http://servicemix.apache.org/servicemix-cxf-bc.html
>>
>> Freeman
>> On 2011-9-7, at 下午10:11, Dan Powell wrote:
>>
>>> Both the cxfse and cxfbc beans.xml are attached here. The
>>> annotations on the Java classes are below:
>>>
>>> @javax.jws.WebService(
>>> serviceName = "DocumentRegistry_Service",
>>> portName = "DocumentRegistry_Port_Soap12",
>>> targetNamespace = "urn:ihe:iti:xds-b:2007",
>>> wsdlLocation = "classpath:wsdl/XDS.b_DocumentRegistry.wsdl",
>>> endpointInterface = "ihe.iti.xds_b._2007.DocumentRegistryPortType")
>>>
>>> @javax.jws.WebService(
>>> serviceName = "DocumentRepository_Service",
>>> portName = "DocumentRepository_Port_Soap12",
>>> targetNamespace = "urn:ihe:iti:xds-b:2007",
>>> wsdlLocation = "classpath:wsdl/XDS.b_DocumentRepository.wsdl",
>>> endpointInterface =
>>> "ihe.iti.xds_b._2007.DocumentRepositoryPortType")
>>>
>>> Thank you!
>>>
>>> Dan
>>>
>>> <cxfbc-beans.xml><cxfse-beans.xml>
>>>
>>> On Sep 7, 2011, at 10:05 AM, Jean-Baptiste Onofré wrote:
>>>
>>>> Hi,
>>>>
>>>> could you paste your xbean.xml ?
>>>>
>>>> It seems that your JBI target URI is not correct or doesn't exist.
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 09/07/2011 04:04 PM, Dan Powell wrote:
>>>>> Using ServiceMix 4.3.0, I am getting the following exception
>>>>> deploying some of my CXF endpoints. The cxfse:endpoint service
>>>>> deploys fine, but when deploying the cxfbc bundle containing the
>>>>> cxfbc:consumer I get the following exception. I have two other
>>>>> endpoints that are deploying fine, and have been unable to
>>>>> identify the difference in this one that fails. I have
>>>>> confirmed that the MBeans are registered, and the logs are clean
>>>>> when deploying the cxfse bundle. Any suggestions as to where to
>>>>> look would be greatly appreciated.
>>>>>
>>>>> 09:39:27,108 | ERROR | xtenderThread-12 | tServiceReferenceRecipe
>>>>> $Listener | 7 - org.apache.aries.blueprint - 0.2.0.incubating |
>>>>> Error calling listener method public void
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .common
>>>>> .osgi
>>>>> .EndpointTracker
>>>>> .register
>>>>> (org
>>>>> .apache.servicemix.common.osgi.EndpointWrapper,java.util.Map)
>>>>> throws java.lang.Exception
>>>>> java.lang.reflect.InvocationTargetException
>>>>> at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source)
>>>>> at
>>>>> sun
>>>>> .reflect
>>>>> .DelegatingMethodAccessorImpl
>>>>> .invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
>>>>> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .aries
>>>>> .blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:221)
>>>>> [7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>> at
>>>>> org
>>>>> .apache.aries.blueprint.container.AbstractServiceReferenceRecipe
>>>>> $Listener.invokeMethods(AbstractServiceReferenceRecipe.java:553)
>>>>> [7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>> at
>>>>> org
>>>>> .apache.aries.blueprint.container.AbstractServiceReferenceRecipe
>>>>> $Listener.bind(AbstractServiceReferenceRecipe.java:518)
>>>>> [7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .aries
>>>>> .blueprint
>>>>> .container
>>>>> .AbstractServiceReferenceRecipe
>>>>> .bind(AbstractServiceReferenceRecipe.java:415)
>>>>> [7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .aries
>>>>> .blueprint
>>>>> .container.ReferenceListRecipe.track(ReferenceListRecipe.java:
>>>>> 135)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .aries
>>>>> .blueprint
>>>>> .container
>>>>> .AbstractServiceReferenceRecipe
>>>>> .serviceAdded(AbstractServiceReferenceRecipe.java:365)
>>>>> [7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .aries
>>>>> .blueprint
>>>>> .container
>>>>> .AbstractServiceReferenceRecipe
>>>>> .serviceChanged(AbstractServiceReferenceRecipe.java:349)
>>>>> [7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .felix
>>>>> .framework
>>>>> .util
>>>>> .EventDispatcher
>>>>> .invokeServiceListenerCallback(EventDispatcher.java:871)
>>>>> [org.apache.felix.framework-3.0.9.jar:]
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .felix
>>>>> .framework
>>>>> .util.EventDispatcher.fireEventImmediately(EventDispatcher.java:
>>>>> 733)[org.apache.felix.framework-3.0.9.jar:]
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .felix
>>>>> .framework
>>>>> .util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662)
>>>>> [org.apache.felix.framework-3.0.9.jar:]
>>>>> at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:
>>>>> 3772)[org.apache.felix.framework-3.0.9.jar:]
>>>>> at org.apache.felix.framework.Felix.access$000(Felix.java:80)
>>>>> [org.apache.felix.framework-3.0.9.jar:]
>>>>> at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:
>>>>> 729)[org.apache.felix.framework-3.0.9.jar:]
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .felix
>>>>> .framework.ServiceRegistry.registerService(ServiceRegistry.java:
>>>>> 107)[org.apache.felix.framework-3.0.9.jar:]
>>>>> at org.apache.felix.framework.Felix.registerService(Felix.java:
>>>>> 2861)[org.apache.felix.framework-3.0.9.jar:]
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .felix
>>>>> .framework
>>>>> .BundleContextImpl.registerService(BundleContextImpl.java:251)
>>>>> [org.apache.felix.framework-3.0.9.jar:]
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .felix
>>>>> .framework
>>>>> .BundleContextImpl.registerService(BundleContextImpl.java:229)
>>>>> [org.apache.felix.framework-3.0.9.jar:]
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .common.osgi.EndpointExporter.deploy(EndpointExporter.java:121)
>>>>> [124:servicemix-common:2011.01.0]
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .common
>>>>> .osgi.EndpointExporter.afterPropertiesSet(EndpointExporter.java:
>>>>> 185)[124:servicemix-common:2011.01.0]
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .beans
>>>>> .factory
>>>>> .support
>>>>> .AbstractAutowireCapableBeanFactory
>>>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
>>>>> [62:org.springframework.beans:3.0.5.RELEASE]
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .beans
>>>>> .factory
>>>>> .support
>>>>> .AbstractAutowireCapableBeanFactory
>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
>>>>> [62:org.springframework.beans:3.0.5.RELEASE]
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .beans
>>>>> .factory
>>>>> .support
>>>>> .AbstractAutowireCapableBeanFactory
>>>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
>>>>> [62:org.springframework.beans:3.0.5.RELEASE]
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .beans
>>>>> .factory
>>>>> .support
>>>>> .AbstractAutowireCapableBeanFactory
>>>>> .createBean(AbstractAutowireCapableBeanFactory.java:456)
>>>>> [62:org.springframework.beans:3.0.5.RELEASE]
>>>>> at org.springframework.beans.factory.support.AbstractBeanFactory
>>>>> $1.getObject(AbstractBeanFactory.java:291)
>>>>> [62:org.springframework.beans:3.0.5.RELEASE]
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .beans
>>>>> .factory
>>>>> .support
>>>>> .DefaultSingletonBeanRegistry
>>>>> .getSingleton(DefaultSingletonBeanRegistry.java:222)
>>>>> [62:org.springframework.beans:3.0.5.RELEASE]
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .beans
>>>>> .factory
>>>>> .support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
>>>>> 288)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .beans
>>>>> .factory
>>>>> .support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
>>>>> 190)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .beans
>>>>> .factory
>>>>> .support
>>>>> .DefaultListableBeanFactory
>>>>> .preInstantiateSingletons(DefaultListableBeanFactory.java:580)
>>>>> [62:org.springframework.beans:3.0.5.RELEASE]
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .context
>>>>> .support
>>>>> .AbstractApplicationContext
>>>>> .finishBeanFactoryInitialization(AbstractApplicationContext.java:
>>>>> 895)[64:org.springframework.context:3.0.5.RELEASE]
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .osgi
>>>>> .context
>>>>> .support.AbstractDelegatedExecutionApplicationContext.access
>>>>> $1600(AbstractDelegatedExecutionApplicationContext.java:69)
>>>>> [74:org.springframework.osgi.core:1.2.0]
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .osgi
>>>>> .context.support.AbstractDelegatedExecutionApplicationContext
>>>>> $4.run(AbstractDelegatedExecutionApplicationContext.java:355)
>>>>> [74:org.springframework.osgi.core:1.2.0]
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .osgi
>>>>> .util
>>>>> .internal
>>>>> .PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
>>>>> [74:org.springframework.osgi.core:1.2.0]
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .osgi
>>>>> .context
>>>>> .support
>>>>> .AbstractDelegatedExecutionApplicationContext
>>>>> .completeRefresh
>>>>> (AbstractDelegatedExecutionApplicationContext.java:320)
>>>>> [74:org.springframework.osgi.core:1.2.0]
>>>>> at
>>>>> org
>>>>> .springframework
>>>>> .osgi
>>>>> .extender
>>>>> .internal
>>>>> .dependencies.startup.DependencyWaiterApplicationContextExecutor
>>>>> $
>>>>> CompleteRefreshTask
>>>>> .run(DependencyWaiterApplicationContextExecutor.java:136)
>>>>> [75:org.springframework.osgi.extender:1.2.0]
>>>>> at java.lang.Thread.run(Thread.java:680)[:1.6.0_26]
>>>>> Caused by: java.lang.IllegalArgumentException: Endpoint:
>>>>> Endpoint[service: null, endpoint: null, role: consumer] has no
>>>>> service name defined
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .common.endpoints.AbstractEndpoint.getKey(AbstractEndpoint.java:
>>>>> 195)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .common
>>>>> .osgi.EndpointExporter.checkAndRegisterSA(EndpointExporter.java:
>>>>> 137)[124:servicemix-common:2011.01.0]
>>>>> at org.apache.servicemix.common.osgi.EndpointExporter
>>>>> $1.setDeployed(EndpointExporter.java:117)[124:servicemix-common:
>>>>> 2011.01.0]
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:
>>>>> 1.6.0_26]
>>>>> at
>>>>> sun
>>>>> .reflect
>>>>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>>>>> 39)[:1.6.0_26]
>>>>> at
>>>>> sun
>>>>> .reflect
>>>>> .DelegatingMethodAccessorImpl
>>>>> .invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
>>>>> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
>>>>> at
>>>>> org
>>>>> .apache.aries.blueprint.container.AbstractServiceReferenceRecipe
>>>>> $JdkProxyFactory$1.invoke(AbstractServiceReferenceRecipe.java:632)
>>>>> at $Proxy154.setDeployed(Unknown Source)
>>>>> at
>>>>> org
>>>>> .apache
>>>>> .servicemix
>>>>> .common.osgi.EndpointTracker.register(EndpointTracker.java:63)
>>>>> [124:servicemix-common:2011.01.0]
>>>>> ... 38 more
>>>>>
>>>>> Thanks!
>>>>>
>>>>> Dan
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>
>>
>> ---------------------------------------------
>> Freeman Fang
>>
>> FuseSource
>> Email:ffang@fusesource.com
>> Web: fusesource.com
>> Twitter: freemanfang
>> Blog: http://freemanfang.blogspot.com
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
SLA or service constraints
Posted by Peter Shen <pe...@powere2e.com>.
Hi ServiceMix users
Just a questions when we are using ServiceMix,
how shall I or what is the best practice to maintain the service
constraints (like <=50 requests per second or <=10MB data transfer per
request) in ServiceMix?
And I read an article from IBM
http://publib.boulder.ibm.com/infocenter/dmndhelp/v7r0mx/index.jsp?topic=%2Fcom.ibm.websphere.wbpm.scenarios.esb1.doc%2Fconcepts%2Fcscn_sla.html
it seems in websphere, you can define SLAs into WebSphere ESB, and make
the SLA machine readable?
Any similar research in ServiceMix?
--
Thanks and regards
Peter Shen
Re: Endpoint: Endpoint[service: null, endpoint: null, role: consumer] has no service name defined
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
You actually needn't specify service="dan:DocumentRegistry_Service"
endpoint="DocumentRegistryPort" for cxfse:endpoint.
And this NPE generally means that in your cxfbc:consumer, you specify
the service/endpoint mismatch the one from wsdl service/port, you need
double check it with your wsdl.
Freeman
On 2011-9-8, at 上午12:25, Dan Powell wrote:
> I'm not sure if this is progress, but I have set the service and
> endpoint on the cxfse:endpoint and cxfse:consumer beans, and now get
> the following exception. Fragments of the beans.xml below as well.
>
> <cxfbc:consumer wsdl="classpath:wsdl/XDS.b_DocumentRegistry.wsdl"
> service="dan:DocumentRegistry_Service"
> endpoint="DocumentRegistryPort" targetInterface="xds-
> b:DocumentRegistry_PortType" locationURI="http://0.0.0.0:9090/DocumentRegistry_Service
> " mtomEnabled="true">
>
> <cxfse:endpoint service="dan:DocumentRegistry_Service"
> endpoint="DocumentRegistryPort" mtomEnabled="true">
>
> 12:23:14,738 | INFO | xtenderThread-12 |
> EndpointExporter | 124 - servicemix-common -
> 2011.01.0 | something wrong during register endpoint
> {urn:dan}DocumentRegistry_Service:DocumentRegistryPort
> 12:23:14,741 | ERROR | xtenderThread-12 | tServiceReferenceRecipe
> $Listener | 7 - org.apache.aries.blueprint - 0.2.0.incubating |
> Error calling listener method public void
> org
> .apache
> .servicemix
> .common
> .osgi
> .EndpointTracker
> .register
> (org.apache.servicemix.common.osgi.EndpointWrapper,java.util.Map)
> throws java.lang.Exception
> java.lang.reflect.InvocationTargetException
> at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
> at
> sun
> .reflect
> .DelegatingMethodAccessorImpl
> .invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
> at
> org
> .apache
> .aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:
> 221)[7:org.apache.aries.blueprint:0.2.0.incubating]
> at
> org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe
> $Listener.invokeMethods(AbstractServiceReferenceRecipe.java:553)
> [7:org.apache.aries.blueprint:0.2.0.incubating]
> at
> org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe
> $Listener.bind(AbstractServiceReferenceRecipe.java:518)
> [7:org.apache.aries.blueprint:0.2.0.incubating]
> at
> org
> .apache
> .aries
> .blueprint
> .container
> .AbstractServiceReferenceRecipe
> .bind(AbstractServiceReferenceRecipe.java:415)
> [7:org.apache.aries.blueprint:0.2.0.incubating]
> at
> org
> .apache
> .aries
> .blueprint
> .container.ReferenceListRecipe.track(ReferenceListRecipe.java:135)
> [7:org.apache.aries.blueprint:0.2.0.incubating]
> at
> org
> .apache
> .aries
> .blueprint
> .container
> .AbstractServiceReferenceRecipe
> .serviceAdded(AbstractServiceReferenceRecipe.java:365)
> [7:org.apache.aries.blueprint:0.2.0.incubating]
> at
> org
> .apache
> .aries
> .blueprint
> .container
> .AbstractServiceReferenceRecipe
> .serviceChanged(AbstractServiceReferenceRecipe.java:349)
> [7:org.apache.aries.blueprint:0.2.0.incubating]
> at
> org
> .apache
> .felix
> .framework
> .util
> .EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:
> 871)[org.apache.felix.framework-3.0.9.jar:]
> at
> org
> .apache
> .felix
> .framework
> .util.EventDispatcher.fireEventImmediately(EventDispatcher.java:733)
> [org.apache.felix.framework-3.0.9.jar:]
> at
> org
> .apache
> .felix
> .framework
> .util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662)
> [org.apache.felix.framework-3.0.9.jar:]
> at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:
> 3772)[org.apache.felix.framework-3.0.9.jar:]
> at org.apache.felix.framework.Felix.access$000(Felix.java:80)
> [org.apache.felix.framework-3.0.9.jar:]
> at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:729)
> [org.apache.felix.framework-3.0.9.jar:]
> at
> org
> .apache
> .felix
> .framework.ServiceRegistry.registerService(ServiceRegistry.java:107)
> [org.apache.felix.framework-3.0.9.jar:]
> at org.apache.felix.framework.Felix.registerService(Felix.java:2861)
> [org.apache.felix.framework-3.0.9.jar:]
> at
> org
> .apache
> .felix
> .framework.BundleContextImpl.registerService(BundleContextImpl.java:
> 251)[org.apache.felix.framework-3.0.9.jar:]
> at
> org
> .apache
> .felix
> .framework.BundleContextImpl.registerService(BundleContextImpl.java:
> 229)[org.apache.felix.framework-3.0.9.jar:]
> at
> org
> .apache
> .servicemix
> .common.osgi.EndpointExporter.deploy(EndpointExporter.java:121)
> [124:servicemix-common:2011.01.0]
> at
> org
> .apache
> .servicemix
> .common
> .osgi.EndpointExporter.afterPropertiesSet(EndpointExporter.java:185)
> [124:servicemix-common:2011.01.0]
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
> [62:org.springframework.beans:3.0.5.RELEASE]
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
> [62:org.springframework.beans:3.0.5.RELEASE]
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
> [62:org.springframework.beans:3.0.5.RELEASE]
> at
> org
> .springframework
> .beans
> .factory
> .support
> .AbstractAutowireCapableBeanFactory
> .createBean(AbstractAutowireCapableBeanFactory.java:456)
> [62:org.springframework.beans:3.0.5.RELEASE]
> at org.springframework.beans.factory.support.AbstractBeanFactory
> $1.getObject(AbstractBeanFactory.java:291)
> [62:org.springframework.beans:3.0.5.RELEASE]
> at
> org
> .springframework
> .beans
> .factory
> .support
> .DefaultSingletonBeanRegistry
> .getSingleton(DefaultSingletonBeanRegistry.java:222)
> [62:org.springframework.beans:3.0.5.RELEASE]
> at
> org
> .springframework
> .beans
> .factory
> .support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
> [62:org.springframework.beans:3.0.5.RELEASE]
> at
> org
> .springframework
> .beans
> .factory
> .support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
> [62:org.springframework.beans:3.0.5.RELEASE]
> at
> org
> .springframework
> .beans
> .factory
> .support
> .DefaultListableBeanFactory
> .preInstantiateSingletons(DefaultListableBeanFactory.java:580)
> [62:org.springframework.beans:3.0.5.RELEASE]
> at
> org
> .springframework
> .context
> .support
> .AbstractApplicationContext
> .finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
> [64:org.springframework.context:3.0.5.RELEASE]
> at
> org
> .springframework
> .osgi
> .context.support.AbstractDelegatedExecutionApplicationContext.access
> $1600(AbstractDelegatedExecutionApplicationContext.java:69)
> [74:org.springframework.osgi.core:1.2.0]
> at
> org
> .springframework
> .osgi.context.support.AbstractDelegatedExecutionApplicationContext
> $4.run(AbstractDelegatedExecutionApplicationContext.java:355)
> [74:org.springframework.osgi.core:1.2.0]
> at
> org
> .springframework
> .osgi
> .util
> .internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:
> 85)[74:org.springframework.osgi.core:1.2.0]
> at
> org
> .springframework
> .osgi
> .context
> .support
> .AbstractDelegatedExecutionApplicationContext
> .completeRefresh(AbstractDelegatedExecutionApplicationContext.java:
> 320)[74:org.springframework.osgi.core:1.2.0]
> at
> org
> .springframework
> .osgi
> .extender
> .internal
> .dependencies.startup.DependencyWaiterApplicationContextExecutor
> $
> CompleteRefreshTask
> .run(DependencyWaiterApplicationContextExecutor.java:136)
> [75:org.springframework.osgi.extender:1.2.0]
> at java.lang.Thread.run(Thread.java:680)[:1.6.0_26]
> Caused by: javax.jbi.management.DeploymentException:
> java.lang.NullPointerException
> at
> org
> .apache.servicemix.cxfbc.CxfBcConsumer.validate(CxfBcConsumer.java:
> 562)[159:servicemix-cxf-bc:2011.01.0]
> at org.apache.servicemix.common.osgi.EndpointTracker
> $OsgiServiceUnit.<init>(EndpointTracker.java:81)[124:servicemix-
> common:2011.01.0]
> at
> org
> .apache
> .servicemix
> .common.osgi.EndpointTracker.register(EndpointTracker.java:59)
> [124:servicemix-common:2011.01.0]
> ... 38 more
> Caused by: java.lang.NullPointerException
> at
> org
> .apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:
> 129)[119:org.apache.cxf.bundle:2.3.2]
> at
> org
> .apache.servicemix.cxfbc.CxfBcConsumer.validate(CxfBcConsumer.java:
> 446)[159:servicemix-cxf-bc:2011.01.0]
> ... 40 more
>
> On Sep 7, 2011, at 11:12 AM, Dan Powell wrote:
>
>> OK, on the cxfse, I've added:
>>
>> <cxfse:endpoint service="dan:DocumentRegistry_Service"
>> mtomEnabled="true">
>>
>> And on the cxfbc:
>>
>> <cxfbc:consumer wsdl="classpath:wsdl/XDS.b_DocumentRegistry.wsdl"
>> service="dan:DocumentRegistry_Service" targetService="xds-
>> b:DocumentRegistry_Service" targetInterface="xds-
>> b:DocumentRegistry_PortType" locationURI="http://0.0.0.0:9090/DocumentRegistry_Service
>> " mtomEnabled="true">
>>
>> The error has changed slightly to indicate the specified service
>> name:
>>
>> Endpoint[service: {urn:dan}DocumentRegistry_Service, endpoint:
>> null, role: consumer] has no endpoint name defined
>>
>> Dan
>>
>> On Sep 7, 2011, at 10:51 AM, Dan Powell wrote:
>>
>>> That's correct, it does, although I get the same error even if I
>>> only create cxf endpoints for one of the services.
>>>
>>> "the service name of the proxied endpoint" - how would I determine
>>> this value?
>>>
>>> Dan
>>>
>>> On Sep 7, 2011, at 10:26 AM, Freeman Fang wrote:
>>>
>>>> Hi,
>>>>
>>>> I believe the wsdl specified for cxf bc consumer endpoint have
>>>> multiple service, right?
>>>> In this case, you need specify a service for cxf bc consumer
>>>> endpoint, take a look at [1]"Consumer Endpoint Attributes" to
>>>> get more details.
>>>>
>>>> [1]http://servicemix.apache.org/servicemix-cxf-bc.html
>>>>
>>>> Freeman
>>>> On 2011-9-7, at 下午10:11, Dan Powell wrote:
>>>>
>>>>> Both the cxfse and cxfbc beans.xml are attached here. The
>>>>> annotations on the Java classes are below:
>>>>>
>>>>> @javax.jws.WebService(
>>>>> serviceName = "DocumentRegistry_Service",
>>>>> portName = "DocumentRegistry_Port_Soap12",
>>>>> targetNamespace = "urn:ihe:iti:xds-b:2007",
>>>>> wsdlLocation = "classpath:wsdl/XDS.b_DocumentRegistry.wsdl",
>>>>> endpointInterface =
>>>>> "ihe.iti.xds_b._2007.DocumentRegistryPortType")
>>>>>
>>>>> @javax.jws.WebService(
>>>>> serviceName = "DocumentRepository_Service",
>>>>> portName = "DocumentRepository_Port_Soap12",
>>>>> targetNamespace = "urn:ihe:iti:xds-b:2007",
>>>>> wsdlLocation = "classpath:wsdl/XDS.b_DocumentRepository.wsdl",
>>>>> endpointInterface =
>>>>> "ihe.iti.xds_b._2007.DocumentRepositoryPortType")
>>>>>
>>>>> Thank you!
>>>>>
>>>>> Dan
>>>>>
>>>>> <cxfbc-beans.xml><cxfse-beans.xml>
>>>>>
>>>>> On Sep 7, 2011, at 10:05 AM, Jean-Baptiste Onofré wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> could you paste your xbean.xml ?
>>>>>>
>>>>>> It seems that your JBI target URI is not correct or doesn't
>>>>>> exist.
>>>>>>
>>>>>> Regards
>>>>>> JB
>>>>>>
>>>>>> On 09/07/2011 04:04 PM, Dan Powell wrote:
>>>>>>> Using ServiceMix 4.3.0, I am getting the following exception
>>>>>>> deploying some of my CXF endpoints. The cxfse:endpoint
>>>>>>> service deploys fine, but when deploying the cxfbc bundle
>>>>>>> containing the cxfbc:consumer I get the following exception.
>>>>>>> I have two other endpoints that are deploying fine, and have
>>>>>>> been unable to identify the difference in this one that
>>>>>>> fails. I have confirmed that the MBeans are registered, and
>>>>>>> the logs are clean when deploying the cxfse bundle. Any
>>>>>>> suggestions as to where to look would be greatly appreciated.
>>>>>>>
>>>>>>> 09:39:27,108 | ERROR | xtenderThread-12 |
>>>>>>> tServiceReferenceRecipe$Listener | 7 -
>>>>>>> org.apache.aries.blueprint - 0.2.0.incubating | Error calling
>>>>>>> listener method public void
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .common
>>>>>>> .osgi
>>>>>>> .EndpointTracker
>>>>>>> .register
>>>>>>> (org
>>>>>>> .apache.servicemix.common.osgi.EndpointWrapper,java.util.Map)
>>>>>>> throws java.lang.Exception
>>>>>>> java.lang.reflect.InvocationTargetException
>>>>>>> at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown
>>>>>>> Source)
>>>>>>> at
>>>>>>> sun
>>>>>>> .reflect
>>>>>>> .DelegatingMethodAccessorImpl
>>>>>>> .invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
>>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .aries
>>>>>>> .blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:
>>>>>>> 221)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .aries.blueprint.container.AbstractServiceReferenceRecipe
>>>>>>> $Listener.invokeMethods(AbstractServiceReferenceRecipe.java:
>>>>>>> 553)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .aries.blueprint.container.AbstractServiceReferenceRecipe
>>>>>>> $Listener.bind(AbstractServiceReferenceRecipe.java:518)
>>>>>>> [7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .aries
>>>>>>> .blueprint
>>>>>>> .container
>>>>>>> .AbstractServiceReferenceRecipe
>>>>>>> .bind(AbstractServiceReferenceRecipe.java:415)
>>>>>>> [7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .aries
>>>>>>> .blueprint
>>>>>>> .container.ReferenceListRecipe.track(ReferenceListRecipe.java:
>>>>>>> 135)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .aries
>>>>>>> .blueprint
>>>>>>> .container
>>>>>>> .AbstractServiceReferenceRecipe
>>>>>>> .serviceAdded(AbstractServiceReferenceRecipe.java:365)
>>>>>>> [7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .aries
>>>>>>> .blueprint
>>>>>>> .container
>>>>>>> .AbstractServiceReferenceRecipe
>>>>>>> .serviceChanged(AbstractServiceReferenceRecipe.java:349)
>>>>>>> [7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .felix
>>>>>>> .framework
>>>>>>> .util
>>>>>>> .EventDispatcher
>>>>>>> .invokeServiceListenerCallback(EventDispatcher.java:871)
>>>>>>> [org.apache.felix.framework-3.0.9.jar:]
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .felix
>>>>>>> .framework
>>>>>>> .util
>>>>>>> .EventDispatcher.fireEventImmediately(EventDispatcher.java:733)
>>>>>>> [org.apache.felix.framework-3.0.9.jar:]
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .felix
>>>>>>> .framework
>>>>>>> .util.EventDispatcher.fireServiceEvent(EventDispatcher.java:
>>>>>>> 662)[org.apache.felix.framework-3.0.9.jar:]
>>>>>>> at
>>>>>>> org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:
>>>>>>> 3772)[org.apache.felix.framework-3.0.9.jar:]
>>>>>>> at org.apache.felix.framework.Felix.access$000(Felix.java:80)
>>>>>>> [org.apache.felix.framework-3.0.9.jar:]
>>>>>>> at org.apache.felix.framework.Felix
>>>>>>> $2.serviceChanged(Felix.java:729)
>>>>>>> [org.apache.felix.framework-3.0.9.jar:]
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .felix
>>>>>>> .framework
>>>>>>> .ServiceRegistry.registerService(ServiceRegistry.java:107)
>>>>>>> [org.apache.felix.framework-3.0.9.jar:]
>>>>>>> at
>>>>>>> org.apache.felix.framework.Felix.registerService(Felix.java:
>>>>>>> 2861)[org.apache.felix.framework-3.0.9.jar:]
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .felix
>>>>>>> .framework
>>>>>>> .BundleContextImpl.registerService(BundleContextImpl.java:251)
>>>>>>> [org.apache.felix.framework-3.0.9.jar:]
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .felix
>>>>>>> .framework
>>>>>>> .BundleContextImpl.registerService(BundleContextImpl.java:229)
>>>>>>> [org.apache.felix.framework-3.0.9.jar:]
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .common.osgi.EndpointExporter.deploy(EndpointExporter.java:121)
>>>>>>> [124:servicemix-common:2011.01.0]
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .common
>>>>>>> .osgi
>>>>>>> .EndpointExporter.afterPropertiesSet(EndpointExporter.java:185)
>>>>>>> [124:servicemix-common:2011.01.0]
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:
>>>>>>> 1477)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
>>>>>>> [62:org.springframework.beans:3.0.5.RELEASE]
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
>>>>>>> [62:org.springframework.beans:3.0.5.RELEASE]
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractAutowireCapableBeanFactory
>>>>>>> .createBean(AbstractAutowireCapableBeanFactory.java:456)
>>>>>>> [62:org.springframework.beans:3.0.5.RELEASE]
>>>>>>> at
>>>>>>> org.springframework.beans.factory.support.AbstractBeanFactory
>>>>>>> $1.getObject(AbstractBeanFactory.java:291)
>>>>>>> [62:org.springframework.beans:3.0.5.RELEASE]
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .DefaultSingletonBeanRegistry
>>>>>>> .getSingleton(DefaultSingletonBeanRegistry.java:222)
>>>>>>> [62:org.springframework.beans:3.0.5.RELEASE]
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
>>>>>>> [62:org.springframework.beans:3.0.5.RELEASE]
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
>>>>>>> 190)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .beans
>>>>>>> .factory
>>>>>>> .support
>>>>>>> .DefaultListableBeanFactory
>>>>>>> .preInstantiateSingletons(DefaultListableBeanFactory.java:580)
>>>>>>> [62:org.springframework.beans:3.0.5.RELEASE]
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .context
>>>>>>> .support
>>>>>>> .AbstractApplicationContext
>>>>>>> .finishBeanFactoryInitialization
>>>>>>> (AbstractApplicationContext.java:895)
>>>>>>> [64:org.springframework.context:3.0.5.RELEASE]
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .osgi
>>>>>>> .context
>>>>>>> .support.AbstractDelegatedExecutionApplicationContext.access
>>>>>>> $1600(AbstractDelegatedExecutionApplicationContext.java:69)
>>>>>>> [74:org.springframework.osgi.core:1.2.0]
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .osgi
>>>>>>> .context.support.AbstractDelegatedExecutionApplicationContext
>>>>>>> $4.run(AbstractDelegatedExecutionApplicationContext.java:355)
>>>>>>> [74:org.springframework.osgi.core:1.2.0]
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .osgi
>>>>>>> .util
>>>>>>> .internal
>>>>>>> .PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
>>>>>>> [74:org.springframework.osgi.core:1.2.0]
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .osgi
>>>>>>> .context
>>>>>>> .support
>>>>>>> .AbstractDelegatedExecutionApplicationContext
>>>>>>> .completeRefresh
>>>>>>> (AbstractDelegatedExecutionApplicationContext.java:320)
>>>>>>> [74:org.springframework.osgi.core:1.2.0]
>>>>>>> at
>>>>>>> org
>>>>>>> .springframework
>>>>>>> .osgi
>>>>>>> .extender
>>>>>>> .internal
>>>>>>> .dependencies
>>>>>>> .startup.DependencyWaiterApplicationContextExecutor
>>>>>>> $
>>>>>>> CompleteRefreshTask
>>>>>>> .run(DependencyWaiterApplicationContextExecutor.java:136)
>>>>>>> [75:org.springframework.osgi.extender:1.2.0]
>>>>>>> at java.lang.Thread.run(Thread.java:680)[:1.6.0_26]
>>>>>>> Caused by: java.lang.IllegalArgumentException: Endpoint:
>>>>>>> Endpoint[service: null, endpoint: null, role: consumer] has no
>>>>>>> service name defined
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .common
>>>>>>> .endpoints.AbstractEndpoint.getKey(AbstractEndpoint.java:195)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .common
>>>>>>> .osgi
>>>>>>> .EndpointExporter.checkAndRegisterSA(EndpointExporter.java:137)
>>>>>>> [124:servicemix-common:2011.01.0]
>>>>>>> at org.apache.servicemix.common.osgi.EndpointExporter
>>>>>>> $1.setDeployed(EndpointExporter.java:117)[124:servicemix-
>>>>>>> common:2011.01.0]
>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>> [:1.6.0_26]
>>>>>>> at
>>>>>>> sun
>>>>>>> .reflect
>>>>>>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>>>>>>> 39)[:1.6.0_26]
>>>>>>> at
>>>>>>> sun
>>>>>>> .reflect
>>>>>>> .DelegatingMethodAccessorImpl
>>>>>>> .invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
>>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .aries.blueprint.container.AbstractServiceReferenceRecipe
>>>>>>> $JdkProxyFactory$1.invoke(AbstractServiceReferenceRecipe.java:
>>>>>>> 632)
>>>>>>> at $Proxy154.setDeployed(Unknown Source)
>>>>>>> at
>>>>>>> org
>>>>>>> .apache
>>>>>>> .servicemix
>>>>>>> .common.osgi.EndpointTracker.register(EndpointTracker.java:63)
>>>>>>> [124:servicemix-common:2011.01.0]
>>>>>>> ... 38 more
>>>>>>>
>>>>>>> Thanks!
>>>>>>>
>>>>>>> Dan
>>>>>>
>>>>>> --
>>>>>> Jean-Baptiste Onofré
>>>>>> jbonofre@apache.org
>>>>>> http://blog.nanthrax.net
>>>>>> Talend - http://www.talend.com
>>>>>
>>>>
>>>> ---------------------------------------------
>>>> Freeman Fang
>>>>
>>>> FuseSource
>>>> Email:ffang@fusesource.com
>>>> Web: fusesource.com
>>>> Twitter: freemanfang
>>>> Blog: http://freemanfang.blogspot.com
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>
>
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Re: Endpoint: Endpoint[service: null, endpoint: null, role: consumer] has no service name defined
Posted by Dan Powell <da...@abakas.com>.
I'm not sure if this is progress, but I have set the service and endpoint on the cxfse:endpoint and cxfse:consumer beans, and now get the following exception. Fragments of the beans.xml below as well.
<cxfbc:consumer wsdl="classpath:wsdl/XDS.b_DocumentRegistry.wsdl" service="dan:DocumentRegistry_Service" endpoint="DocumentRegistryPort" targetInterface="xds-b:DocumentRegistry_PortType" locationURI="http://0.0.0.0:9090/DocumentRegistry_Service" mtomEnabled="true">
<cxfse:endpoint service="dan:DocumentRegistry_Service" endpoint="DocumentRegistryPort" mtomEnabled="true">
12:23:14,738 | INFO | xtenderThread-12 | EndpointExporter | 124 - servicemix-common - 2011.01.0 | something wrong during register endpoint {urn:dan}DocumentRegistry_Service:DocumentRegistryPort
12:23:14,741 | ERROR | xtenderThread-12 | tServiceReferenceRecipe$Listener | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Error calling listener method public void org.apache.servicemix.common.osgi.EndpointTracker.register(org.apache.servicemix.common.osgi.EndpointWrapper,java.util.Map) throws java.lang.Exception
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:221)[7:org.apache.aries.blueprint:0.2.0.incubating]
at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.invokeMethods(AbstractServiceReferenceRecipe.java:553)[7:org.apache.aries.blueprint:0.2.0.incubating]
at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.bind(AbstractServiceReferenceRecipe.java:518)[7:org.apache.aries.blueprint:0.2.0.incubating]
at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.bind(AbstractServiceReferenceRecipe.java:415)[7:org.apache.aries.blueprint:0.2.0.incubating]
at org.apache.aries.blueprint.container.ReferenceListRecipe.track(ReferenceListRecipe.java:135)[7:org.apache.aries.blueprint:0.2.0.incubating]
at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceAdded(AbstractServiceReferenceRecipe.java:365)[7:org.apache.aries.blueprint:0.2.0.incubating]
at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceChanged(AbstractServiceReferenceRecipe.java:349)[7:org.apache.aries.blueprint:0.2.0.incubating]
at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:871)[org.apache.felix.framework-3.0.9.jar:]
at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:733)[org.apache.felix.framework-3.0.9.jar:]
at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662)[org.apache.felix.framework-3.0.9.jar:]
at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3772)[org.apache.felix.framework-3.0.9.jar:]
at org.apache.felix.framework.Felix.access$000(Felix.java:80)[org.apache.felix.framework-3.0.9.jar:]
at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:729)[org.apache.felix.framework-3.0.9.jar:]
at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)[org.apache.felix.framework-3.0.9.jar:]
at org.apache.felix.framework.Felix.registerService(Felix.java:2861)[org.apache.felix.framework-3.0.9.jar:]
at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)[org.apache.felix.framework-3.0.9.jar:]
at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:229)[org.apache.felix.framework-3.0.9.jar:]
at org.apache.servicemix.common.osgi.EndpointExporter.deploy(EndpointExporter.java:121)[124:servicemix-common:2011.01.0]
at org.apache.servicemix.common.osgi.EndpointExporter.afterPropertiesSet(EndpointExporter.java:185)[124:servicemix-common:2011.01.0]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)[62:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)[62:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[62:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[62:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[62:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[62:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[62:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[62:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)[62:org.springframework.beans:3.0.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[64:org.springframework.context:3.0.5.RELEASE]
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[74:org.springframework.osgi.core:1.2.0]
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[74:org.springframework.osgi.core:1.2.0]
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[74:org.springframework.osgi.core:1.2.0]
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[74:org.springframework.osgi.core:1.2.0]
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)[75:org.springframework.osgi.extender:1.2.0]
at java.lang.Thread.run(Thread.java:680)[:1.6.0_26]
Caused by: javax.jbi.management.DeploymentException: java.lang.NullPointerException
at org.apache.servicemix.cxfbc.CxfBcConsumer.validate(CxfBcConsumer.java:562)[159:servicemix-cxf-bc:2011.01.0]
at org.apache.servicemix.common.osgi.EndpointTracker$OsgiServiceUnit.<init>(EndpointTracker.java:81)[124:servicemix-common:2011.01.0]
at org.apache.servicemix.common.osgi.EndpointTracker.register(EndpointTracker.java:59)[124:servicemix-common:2011.01.0]
... 38 more
Caused by: java.lang.NullPointerException
at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:129)[119:org.apache.cxf.bundle:2.3.2]
at org.apache.servicemix.cxfbc.CxfBcConsumer.validate(CxfBcConsumer.java:446)[159:servicemix-cxf-bc:2011.01.0]
... 40 more
On Sep 7, 2011, at 11:12 AM, Dan Powell wrote:
> OK, on the cxfse, I've added:
>
> <cxfse:endpoint service="dan:DocumentRegistry_Service" mtomEnabled="true">
>
> And on the cxfbc:
>
> <cxfbc:consumer wsdl="classpath:wsdl/XDS.b_DocumentRegistry.wsdl" service="dan:DocumentRegistry_Service" targetService="xds-b:DocumentRegistry_Service" targetInterface="xds-b:DocumentRegistry_PortType" locationURI="http://0.0.0.0:9090/DocumentRegistry_Service" mtomEnabled="true">
>
> The error has changed slightly to indicate the specified service name:
>
> Endpoint[service: {urn:dan}DocumentRegistry_Service, endpoint: null, role: consumer] has no endpoint name defined
>
> Dan
>
> On Sep 7, 2011, at 10:51 AM, Dan Powell wrote:
>
>> That's correct, it does, although I get the same error even if I only create cxf endpoints for one of the services.
>>
>> "the service name of the proxied endpoint" - how would I determine this value?
>>
>> Dan
>>
>> On Sep 7, 2011, at 10:26 AM, Freeman Fang wrote:
>>
>>> Hi,
>>>
>>> I believe the wsdl specified for cxf bc consumer endpoint have multiple service, right?
>>> In this case, you need specify a service for cxf bc consumer endpoint, take a look at [1]"Consumer Endpoint Attributes" to get more details.
>>>
>>> [1]http://servicemix.apache.org/servicemix-cxf-bc.html
>>>
>>> Freeman
>>> On 2011-9-7, at 下午10:11, Dan Powell wrote:
>>>
>>>> Both the cxfse and cxfbc beans.xml are attached here. The annotations on the Java classes are below:
>>>>
>>>> @javax.jws.WebService(
>>>> serviceName = "DocumentRegistry_Service",
>>>> portName = "DocumentRegistry_Port_Soap12",
>>>> targetNamespace = "urn:ihe:iti:xds-b:2007",
>>>> wsdlLocation = "classpath:wsdl/XDS.b_DocumentRegistry.wsdl",
>>>> endpointInterface = "ihe.iti.xds_b._2007.DocumentRegistryPortType")
>>>>
>>>> @javax.jws.WebService(
>>>> serviceName = "DocumentRepository_Service",
>>>> portName = "DocumentRepository_Port_Soap12",
>>>> targetNamespace = "urn:ihe:iti:xds-b:2007",
>>>> wsdlLocation = "classpath:wsdl/XDS.b_DocumentRepository.wsdl",
>>>> endpointInterface = "ihe.iti.xds_b._2007.DocumentRepositoryPortType")
>>>>
>>>> Thank you!
>>>>
>>>> Dan
>>>>
>>>> <cxfbc-beans.xml><cxfse-beans.xml>
>>>>
>>>> On Sep 7, 2011, at 10:05 AM, Jean-Baptiste Onofré wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> could you paste your xbean.xml ?
>>>>>
>>>>> It seems that your JBI target URI is not correct or doesn't exist.
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> On 09/07/2011 04:04 PM, Dan Powell wrote:
>>>>>> Using ServiceMix 4.3.0, I am getting the following exception deploying some of my CXF endpoints. The cxfse:endpoint service deploys fine, but when deploying the cxfbc bundle containing the cxfbc:consumer I get the following exception. I have two other endpoints that are deploying fine, and have been unable to identify the difference in this one that fails. I have confirmed that the MBeans are registered, and the logs are clean when deploying the cxfse bundle. Any suggestions as to where to look would be greatly appreciated.
>>>>>>
>>>>>> 09:39:27,108 | ERROR | xtenderThread-12 | tServiceReferenceRecipe$Listener | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Error calling listener method public void org.apache.servicemix.common.osgi.EndpointTracker.register(org.apache.servicemix.common.osgi.EndpointWrapper,java.util.Map) throws java.lang.Exception
>>>>>> java.lang.reflect.InvocationTargetException
>>>>>> at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source)
>>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
>>>>>> at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:221)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.invokeMethods(AbstractServiceReferenceRecipe.java:553)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.bind(AbstractServiceReferenceRecipe.java:518)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.bind(AbstractServiceReferenceRecipe.java:415)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>>> at org.apache.aries.blueprint.container.ReferenceListRecipe.track(ReferenceListRecipe.java:135)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceAdded(AbstractServiceReferenceRecipe.java:365)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceChanged(AbstractServiceReferenceRecipe.java:349)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>>> at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:871)[org.apache.felix.framework-3.0.9.jar:]
>>>>>> at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:733)[org.apache.felix.framework-3.0.9.jar:]
>>>>>> at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662)[org.apache.felix.framework-3.0.9.jar:]
>>>>>> at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3772)[org.apache.felix.framework-3.0.9.jar:]
>>>>>> at org.apache.felix.framework.Felix.access$000(Felix.java:80)[org.apache.felix.framework-3.0.9.jar:]
>>>>>> at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:729)[org.apache.felix.framework-3.0.9.jar:]
>>>>>> at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)[org.apache.felix.framework-3.0.9.jar:]
>>>>>> at org.apache.felix.framework.Felix.registerService(Felix.java:2861)[org.apache.felix.framework-3.0.9.jar:]
>>>>>> at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)[org.apache.felix.framework-3.0.9.jar:]
>>>>>> at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:229)[org.apache.felix.framework-3.0.9.jar:]
>>>>>> at org.apache.servicemix.common.osgi.EndpointExporter.deploy(EndpointExporter.java:121)[124:servicemix-common:2011.01.0]
>>>>>> at org.apache.servicemix.common.osgi.EndpointExporter.afterPropertiesSet(EndpointExporter.java:185)[124:servicemix-common:2011.01.0]
>>>>>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>>> at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>>> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>>> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>>> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>>> at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>>> at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[64:org.springframework.context:3.0.5.RELEASE]
>>>>>> at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[74:org.springframework.osgi.core:1.2.0]
>>>>>> at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[74:org.springframework.osgi.core:1.2.0]
>>>>>> at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[74:org.springframework.osgi.core:1.2.0]
>>>>>> at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[74:org.springframework.osgi.core:1.2.0]
>>>>>> at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)[75:org.springframework.osgi.extender:1.2.0]
>>>>>> at java.lang.Thread.run(Thread.java:680)[:1.6.0_26]
>>>>>> Caused by: java.lang.IllegalArgumentException: Endpoint: Endpoint[service: null, endpoint: null, role: consumer] has no service name defined
>>>>>> at org.apache.servicemix.common.endpoints.AbstractEndpoint.getKey(AbstractEndpoint.java:195)
>>>>>> at org.apache.servicemix.common.osgi.EndpointExporter.checkAndRegisterSA(EndpointExporter.java:137)[124:servicemix-common:2011.01.0]
>>>>>> at org.apache.servicemix.common.osgi.EndpointExporter$1.setDeployed(EndpointExporter.java:117)[124:servicemix-common:2011.01.0]
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_26]
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_26]
>>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
>>>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$JdkProxyFactory$1.invoke(AbstractServiceReferenceRecipe.java:632)
>>>>>> at $Proxy154.setDeployed(Unknown Source)
>>>>>> at org.apache.servicemix.common.osgi.EndpointTracker.register(EndpointTracker.java:63)[124:servicemix-common:2011.01.0]
>>>>>> ... 38 more
>>>>>>
>>>>>> Thanks!
>>>>>>
>>>>>> Dan
>>>>>
>>>>> --
>>>>> Jean-Baptiste Onofré
>>>>> jbonofre@apache.org
>>>>> http://blog.nanthrax.net
>>>>> Talend - http://www.talend.com
>>>>
>>>
>>> ---------------------------------------------
>>> Freeman Fang
>>>
>>> FuseSource
>>> Email:ffang@fusesource.com
>>> Web: fusesource.com
>>> Twitter: freemanfang
>>> Blog: http://freemanfang.blogspot.com
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>
Re: Endpoint: Endpoint[service: null, endpoint: null, role: consumer] has no service name defined
Posted by Dan Powell <da...@abakas.com>.
OK, on the cxfse, I've added:
<cxfse:endpoint service="dan:DocumentRegistry_Service" mtomEnabled="true">
And on the cxfbc:
<cxfbc:consumer wsdl="classpath:wsdl/XDS.b_DocumentRegistry.wsdl" service="dan:DocumentRegistry_Service" targetService="xds-b:DocumentRegistry_Service" targetInterface="xds-b:DocumentRegistry_PortType" locationURI="http://0.0.0.0:9090/DocumentRegistry_Service" mtomEnabled="true">
The error has changed slightly to indicate the specified service name:
Endpoint[service: {urn:dan}DocumentRegistry_Service, endpoint: null, role: consumer] has no endpoint name defined
Dan
On Sep 7, 2011, at 10:51 AM, Dan Powell wrote:
> That's correct, it does, although I get the same error even if I only create cxf endpoints for one of the services.
>
> "the service name of the proxied endpoint" - how would I determine this value?
>
> Dan
>
> On Sep 7, 2011, at 10:26 AM, Freeman Fang wrote:
>
>> Hi,
>>
>> I believe the wsdl specified for cxf bc consumer endpoint have multiple service, right?
>> In this case, you need specify a service for cxf bc consumer endpoint, take a look at [1]"Consumer Endpoint Attributes" to get more details.
>>
>> [1]http://servicemix.apache.org/servicemix-cxf-bc.html
>>
>> Freeman
>> On 2011-9-7, at 下午10:11, Dan Powell wrote:
>>
>>> Both the cxfse and cxfbc beans.xml are attached here. The annotations on the Java classes are below:
>>>
>>> @javax.jws.WebService(
>>> serviceName = "DocumentRegistry_Service",
>>> portName = "DocumentRegistry_Port_Soap12",
>>> targetNamespace = "urn:ihe:iti:xds-b:2007",
>>> wsdlLocation = "classpath:wsdl/XDS.b_DocumentRegistry.wsdl",
>>> endpointInterface = "ihe.iti.xds_b._2007.DocumentRegistryPortType")
>>>
>>> @javax.jws.WebService(
>>> serviceName = "DocumentRepository_Service",
>>> portName = "DocumentRepository_Port_Soap12",
>>> targetNamespace = "urn:ihe:iti:xds-b:2007",
>>> wsdlLocation = "classpath:wsdl/XDS.b_DocumentRepository.wsdl",
>>> endpointInterface = "ihe.iti.xds_b._2007.DocumentRepositoryPortType")
>>>
>>> Thank you!
>>>
>>> Dan
>>>
>>> <cxfbc-beans.xml><cxfse-beans.xml>
>>>
>>> On Sep 7, 2011, at 10:05 AM, Jean-Baptiste Onofré wrote:
>>>
>>>> Hi,
>>>>
>>>> could you paste your xbean.xml ?
>>>>
>>>> It seems that your JBI target URI is not correct or doesn't exist.
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 09/07/2011 04:04 PM, Dan Powell wrote:
>>>>> Using ServiceMix 4.3.0, I am getting the following exception deploying some of my CXF endpoints. The cxfse:endpoint service deploys fine, but when deploying the cxfbc bundle containing the cxfbc:consumer I get the following exception. I have two other endpoints that are deploying fine, and have been unable to identify the difference in this one that fails. I have confirmed that the MBeans are registered, and the logs are clean when deploying the cxfse bundle. Any suggestions as to where to look would be greatly appreciated.
>>>>>
>>>>> 09:39:27,108 | ERROR | xtenderThread-12 | tServiceReferenceRecipe$Listener | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Error calling listener method public void org.apache.servicemix.common.osgi.EndpointTracker.register(org.apache.servicemix.common.osgi.EndpointWrapper,java.util.Map) throws java.lang.Exception
>>>>> java.lang.reflect.InvocationTargetException
>>>>> at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source)
>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
>>>>> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
>>>>> at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:221)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.invokeMethods(AbstractServiceReferenceRecipe.java:553)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.bind(AbstractServiceReferenceRecipe.java:518)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.bind(AbstractServiceReferenceRecipe.java:415)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>> at org.apache.aries.blueprint.container.ReferenceListRecipe.track(ReferenceListRecipe.java:135)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceAdded(AbstractServiceReferenceRecipe.java:365)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceChanged(AbstractServiceReferenceRecipe.java:349)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>>> at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:871)[org.apache.felix.framework-3.0.9.jar:]
>>>>> at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:733)[org.apache.felix.framework-3.0.9.jar:]
>>>>> at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662)[org.apache.felix.framework-3.0.9.jar:]
>>>>> at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3772)[org.apache.felix.framework-3.0.9.jar:]
>>>>> at org.apache.felix.framework.Felix.access$000(Felix.java:80)[org.apache.felix.framework-3.0.9.jar:]
>>>>> at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:729)[org.apache.felix.framework-3.0.9.jar:]
>>>>> at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)[org.apache.felix.framework-3.0.9.jar:]
>>>>> at org.apache.felix.framework.Felix.registerService(Felix.java:2861)[org.apache.felix.framework-3.0.9.jar:]
>>>>> at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)[org.apache.felix.framework-3.0.9.jar:]
>>>>> at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:229)[org.apache.felix.framework-3.0.9.jar:]
>>>>> at org.apache.servicemix.common.osgi.EndpointExporter.deploy(EndpointExporter.java:121)[124:servicemix-common:2011.01.0]
>>>>> at org.apache.servicemix.common.osgi.EndpointExporter.afterPropertiesSet(EndpointExporter.java:185)[124:servicemix-common:2011.01.0]
>>>>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>> at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>> at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)[62:org.springframework.beans:3.0.5.RELEASE]
>>>>> at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[64:org.springframework.context:3.0.5.RELEASE]
>>>>> at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[74:org.springframework.osgi.core:1.2.0]
>>>>> at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[74:org.springframework.osgi.core:1.2.0]
>>>>> at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[74:org.springframework.osgi.core:1.2.0]
>>>>> at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[74:org.springframework.osgi.core:1.2.0]
>>>>> at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)[75:org.springframework.osgi.extender:1.2.0]
>>>>> at java.lang.Thread.run(Thread.java:680)[:1.6.0_26]
>>>>> Caused by: java.lang.IllegalArgumentException: Endpoint: Endpoint[service: null, endpoint: null, role: consumer] has no service name defined
>>>>> at org.apache.servicemix.common.endpoints.AbstractEndpoint.getKey(AbstractEndpoint.java:195)
>>>>> at org.apache.servicemix.common.osgi.EndpointExporter.checkAndRegisterSA(EndpointExporter.java:137)[124:servicemix-common:2011.01.0]
>>>>> at org.apache.servicemix.common.osgi.EndpointExporter$1.setDeployed(EndpointExporter.java:117)[124:servicemix-common:2011.01.0]
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_26]
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_26]
>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
>>>>> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
>>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$JdkProxyFactory$1.invoke(AbstractServiceReferenceRecipe.java:632)
>>>>> at $Proxy154.setDeployed(Unknown Source)
>>>>> at org.apache.servicemix.common.osgi.EndpointTracker.register(EndpointTracker.java:63)[124:servicemix-common:2011.01.0]
>>>>> ... 38 more
>>>>>
>>>>> Thanks!
>>>>>
>>>>> Dan
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>
>>
>> ---------------------------------------------
>> Freeman Fang
>>
>> FuseSource
>> Email:ffang@fusesource.com
>> Web: fusesource.com
>> Twitter: freemanfang
>> Blog: http://freemanfang.blogspot.com
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
Re: Endpoint: Endpoint[service: null, endpoint: null, role: consumer] has no service name defined
Posted by Dan Powell <da...@abakas.com>.
That's correct, it does, although I get the same error even if I only create cxf endpoints for one of the services.
"the service name of the proxied endpoint" - how would I determine this value?
Dan
On Sep 7, 2011, at 10:26 AM, Freeman Fang wrote:
> Hi,
>
> I believe the wsdl specified for cxf bc consumer endpoint have multiple service, right?
> In this case, you need specify a service for cxf bc consumer endpoint, take a look at [1]"Consumer Endpoint Attributes" to get more details.
>
> [1]http://servicemix.apache.org/servicemix-cxf-bc.html
>
> Freeman
> On 2011-9-7, at 下午10:11, Dan Powell wrote:
>
>> Both the cxfse and cxfbc beans.xml are attached here. The annotations on the Java classes are below:
>>
>> @javax.jws.WebService(
>> serviceName = "DocumentRegistry_Service",
>> portName = "DocumentRegistry_Port_Soap12",
>> targetNamespace = "urn:ihe:iti:xds-b:2007",
>> wsdlLocation = "classpath:wsdl/XDS.b_DocumentRegistry.wsdl",
>> endpointInterface = "ihe.iti.xds_b._2007.DocumentRegistryPortType")
>>
>> @javax.jws.WebService(
>> serviceName = "DocumentRepository_Service",
>> portName = "DocumentRepository_Port_Soap12",
>> targetNamespace = "urn:ihe:iti:xds-b:2007",
>> wsdlLocation = "classpath:wsdl/XDS.b_DocumentRepository.wsdl",
>> endpointInterface = "ihe.iti.xds_b._2007.DocumentRepositoryPortType")
>>
>> Thank you!
>>
>> Dan
>>
>> <cxfbc-beans.xml><cxfse-beans.xml>
>>
>> On Sep 7, 2011, at 10:05 AM, Jean-Baptiste Onofré wrote:
>>
>>> Hi,
>>>
>>> could you paste your xbean.xml ?
>>>
>>> It seems that your JBI target URI is not correct or doesn't exist.
>>>
>>> Regards
>>> JB
>>>
>>> On 09/07/2011 04:04 PM, Dan Powell wrote:
>>>> Using ServiceMix 4.3.0, I am getting the following exception deploying some of my CXF endpoints. The cxfse:endpoint service deploys fine, but when deploying the cxfbc bundle containing the cxfbc:consumer I get the following exception. I have two other endpoints that are deploying fine, and have been unable to identify the difference in this one that fails. I have confirmed that the MBeans are registered, and the logs are clean when deploying the cxfse bundle. Any suggestions as to where to look would be greatly appreciated.
>>>>
>>>> 09:39:27,108 | ERROR | xtenderThread-12 | tServiceReferenceRecipe$Listener | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Error calling listener method public void org.apache.servicemix.common.osgi.EndpointTracker.register(org.apache.servicemix.common.osgi.EndpointWrapper,java.util.Map) throws java.lang.Exception
>>>> java.lang.reflect.InvocationTargetException
>>>> at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source)
>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
>>>> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
>>>> at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:221)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.invokeMethods(AbstractServiceReferenceRecipe.java:553)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.bind(AbstractServiceReferenceRecipe.java:518)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.bind(AbstractServiceReferenceRecipe.java:415)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>> at org.apache.aries.blueprint.container.ReferenceListRecipe.track(ReferenceListRecipe.java:135)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceAdded(AbstractServiceReferenceRecipe.java:365)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceChanged(AbstractServiceReferenceRecipe.java:349)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>>> at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:871)[org.apache.felix.framework-3.0.9.jar:]
>>>> at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:733)[org.apache.felix.framework-3.0.9.jar:]
>>>> at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662)[org.apache.felix.framework-3.0.9.jar:]
>>>> at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3772)[org.apache.felix.framework-3.0.9.jar:]
>>>> at org.apache.felix.framework.Felix.access$000(Felix.java:80)[org.apache.felix.framework-3.0.9.jar:]
>>>> at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:729)[org.apache.felix.framework-3.0.9.jar:]
>>>> at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)[org.apache.felix.framework-3.0.9.jar:]
>>>> at org.apache.felix.framework.Felix.registerService(Felix.java:2861)[org.apache.felix.framework-3.0.9.jar:]
>>>> at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)[org.apache.felix.framework-3.0.9.jar:]
>>>> at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:229)[org.apache.felix.framework-3.0.9.jar:]
>>>> at org.apache.servicemix.common.osgi.EndpointExporter.deploy(EndpointExporter.java:121)[124:servicemix-common:2011.01.0]
>>>> at org.apache.servicemix.common.osgi.EndpointExporter.afterPropertiesSet(EndpointExporter.java:185)[124:servicemix-common:2011.01.0]
>>>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)[62:org.springframework.beans:3.0.5.RELEASE]
>>>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)[62:org.springframework.beans:3.0.5.RELEASE]
>>>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[62:org.springframework.beans:3.0.5.RELEASE]
>>>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[62:org.springframework.beans:3.0.5.RELEASE]
>>>> at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[62:org.springframework.beans:3.0.5.RELEASE]
>>>> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[62:org.springframework.beans:3.0.5.RELEASE]
>>>> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[62:org.springframework.beans:3.0.5.RELEASE]
>>>> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[62:org.springframework.beans:3.0.5.RELEASE]
>>>> at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)[62:org.springframework.beans:3.0.5.RELEASE]
>>>> at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[64:org.springframework.context:3.0.5.RELEASE]
>>>> at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[74:org.springframework.osgi.core:1.2.0]
>>>> at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[74:org.springframework.osgi.core:1.2.0]
>>>> at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[74:org.springframework.osgi.core:1.2.0]
>>>> at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[74:org.springframework.osgi.core:1.2.0]
>>>> at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)[75:org.springframework.osgi.extender:1.2.0]
>>>> at java.lang.Thread.run(Thread.java:680)[:1.6.0_26]
>>>> Caused by: java.lang.IllegalArgumentException: Endpoint: Endpoint[service: null, endpoint: null, role: consumer] has no service name defined
>>>> at org.apache.servicemix.common.endpoints.AbstractEndpoint.getKey(AbstractEndpoint.java:195)
>>>> at org.apache.servicemix.common.osgi.EndpointExporter.checkAndRegisterSA(EndpointExporter.java:137)[124:servicemix-common:2011.01.0]
>>>> at org.apache.servicemix.common.osgi.EndpointExporter$1.setDeployed(EndpointExporter.java:117)[124:servicemix-common:2011.01.0]
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_26]
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_26]
>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
>>>> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
>>>> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$JdkProxyFactory$1.invoke(AbstractServiceReferenceRecipe.java:632)
>>>> at $Proxy154.setDeployed(Unknown Source)
>>>> at org.apache.servicemix.common.osgi.EndpointTracker.register(EndpointTracker.java:63)[124:servicemix-common:2011.01.0]
>>>> ... 38 more
>>>>
>>>> Thanks!
>>>>
>>>> Dan
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>
>
> ---------------------------------------------
> Freeman Fang
>
> FuseSource
> Email:ffang@fusesource.com
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
>
>
>
>
>
>
>
>
>
Re: Endpoint: Endpoint[service: null, endpoint: null, role: consumer] has no service name defined
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
I believe the wsdl specified for cxf bc consumer endpoint have
multiple service, right?
In this case, you need specify a service for cxf bc consumer endpoint,
take a look at [1]"Consumer Endpoint Attributes" to get more details.
[1]http://servicemix.apache.org/servicemix-cxf-bc.html
Freeman
On 2011-9-7, at 下午10:11, Dan Powell wrote:
> Both the cxfse and cxfbc beans.xml are attached here. The
> annotations on the Java classes are below:
>
> @javax.jws.WebService(
> serviceName = "DocumentRegistry_Service",
> portName = "DocumentRegistry_Port_Soap12",
> targetNamespace = "urn:ihe:iti:xds-b:2007",
> wsdlLocation = "classpath:wsdl/XDS.b_DocumentRegistry.wsdl",
> endpointInterface = "ihe.iti.xds_b._2007.DocumentRegistryPortType")
>
> @javax.jws.WebService(
> serviceName = "DocumentRepository_Service",
> portName = "DocumentRepository_Port_Soap12",
> targetNamespace = "urn:ihe:iti:xds-b:2007",
> wsdlLocation = "classpath:wsdl/XDS.b_DocumentRepository.wsdl",
> endpointInterface = "ihe.iti.xds_b._2007.DocumentRepositoryPortType")
>
> Thank you!
>
> Dan
>
> <cxfbc-beans.xml><cxfse-beans.xml>
>
> On Sep 7, 2011, at 10:05 AM, Jean-Baptiste Onofré wrote:
>
>> Hi,
>>
>> could you paste your xbean.xml ?
>>
>> It seems that your JBI target URI is not correct or doesn't exist.
>>
>> Regards
>> JB
>>
>> On 09/07/2011 04:04 PM, Dan Powell wrote:
>>> Using ServiceMix 4.3.0, I am getting the following exception
>>> deploying some of my CXF endpoints. The cxfse:endpoint service
>>> deploys fine, but when deploying the cxfbc bundle containing the
>>> cxfbc:consumer I get the following exception. I have two other
>>> endpoints that are deploying fine, and have been unable to
>>> identify the difference in this one that fails. I have confirmed
>>> that the MBeans are registered, and the logs are clean when
>>> deploying the cxfse bundle. Any suggestions as to where to look
>>> would be greatly appreciated.
>>>
>>> 09:39:27,108 | ERROR | xtenderThread-12 | tServiceReferenceRecipe
>>> $Listener | 7 - org.apache.aries.blueprint - 0.2.0.incubating |
>>> Error calling listener method public void
>>> org
>>> .apache
>>> .servicemix
>>> .common
>>> .osgi
>>> .EndpointTracker
>>> .register
>>> (org.apache.servicemix.common.osgi.EndpointWrapper,java.util.Map)
>>> throws java.lang.Exception
>>> java.lang.reflect.InvocationTargetException
>>> at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source)
>>> at
>>> sun
>>> .reflect
>>> .DelegatingMethodAccessorImpl
>>> .invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
>>> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
>>> at
>>> org
>>> .apache
>>> .aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:
>>> 221)[7:org.apache.aries.blueprint:0.2.0.incubating]
>>> at
>>> org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe
>>> $Listener.invokeMethods(AbstractServiceReferenceRecipe.java:553)
>>> [7:org.apache.aries.blueprint:0.2.0.incubating]
>>> at
>>> org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe
>>> $Listener.bind(AbstractServiceReferenceRecipe.java:518)
>>> [7:org.apache.aries.blueprint:0.2.0.incubating]
>>> at
>>> org
>>> .apache
>>> .aries
>>> .blueprint
>>> .container
>>> .AbstractServiceReferenceRecipe
>>> .bind(AbstractServiceReferenceRecipe.java:415)
>>> [7:org.apache.aries.blueprint:0.2.0.incubating]
>>> at
>>> org
>>> .apache
>>> .aries
>>> .blueprint
>>> .container.ReferenceListRecipe.track(ReferenceListRecipe.java:135)
>>> [7:org.apache.aries.blueprint:0.2.0.incubating]
>>> at
>>> org
>>> .apache
>>> .aries
>>> .blueprint
>>> .container
>>> .AbstractServiceReferenceRecipe
>>> .serviceAdded(AbstractServiceReferenceRecipe.java:365)
>>> [7:org.apache.aries.blueprint:0.2.0.incubating]
>>> at
>>> org
>>> .apache
>>> .aries
>>> .blueprint
>>> .container
>>> .AbstractServiceReferenceRecipe
>>> .serviceChanged(AbstractServiceReferenceRecipe.java:349)
>>> [7:org.apache.aries.blueprint:0.2.0.incubating]
>>> at
>>> org
>>> .apache
>>> .felix
>>> .framework
>>> .util
>>> .EventDispatcher
>>> .invokeServiceListenerCallback(EventDispatcher.java:871)
>>> [org.apache.felix.framework-3.0.9.jar:]
>>> at
>>> org
>>> .apache
>>> .felix
>>> .framework
>>> .util.EventDispatcher.fireEventImmediately(EventDispatcher.java:
>>> 733)[org.apache.felix.framework-3.0.9.jar:]
>>> at
>>> org
>>> .apache
>>> .felix
>>> .framework
>>> .util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662)
>>> [org.apache.felix.framework-3.0.9.jar:]
>>> at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:
>>> 3772)[org.apache.felix.framework-3.0.9.jar:]
>>> at org.apache.felix.framework.Felix.access$000(Felix.java:80)
>>> [org.apache.felix.framework-3.0.9.jar:]
>>> at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:
>>> 729)[org.apache.felix.framework-3.0.9.jar:]
>>> at
>>> org
>>> .apache
>>> .felix
>>> .framework.ServiceRegistry.registerService(ServiceRegistry.java:
>>> 107)[org.apache.felix.framework-3.0.9.jar:]
>>> at org.apache.felix.framework.Felix.registerService(Felix.java:
>>> 2861)[org.apache.felix.framework-3.0.9.jar:]
>>> at
>>> org
>>> .apache
>>> .felix
>>> .framework
>>> .BundleContextImpl.registerService(BundleContextImpl.java:251)
>>> [org.apache.felix.framework-3.0.9.jar:]
>>> at
>>> org
>>> .apache
>>> .felix
>>> .framework
>>> .BundleContextImpl.registerService(BundleContextImpl.java:229)
>>> [org.apache.felix.framework-3.0.9.jar:]
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .common.osgi.EndpointExporter.deploy(EndpointExporter.java:121)
>>> [124:servicemix-common:2011.01.0]
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .common
>>> .osgi.EndpointExporter.afterPropertiesSet(EndpointExporter.java:
>>> 185)[124:servicemix-common:2011.01.0]
>>> at
>>> org
>>> .springframework
>>> .beans
>>> .factory
>>> .support
>>> .AbstractAutowireCapableBeanFactory
>>> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
>>> [62:org.springframework.beans:3.0.5.RELEASE]
>>> at
>>> org
>>> .springframework
>>> .beans
>>> .factory
>>> .support
>>> .AbstractAutowireCapableBeanFactory
>>> .initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
>>> [62:org.springframework.beans:3.0.5.RELEASE]
>>> at
>>> org
>>> .springframework
>>> .beans
>>> .factory
>>> .support
>>> .AbstractAutowireCapableBeanFactory
>>> .doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
>>> [62:org.springframework.beans:3.0.5.RELEASE]
>>> at
>>> org
>>> .springframework
>>> .beans
>>> .factory
>>> .support
>>> .AbstractAutowireCapableBeanFactory
>>> .createBean(AbstractAutowireCapableBeanFactory.java:456)
>>> [62:org.springframework.beans:3.0.5.RELEASE]
>>> at org.springframework.beans.factory.support.AbstractBeanFactory
>>> $1.getObject(AbstractBeanFactory.java:291)
>>> [62:org.springframework.beans:3.0.5.RELEASE]
>>> at
>>> org
>>> .springframework
>>> .beans
>>> .factory
>>> .support
>>> .DefaultSingletonBeanRegistry
>>> .getSingleton(DefaultSingletonBeanRegistry.java:222)
>>> [62:org.springframework.beans:3.0.5.RELEASE]
>>> at
>>> org
>>> .springframework
>>> .beans
>>> .factory
>>> .support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
>>> 288)[62:org.springframework.beans:3.0.5.RELEASE]
>>> at
>>> org
>>> .springframework
>>> .beans
>>> .factory
>>> .support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
>>> [62:org.springframework.beans:3.0.5.RELEASE]
>>> at
>>> org
>>> .springframework
>>> .beans
>>> .factory
>>> .support
>>> .DefaultListableBeanFactory
>>> .preInstantiateSingletons(DefaultListableBeanFactory.java:580)
>>> [62:org.springframework.beans:3.0.5.RELEASE]
>>> at
>>> org
>>> .springframework
>>> .context
>>> .support
>>> .AbstractApplicationContext
>>> .finishBeanFactoryInitialization(AbstractApplicationContext.java:
>>> 895)[64:org.springframework.context:3.0.5.RELEASE]
>>> at
>>> org
>>> .springframework
>>> .osgi
>>> .context
>>> .support.AbstractDelegatedExecutionApplicationContext.access
>>> $1600(AbstractDelegatedExecutionApplicationContext.java:69)
>>> [74:org.springframework.osgi.core:1.2.0]
>>> at
>>> org
>>> .springframework
>>> .osgi.context.support.AbstractDelegatedExecutionApplicationContext
>>> $4.run(AbstractDelegatedExecutionApplicationContext.java:355)
>>> [74:org.springframework.osgi.core:1.2.0]
>>> at
>>> org
>>> .springframework
>>> .osgi
>>> .util
>>> .internal
>>> .PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
>>> [74:org.springframework.osgi.core:1.2.0]
>>> at
>>> org
>>> .springframework
>>> .osgi
>>> .context
>>> .support
>>> .AbstractDelegatedExecutionApplicationContext
>>> .completeRefresh(AbstractDelegatedExecutionApplicationContext.java:
>>> 320)[74:org.springframework.osgi.core:1.2.0]
>>> at
>>> org
>>> .springframework
>>> .osgi
>>> .extender
>>> .internal
>>> .dependencies.startup.DependencyWaiterApplicationContextExecutor
>>> $
>>> CompleteRefreshTask
>>> .run(DependencyWaiterApplicationContextExecutor.java:136)
>>> [75:org.springframework.osgi.extender:1.2.0]
>>> at java.lang.Thread.run(Thread.java:680)[:1.6.0_26]
>>> Caused by: java.lang.IllegalArgumentException: Endpoint:
>>> Endpoint[service: null, endpoint: null, role: consumer] has no
>>> service name defined
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .common.endpoints.AbstractEndpoint.getKey(AbstractEndpoint.java:195)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .common
>>> .osgi.EndpointExporter.checkAndRegisterSA(EndpointExporter.java:
>>> 137)[124:servicemix-common:2011.01.0]
>>> at org.apache.servicemix.common.osgi.EndpointExporter
>>> $1.setDeployed(EndpointExporter.java:117)[124:servicemix-common:
>>> 2011.01.0]
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:
>>> 1.6.0_26]
>>> at
>>> sun
>>> .reflect
>>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>> [:1.6.0_26]
>>> at
>>> sun
>>> .reflect
>>> .DelegatingMethodAccessorImpl
>>> .invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
>>> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
>>> at
>>> org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe
>>> $JdkProxyFactory$1.invoke(AbstractServiceReferenceRecipe.java:632)
>>> at $Proxy154.setDeployed(Unknown Source)
>>> at
>>> org
>>> .apache
>>> .servicemix
>>> .common.osgi.EndpointTracker.register(EndpointTracker.java:63)
>>> [124:servicemix-common:2011.01.0]
>>> ... 38 more
>>>
>>> Thanks!
>>>
>>> Dan
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Re: Endpoint: Endpoint[service: null, endpoint: null, role: consumer] has no service name defined
Posted by Dan Powell <da...@abakas.com>.
Both the cxfse and cxfbc beans.xml are attached here. The annotations on the Java classes are below:
@javax.jws.WebService(
serviceName = "DocumentRegistry_Service",
portName = "DocumentRegistry_Port_Soap12",
targetNamespace = "urn:ihe:iti:xds-b:2007",
wsdlLocation = "classpath:wsdl/XDS.b_DocumentRegistry.wsdl",
endpointInterface = "ihe.iti.xds_b._2007.DocumentRegistryPortType")
@javax.jws.WebService(
serviceName = "DocumentRepository_Service",
portName = "DocumentRepository_Port_Soap12",
targetNamespace = "urn:ihe:iti:xds-b:2007",
wsdlLocation = "classpath:wsdl/XDS.b_DocumentRepository.wsdl",
endpointInterface = "ihe.iti.xds_b._2007.DocumentRepositoryPortType")
Thank you!
Dan
Re: Endpoint: Endpoint[service: null, endpoint: null, role: consumer]
has no service name defined
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
could you paste your xbean.xml ?
It seems that your JBI target URI is not correct or doesn't exist.
Regards
JB
On 09/07/2011 04:04 PM, Dan Powell wrote:
> Using ServiceMix 4.3.0, I am getting the following exception deploying some of my CXF endpoints. The cxfse:endpoint service deploys fine, but when deploying the cxfbc bundle containing the cxfbc:consumer I get the following exception. I have two other endpoints that are deploying fine, and have been unable to identify the difference in this one that fails. I have confirmed that the MBeans are registered, and the logs are clean when deploying the cxfse bundle. Any suggestions as to where to look would be greatly appreciated.
>
> 09:39:27,108 | ERROR | xtenderThread-12 | tServiceReferenceRecipe$Listener | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Error calling listener method public void org.apache.servicemix.common.osgi.EndpointTracker.register(org.apache.servicemix.common.osgi.EndpointWrapper,java.util.Map) throws java.lang.Exception
> java.lang.reflect.InvocationTargetException
> at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
> at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:221)[7:org.apache.aries.blueprint:0.2.0.incubating]
> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.invokeMethods(AbstractServiceReferenceRecipe.java:553)[7:org.apache.aries.blueprint:0.2.0.incubating]
> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.bind(AbstractServiceReferenceRecipe.java:518)[7:org.apache.aries.blueprint:0.2.0.incubating]
> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.bind(AbstractServiceReferenceRecipe.java:415)[7:org.apache.aries.blueprint:0.2.0.incubating]
> at org.apache.aries.blueprint.container.ReferenceListRecipe.track(ReferenceListRecipe.java:135)[7:org.apache.aries.blueprint:0.2.0.incubating]
> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceAdded(AbstractServiceReferenceRecipe.java:365)[7:org.apache.aries.blueprint:0.2.0.incubating]
> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceChanged(AbstractServiceReferenceRecipe.java:349)[7:org.apache.aries.blueprint:0.2.0.incubating]
> at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:871)[org.apache.felix.framework-3.0.9.jar:]
> at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:733)[org.apache.felix.framework-3.0.9.jar:]
> at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662)[org.apache.felix.framework-3.0.9.jar:]
> at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3772)[org.apache.felix.framework-3.0.9.jar:]
> at org.apache.felix.framework.Felix.access$000(Felix.java:80)[org.apache.felix.framework-3.0.9.jar:]
> at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:729)[org.apache.felix.framework-3.0.9.jar:]
> at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)[org.apache.felix.framework-3.0.9.jar:]
> at org.apache.felix.framework.Felix.registerService(Felix.java:2861)[org.apache.felix.framework-3.0.9.jar:]
> at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)[org.apache.felix.framework-3.0.9.jar:]
> at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:229)[org.apache.felix.framework-3.0.9.jar:]
> at org.apache.servicemix.common.osgi.EndpointExporter.deploy(EndpointExporter.java:121)[124:servicemix-common:2011.01.0]
> at org.apache.servicemix.common.osgi.EndpointExporter.afterPropertiesSet(EndpointExporter.java:185)[124:servicemix-common:2011.01.0]
> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)[62:org.springframework.beans:3.0.5.RELEASE]
> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)[62:org.springframework.beans:3.0.5.RELEASE]
> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[62:org.springframework.beans:3.0.5.RELEASE]
> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[62:org.springframework.beans:3.0.5.RELEASE]
> at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[62:org.springframework.beans:3.0.5.RELEASE]
> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[62:org.springframework.beans:3.0.5.RELEASE]
> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[62:org.springframework.beans:3.0.5.RELEASE]
> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[62:org.springframework.beans:3.0.5.RELEASE]
> at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)[62:org.springframework.beans:3.0.5.RELEASE]
> at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[64:org.springframework.context:3.0.5.RELEASE]
> at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[74:org.springframework.osgi.core:1.2.0]
> at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[74:org.springframework.osgi.core:1.2.0]
> at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[74:org.springframework.osgi.core:1.2.0]
> at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[74:org.springframework.osgi.core:1.2.0]
> at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)[75:org.springframework.osgi.extender:1.2.0]
> at java.lang.Thread.run(Thread.java:680)[:1.6.0_26]
> Caused by: java.lang.IllegalArgumentException: Endpoint: Endpoint[service: null, endpoint: null, role: consumer] has no service name defined
> at org.apache.servicemix.common.endpoints.AbstractEndpoint.getKey(AbstractEndpoint.java:195)
> at org.apache.servicemix.common.osgi.EndpointExporter.checkAndRegisterSA(EndpointExporter.java:137)[124:servicemix-common:2011.01.0]
> at org.apache.servicemix.common.osgi.EndpointExporter$1.setDeployed(EndpointExporter.java:117)[124:servicemix-common:2011.01.0]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_26]
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_26]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
> at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$JdkProxyFactory$1.invoke(AbstractServiceReferenceRecipe.java:632)
> at $Proxy154.setDeployed(Unknown Source)
> at org.apache.servicemix.common.osgi.EndpointTracker.register(EndpointTracker.java:63)[124:servicemix-common:2011.01.0]
> ... 38 more
>
> Thanks!
>
> Dan
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com