javax.ws.rs.client.ResponseProcessingException: javax.ws.rs.ProcessingException: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "child" (Class org.jboss.resteasy.test.Parent), not marked as ignorable at [Source: org.apache.http.conn.EofSensorInputStream@62df0ff3; line: 1, column: 32] (through reference chain: org.jboss.resteasy.test.Parent["child"])

JBoss Issue Tracker | Katerina Novotna | 9 months ago
  1. 0

    I have jaxb annoted class Parent - and the following resource: {code:java} @GET @Path("/{name}") @Consumes("application/json") @Produces("application/json") public Parent getParent(@PathParam("name") String name) { Parent parent = Parent.createTestParent(name); return parent; } {code} Proxy client is defined as this: {code:java} @Consumes("application/json") @Produces("application/json") public interface JsonJAXBXmlRootElementClient { @GET @Path("/{name}") Parent getParent(@PathParam("name") String name); } {code} The request is send using proxy client: {code:java} jsonClient = ProxyBuilder.builder(JsonJAXBXmlRootElementClient.class, client.target(JAXB_URL)).build(); Parent parent = jsonClient.getParent(JSON_PARENT); {code} The application contains dependencies to both - jackson and jackson2 providers. Then I get the following result: {code:java} javax.ws.rs.client.ResponseProcessingException: javax.ws.rs.ProcessingException: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "child" (Class org.jboss.resteasy.test.Parent), not marked as ignorable at [Source: org.apache.http.conn.EofSensorInputStream@62df0ff3; line: 1, column: 32] (through reference chain: org.jboss.resteasy.test.Parent["child"]) at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.extractResult(ClientInvocation.java:141) at org.jboss.resteasy.client.jaxrs.internal.proxy.extractors.BodyEntityExtractor.extractEntity(BodyEntityExtractor.java:59) at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invoke(ClientInvoker.java:104) at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientProxy.invoke(ClientProxy.java:64) ... {code} The removal of dependencies for jackson1 makes the test pass. Also using "jboss-deployment-descriptor.xml" it is possible to exclude jackson2 provider (leaving jackson1 as active and the test passes as well.) Please see attached reproducer. The testcase is based on upstream tescase org.jboss.resteasy.test.providers.jaxb.TestJAXBXmlRootElementProvider.

    JBoss Issue Tracker | 9 months ago | Katerina Novotna
    javax.ws.rs.client.ResponseProcessingException: javax.ws.rs.ProcessingException: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "child" (Class org.jboss.resteasy.test.Parent), not marked as ignorable at [Source: org.apache.http.conn.EofSensorInputStream@62df0ff3; line: 1, column: 32] (through reference chain: org.jboss.resteasy.test.Parent["child"])
  2. 0

    keycloak error : Unrecognized field "access_token"

    Stack Overflow | 6 months ago | hasane has
    org.jboss.resteasy.spi.UnhandledException: javax.ws.rs.client.ResponseProcessingException: javax.ws.rs.ProcessingException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "access_token" (class org.keycloak.representations.AccessTokenResponse), not marked as ignorable (9 known properties: "notBeforePolicy", "otherClaims", "tokenType", "token", "expiresIn", "sessionState", "refreshExpiresIn", "idToken", "refreshToken"]) at [Source: org.apache.http.conn.EofSensorInputStream@9d6aba2; line: 1, column: 18] (through reference chain: org.keycloak.representations.AccessTokenResponse["access_token"])
  3. 0

    JAXRS client - Deserialization Issue with Pojo

    Stack Overflow | 1 year ago | nishiz
    javax.ws.rs.client.ResponseProcessingException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "user" (class com.example.service.bean.User), not marked as ignorable (4 known properties: "lastName", "firstName", "email", "userID"]) at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@10163d6; line: 1, column: 10] (through reference chain: com.example.service.bean.User["user"])
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    build error in 3.0 systests/jaxrs

    cxf-dev | 2 years ago | Jason Pell
    javax.ws.rs.client.ResponseProcessingException: Problem with reading the data, class org.apache.cxf.systest.jaxrs.Book, ContentType: application/xml.
  6. 0

    Re: build error in 3.0 systests/jaxrs

    cxf-dev | 2 years ago | Jason Pell
    javax.ws.rs.client.ResponseProcessingException: Problem with reading the data, class org.apache.cxf.systest.jaxrs.Book, ContentType: application/xml.

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.ws.rs.client.ResponseProcessingException

      javax.ws.rs.ProcessingException: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "child" (Class org.jboss.resteasy.test.Parent), not marked as ignorable at [Source: org.apache.http.conn.EofSensorInputStream@62df0ff3; line: 1, column: 32] (through reference chain: org.jboss.resteasy.test.Parent["child"])

      at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.extractResult()
    2. RESTEasy JAX-RS Client
      ClientProxy.invoke
      1. org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.extractResult(ClientInvocation.java:141)
      2. org.jboss.resteasy.client.jaxrs.internal.proxy.extractors.BodyEntityExtractor.extractEntity(BodyEntityExtractor.java:59)
      3. org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invoke(ClientInvoker.java:104)
      4. org.jboss.resteasy.client.jaxrs.internal.proxy.ClientProxy.invoke(ClientProxy.java:64)
      4 frames