Hi All
We are currently investigating the use of ServiceMix in our organization. Now I
have some experience in building integration routes with Camel and using Karaf
as a runtime however this was mainly using the MINA/Netty components. I have
finally convinced the powers that be to move to the Web services architecture
and I would like to deploy Camel routes as web services. This is where my
problem lies.
Breakdown of environment is as follows:
ServiceMix 4.5.0
Fuse IDE
To understand the process around developing a Camel Route as a web service I
followed the examples in the Camel In Action book. We will be going with a
contract first approach as we are modelling according to IFX standards. So I
was able to follow the example in the book and get a basic web service running
as Camel route. This example seems to be exactly the same as the
camel-cxf-contract-first project when creating a new Fuse project. After I
build the project and install it into Maven using maven install I upload this
to the servicemix and I can see the bundle ready to be started. Note that when
I run this project with the camel:run goal it starts the web service and
everything seems fine.
However when I start the bundle in servicemix I get the following error:
karaf@root> start 320
karaf@root> Exception in thread "SpringOsgiExtenderThread-33"
org.apache.camel.RuntimeCamelException: java.lang.NullPointerException
at
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1271)
at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:120)
at
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:280)
at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
at
org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)
at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NullPointerException
at java.util.regex.Matcher.quoteReplacement(Matcher.java:655)
at
org.apache.camel.core.osgi.OsgiManagementNameStrategy.customResolveManagementName(OsgiManagementNameStrategy.java:53)
at
org.apache.camel.impl.DefaultManagementNameStrategy.resolveManagementName(DefaultManagementNameStrategy.java:131)
at
org.apache.camel.impl.DefaultManagementNameStrategy.getName(DefaultManagementNameStrategy.java:72)
at
org.apache.camel.management.DefaultManagementLifecycleStrategy.onContextStart(DefaultManagementLifecycleStrategy.java:135)
at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1512)
at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1444)
at
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:179)
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1412)
at
org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:228)
at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:118)
... 10 more
How would I go about resolving this error? I am not even sure where to look.
Kind Regards
Neil Franken
IT
Insolvency Management Services (iMS) formerly NCRM
Ph: 1300 467 467 (Australia) - 0800 174 472 (New Zealand)
Fax: 1300 329 329 (Australia) - 0800 403 038 (New Zealand)
Email: [email protected]<mailto:[email protected]>
Web: Insolvency Management Services | Credit Risk
Management<http://www.insol.com.au/>
[cid:[email protected]]
************************************************************
This e-mail, including any attachments sent with it, is confidential and for
the sole use of the intended recipient(s). This confidentiality is not waived
or lost if you receive it and you are not the intended recipient(s), or if it
is transmitted/ received in error.
Any unauthorised use, alteration, disclosure, distribution or review of this
e-mail is prohibited. It may be subject to a statutory duty of confidentiality
if it relates to health service matters.
If you are not the intended recipient(s), or if you have received this e-mail
in error, you are asked to immediately notify the sender by telephone or by
return e-mail. You should also delete this e-mail message and destroy any hard
copies produced.
****************************************************************