|
Hi there – it would be really useful to have a
full example/test showing how to instantiate the ServiceMix client using the Spring
XML – extended or pure would be great. I have tried to get this working several different
ways including creating my own listener in order to turn off the validation for
the extended Spring XML using both the current release of Spring and the
development release included with service mix but always end up with the exception
below. I know the JBI Container has been instantiated because I can get
the “jbi” bean and list the component names etc. INFO - org.servicemix.jbi.container.JBIContainer
- Activating component for:
[container=defaultJBI,name=ID:redback-40370-1125972377587-0:18,id=ID:redback-40370-1125972377587-0:18]
with service: null component: [EMAIL PROTECTED] ERROR - org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'client' defined in file
[/usr/local/jakarta-tomcat-5.0.28/webapps/NDServe/WEB-INF/applicationContext.xml]:
Instantiation of bean failed; nested exception is
org.springframework.beans.FatalBeanException: Could not instantiate class
[org.servicemix.client.DefaultServiceMixClient]; constructor threw exception;
nested exception is java.lang.NullPointerException: null org.springframework.beans.FatalBeanException: Could
not instantiate class [org.servicemix.client.DefaultServiceMixClient];
constructor threw exception; nested exception is
java.lang.NullPointerException: null java.lang.NullPointerException at
org.servicemix.jbi.management.ManagementContext.getRelativeName(ManagementContext.java:408) at org.servicemix.jbi.management.ManagementContext.createObjectName(ManagementContext.java:388) at
org.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:875) at
org.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:838) at
org.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:800) at
org.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:748) at
org.servicemix.client.DefaultServiceMixClient.<init>(DefaultServiceMixClient.java:69) at
org.servicemix.client.DefaultServiceMixClient.<init>(DefaultServiceMixClient.java:59) at
sun.reflect.GeneratedConstructorAccessor75.newInstance(Unknown Source) at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at
java.lang.reflect.Constructor.newInstance(Constructor.java:274) at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:75) at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:669) at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:329) at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226) at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147) ….. chopped This message has been scanned for viruses. |
- [servicemix-user] Example needed - instantiating ServiceMix... Matthew Clark
- Re: [servicemix-user] Example needed - instantiating S... Sami Dalouche
- RE: [servicemix-user] Example needed - instantiating S... Matthew Clark
- RE: [servicemix-user] Example needed - instantiating S... Matthew Clark
- RE: [servicemix-user] Example needed - instantiati... Sami Dalouche
- RE: [servicemix-user] Example needed - instantiating S... Matthew Clark
- RE: [servicemix-user] Example needed - instantiati... Sami Dalouche
- RE: [servicemix-user] Example needed - instantiating S... Matthew Clark
- Re: [servicemix-user] Example needed - instantiati... Andrew Wertkin
- RE: Re: [servicemix-user] Example needed - instantiat... Matthew Clark
