Routing from camel-jetty proxy to camel-fabric throws java.lang.IllegalArgumentException: !Absolute URI: /myserviceuri

Solution Unverified - Updated -

Issue

A camel route is defined as follows:

<route id="Jetty-proxy-to-Fabric-Service">
        <from uri="jetty:http://localhost:{{portNumber}}/myserviceuri?matchOnUriPrefix=true"/>
        <log message="Request received headers: ${headers}"/>
        <to uri="fabric:backendcluster" />
</route>

where the backend cluster is a cluster of CXF JAX-RS endpoints.

The route throws java.lang.IllegalArgumentException: !Absolute URI: /myserviceuri with the following stack trace:


at org.eclipse.jetty.client.HttpExchange.setURI(HttpExchange.java:608)[83:org.eclipse.jetty.client:7.6.7.v20120910] at org.eclipse.jetty.client.HttpExchange.setURL(HttpExchange.java:431)[83:org.eclipse.jetty.client:7.6.7.v20120910] at org.apache.camel.component.jetty.JettyHttpProducer.createHttpExchange(JettyHttpProducer.java:116)[239:org.apache.camel.camel-jetty:2.10.0.fuse-71-047] at org.apache.camel.component.jetty.JettyHttpProducer.process(JettyHttpProducer.java:93)[239:org.apache.camel.camel-jetty:2.10.0.fuse-71-047] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99)[147:org.apache.camel.camel-core:2.10.0.fuse-71-047] at org.apache.camel.component.jetty.JettyHttpProducer.process(JettyHttpProducer.java:88)[239:org.apache.camel.camel-jetty:2.10.0.fuse-71-047] at org.fusesource.fabric.camel.FabricLocatorEndpoint$3.process(FabricLocatorEndpoint.java:111)[282:org.fusesource.fabric.fabric-camel:7.1.0.fuse-047] at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)[147:org.apache.camel.camel-core:2.10.0.fuse-71-047] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[147:org.apache.camel.camel-core:2.10.0.fuse-71-047] at org.apache.camel.processor.loadbalancer.QueueLoadBalancer.process(QueueLoadBalancer.java:44)[147:org.apache.camel.camel-core:2.10.0.fuse-71-047]

Environment

  • Fuse ESB Enterprise 7.1.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content