You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by martymusk <ma...@email.it> on 2007/12/10 10:07:48 UTC

Error calling init

Hy,
I'm studing wsn-example.
in particular, when instance2 receives message from instance3, I've added
some code: 
instance2 makes copy of message and rename it "copia". I should like
instance2 publish this "copia" and instance3 receives it. I've used the
publisher to send "copia " to a "receiveTopic" exactly the way that way it
is done in instance3/servicemix3.xml
(http://servicemix.apache.org/ws-notification-clustered.html).
But when I run instance2, the following error occurs:

DEBUG - DisposableBeanAdapter          - Invoking destroy() on bean with
name 'rmiRegistry'
Caught: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'jbi' defined in file
[/home/martina/SERVICEMIX/apache-servicemix-3.1.2/examples/ws-notification/instance2/servicemix2.xml]:
Invocation of init method failed; nested exception is
javax.jbi.JBIException: Error calling init
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'jbi' defined in file
[/home/martina/SERVICEMIX/apache-servicemix-3.1.2/examples/ws-notification/instance2/servicemix2.xml]:
Invocation of init method failed; nested exception is
javax.jbi.JBIException: Error calling init
Caused by: javax.jbi.JBIException: Error calling init
	at
org.apache.servicemix.common.AsyncBaseLifeCycle.init(AsyncBaseLifeCycle.java:149)
	at
org.apache.servicemix.jbi.framework.ComponentMBeanImpl.init(ComponentMBeanImpl.java:201)
	at
org.apache.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:1114)
	at
org.apache.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:1074)
	at
org.apache.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:1031)
	at
org.apache.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:979)
	at
org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:65)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
	at
org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:149)
	at
org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:100)
	at org.apache.servicemix.Main.main(Main.java:66)
Caused by: org.apache.servicemix.wsn.EndpointRegistrationException: Unable
to activate endpoint
	at
org.apache.servicemix.wsn.component.WSNLifeCycle$WSNEndpointManager.register(WSNLifeCycle.java:133)
	at
org.apache.servicemix.wsn.AbstractEndpoint.register(AbstractEndpoint.java:51)
	at
org.apache.servicemix.wsn.AbstractNotificationBroker.init(AbstractNotificationBroker.java:78)
	at
org.apache.servicemix.wsn.jms.JmsNotificationBroker.init(JmsNotificationBroker.java:40)
	at
org.apache.servicemix.wsn.component.WSNLifeCycle.doInit(WSNLifeCycle.java:66)
	at
org.apache.servicemix.wsn.spring.WSNSpringComponent$LifeCycle.doInit(WSNSpringComponent.java:103)
	at
org.apache.servicemix.common.AsyncBaseLifeCycle.init(AsyncBaseLifeCycle.java:142)
	... 18 more
Caused by: javax.jbi.JBIException: An internal endpoint for service
{http://servicemix.org/wsnotification}NotificationBroker and endpoint Broker
is already registered
	at
org.apache.servicemix.jbi.framework.EndpointRegistry.registerInternalEndpoint(EndpointRegistry.java:189)
	at
org.apache.servicemix.jbi.framework.Registry.activateEndpoint(Registry.java:192)
	at
org.apache.servicemix.jbi.framework.ComponentContextImpl.activateEndpoint(ComponentContextImpl.java:126)
	at
org.apache.servicemix.wsn.component.WSNEndpoint.activate(WSNEndpoint.java:85)
	at
org.apache.servicemix.wsn.component.WSNLifeCycle$WSNEndpointManager.register(WSNLifeCycle.java:130)
	... 24 more


Can somebody help me, please?

Thanks
Martina
-- 
View this message in context: http://www.nabble.com/Error-calling-init-tp14249414s12049p14249414.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.