Error with camel cxf-rs interceptor in fuse 6.2 with message- Payload: No message body writer has been found for class xxx.yyy.zz.Response

Solution Unverified - Updated -

Issue

  • I'm porting my software solution from fuse 6.1.1 to fuse 6.2.0 (I'm using version jboss-fuse-pre-patched-6.2.0.redhat-143-p1, patched with jboss-fuse-6.2.0.redhat-153-hf4) and I have some trouble with interceptor used in my camel rest service (the service is exposed with cxf rs-server).
  • In the 6.1.1 version, I use the following blueprint configuration to use rest interceptor
<cxfi:bus>
    <cxfi:features>
        <cxfi:logging/>
    </cxfi:features>
    <cxfi:inInterceptors>
        <ref component-id="interceptor"/>
    </cxfi:inInterceptors>
</cxfi:bus>
  • If I try to use the same code in the 6.2.2 version, I'm not more able to use the rest service; I have even problems to see the wadl xml descriptor from the cxf web console page.
  • Logs
ID: 1
Address: http://127.0.0.1:8181/cxf/ruleengine/rs/sdk?_wadl
Http-Method: GET
Content-Type: 
Headers: {Accept=[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8], accept-encoding=[gzip, deflate], Accept-Language=[it-IT,it;q=0.8,en-US;q=0.5,en;q=0.3], connection=[keep-alive], Content-Type=[null], Cookie=[__utma=96992031.1743759903.1398172521.1401180846.1401283201.29], Host=[127.0.0.1:8181], Referer=[http://127.0.0.1:8181/cxf], User-Agent=[Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0]}
--------------------------------------
2015-10-01 12:21:57,967 | ERROR | tp1403213236-267 | JAXRSUtils                       | 128 - org.apache.cxf.cxf-rt-frontend-jaxrs - 3.0.4.redhat-620133 | No message body writer has been found for class xxx.yyy.zzz.Response, ContentType: text/html,application/xhtml+xml,application/xml;q=0.8
2015-10-01 12:21:57,969 | INFO  | tp1403213236-267 | LoggingOutInterceptor            | 118 - org.apache.cxf.cxf-core - 3.0.4.redhat-620133 | Outbound Message
---------------------------
ID: 1
Response-Code: 500
Content-Type: text/plain
Headers: {Content-Type=[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8], Date=[Thu, 01 Oct 2015 10:21:57 GMT]}
Payload: No message body writer has been found for class xxx.yyy.zzz.Response, ContentType: text/html,application/xhtml+xml,application/xml;q=0.8
--------------------------------------

Environment

  • Red Hat JBoss Fuse
    • 6.2.0

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