CXF - java.lang.IllegalArgumentException: UT000009: Path must be specified

Solution Verified - Updated -

Issue

  • when restarting bundle i got the below exception:(note: this occurs only if i have two or more CXFRS bundles deployed to the server)
2019-10-28 13:21:32,708 | ERROR |  Event Dispatcher: 1 | o.a.c.b.BlueprintCamelContext    | 56 - org.apache.camel.camel-blueprint - 2.21.0.fuse-000077-redhat-1 | Error occurred during starting CamelContext: Test_Service1
java.lang.IllegalArgumentException: UT000009: Path must be specified
    at io.undertow.util.PathMatcher.addPrefixPath(PathMatcher.java:115) ~[?:?]
    at io.undertow.server.handlers.PathHandler.addPrefixPath(PathHandler.java:132) ~[?:?]
    at org.apache.cxf.transport.http_undertow.UndertowHTTPServerEngine.addServant(UndertowHTTPServerEngine.java:170) ~[?:?]
    at org.apache.cxf.transport.http_undertow.UndertowHTTPDestination.activate(UndertowHTTPDestination.java:147) ~[?:?]
    at org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:53) ~[?:?]
    at org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:95) ~[?:?]
    at org.apache.cxf.jaxrs.JAXRSBindingFactory.addListener(JAXRSBindingFactory.java:88) ~[?:?]
    at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:123) ~[?:?]
    at org.apache.camel.component.cxf.jaxrs.CxfRsConsumer.doStart(CxfRsConsumer.java:105) ~[?:?]
    at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) ~[405:org.apache.camel.camel-core:2.21.0.fuse-000077-redhat-1]
    at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:3703) ~[405:org.apache.camel.camel-core:2.21.0.fuse-000077-redhat-1]
    at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRouteConsumers(DefaultCamelContext.java:4021) ~[405:org.apache.camel.camel-core:2.21.0.fuse-000077-redhat-1]
    at org.apache.camel.impl.DefaultCamelContext.doStartRouteConsumers(DefaultCamelContext.java:3956) ~[405:org.apache.camel.camel-core:2.21.0.fuse-000077-redhat-1]
    at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3876) ~[405:org.apache.camel.camel-core:2.21.0.fuse-000077-redhat-1]
    at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:3640) ~[405:org.apache.camel.camel-core:2.21.0.fuse-000077-redhat-1]
    at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3492) ~[405:org.apache.camel.camel-core:2.21.0.fuse-000077-redhat-1]
    at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:209) ~[405:org.apache.camel.camel-core:2.21.0.fuse-000077-redhat-1]
    at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3251) ~[405:org.apache.camel.camel-core:2.21.0.fuse-000077-redhat-1]
    at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3247) ~[405:org.apache.camel.camel-core:2.21.0.fuse-000077-redhat-1]
    at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3270) ~[405:org.apache.camel.camel-core:2.21.0.fuse-000077-redhat-1]
    at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:3247) ~[405:org.apache.camel.camel-core:2.21.0.fuse-000077-redhat-1]
    at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) ~[405:org.apache.camel.camel-core:2.21.0.fuse-000077-redhat-1]
    at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:3163) ~[405:org.apache.camel.camel-core:2.21.0.fuse-000077-redhat-1]
    at org.apache.camel.blueprint.BlueprintCamelContext.start(BlueprintCamelContext.java:243) ~[56:org.apache.camel.camel-blueprint:2.21.0.fuse-000077-redhat-1]
    at org.apache.camel.blueprint.BlueprintCamelContext.maybeStart(BlueprintCamelContext.java:283) ~[56:org.apache.camel.camel-blueprint:2.21.0.fuse-000077-redhat-1]
    at org.apache.camel.blueprint.BlueprintCamelContext.blueprintEvent(BlueprintCamelContext.java:177) [56:org.apache.camel.camel-blueprint:2.21.0.fuse-000077-redhat-1]
    at org.apache.aries.blueprint.container.BlueprintEventDispatcher$3.call(BlueprintEventDispatcher.java:190) [47:org.apache.aries.blueprint.core:1.9.0]
    at org.apache.aries.blueprint.container.BlueprintEventDispatcher$3.call(BlueprintEventDispatcher.java:188) [47:org.apache.aries.blueprint.core:1.9.0]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?]
    at java.lang.Thread.run(Thread.java:745) [?:?]

Environment

  • Red Hat Fuse
    • 7.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In