My Oracle Support Banner

CXF Fails To Parse JSON Payload (Doc ID 2003987.1)

Last updated on MARCH 14, 2018

Applies to:

Oracle WebLogic Server - Version 12.1.2.0.0 and later
Information in this document applies to any platform.

Symptoms

PROBLEM DESCRIPTION
--------------------------------------

In weblogic 12.1.2, an application uses CXF and Jackson frameworks to implement a RESTful service. This service is working just fine under 11g but fails with the error below when running under 12c.

####<Apr 7, 2015 10:05:12 AM EDT> <Notice> <Stdout> <CLTTSTCPO01> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1428415512117> <BEA-000000> <2015-04-07 10:05:12,117  WARN/[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'/o.a.c.j.u.JAXRSUtils:1255 - No message body reader has been found for request class SourceCaptureMessage, ContentType : application/json.> 
####<Apr 7, 2015 10:05:12 AM EDT> <Notice> <Stdout> <CLTTSTCPO01> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1428415512195> <BEA-000000> <2015-04-07 10:05:12,195  WARN/[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'/o.a.c.j.i.WebApplicationExceptionMapper:73 - javax.ws.rs.WebApplicationException
at org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBody(JAXRSUtils.java:1256)
at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameter(JAXRSUtils.java:787)
at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameters(JAXRSUtils.java:747)
at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:240)
at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:100)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)

WHAT IS WORKING
-------------------------------

The same restful webservice works fine in weblogic 10.3.6

ENVIRONMENT
-------------------------
Weblogic 12.1.2
OS: Microsoft Windows x64 (64-bit)
Restful Webservice

STEPS
----------
1. Create a Restful webservice that uses this class: "org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider"
2. Deploy it to weblogic 12.1.2
3. Call the webservice in weblogic. The following error is generated:

#### <> <> <> at org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBody(JAXRSUtils.java:1256)
at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameter(JAXRSUtils.java:787)
at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameters(JAXRSUtils.java:747)
at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:240)
at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:100)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)



Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.