1 Reply Latest reply on Jun 24, 2014 4:48 AM by Allan Cheong

    Illegal State Exception while calling REST service using Jboss Fuse

    Shock Wave Newbie

      I am getting following error, while trying to invoke REST service through cxfrs endpoint.

      org.apache.camel.processor.Pipeline | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60024 | Message exchange has failed: so breaking out of pipeline for exchange: Exchange[Message: [Body is null]] Exception: org.apache.cxf.jaxrs.client.ClientWebApplicationException: org.apache.cxf.jaxrs.client.ClientWebApplicationException: java.lang.IllegalArgumentException: IllegalArgumentException invoking http://someurl:8181/cxf/testService/test.xml?q1=new&q2=qwe: Illegal character(s) in message header value: 

      I am using spring DSL to write camel code. Following is code snippet for CXF-RS configuration:

      <cxf:rsClient id="rsClient" address=" http://someurl:8181/cxf/testService" loggingFeatureEnabled="true"/> 

      And we calling rsClient it through Camel code using following code:

      <to id="outEndpoint" uri="cxfrs://bean://rsClient"/> 

      Can anyone please suggest what could be the reason?