cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-6902) Problem with resource that returns Object with CXF version == 3.1.2
Date Wed, 18 May 2016 09:31:12 GMT

    [ https://issues.apache.org/jira/browse/CXF-6902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15288677#comment-15288677
] 

Sergey Beryozkin commented on CXF-6902:
---------------------------------------

Hi, but JSONProvider can not handle Integer/etc, do you do some extra configuration of JSONProvider
to make it happen ? Please debug your CXF 2.7 application: download CXF 2.7 source, put a
breakpoint in JAXRSOutInterceptor, see which MessageBodyWriter gets selected
Cheers, Sergey

> Problem with resource that returns Object with CXF version == 3.1.2
> -------------------------------------------------------------------
>
>                 Key: CXF-6902
>                 URL: https://issues.apache.org/jira/browse/CXF-6902
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 3.1.2
>            Reporter: Balarami Reddy
>
> Hello,
> We have recently migrated from 2.7 to 3.1.2 and we see a behaviour change in CXF which
blocked us from making progress.
> The sample code below gives "No message body writer has been found for response class
Integer" which used to work perfect in CXF 2.7
> This is just sample code only. We have in our product several rest calls which return
integer/long/Object etc based on some calculations.
> 	@GET
> 	@Produces(MediaType.APPLICATION_JSON)
> 	@Path("/getinteger")
> 	public Response getInteger() {
> 		return Response.ok(4).build();
> 	}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message