javax.ws.rs.client.ResponseProcessingException: com.fasterxml.jackson.databind.JsonMappingException: Can not find a deserializer for non-concrete Map type [map type; class javax.ws.rs.core.MultivaluedMap, [simple type, class java.lang.String] -> [collection type; class java.util.List, contains [simple type, class java.lang.Object]]]

Stack Overflow | Elad Benda2 | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    how come `.readEntity(MyObj.class)` fails while `objectMapper.readValue(str, MyObj.class);` works

    Stack Overflow | 6 months ago | Elad Benda2
    javax.ws.rs.client.ResponseProcessingException: com.fasterxml.jackson.databind.JsonMappingException: Can not find a deserializer for non-concrete Map type [map type; class javax.ws.rs.core.MultivaluedMap, [simple type, class java.lang.String] -> [collection type; class java.util.List, contains [simple type, class java.lang.Object]]]
  2. 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"])

    Root Cause Analysis

    1. javax.ws.rs.client.ResponseProcessingException

      com.fasterxml.jackson.databind.JsonMappingException: Can not find a deserializer for non-concrete Map type [map type; class javax.ws.rs.core.MultivaluedMap, [simple type, class java.lang.String] -> [collection type; class java.util.List, contains [simple type, class java.lang.Object]]]

      at org.glassfish.jersey.client.JerseyInvocation.translate()
    2. jersey-core-client
      JerseyInvocation$2.call
      1. org.glassfish.jersey.client.JerseyInvocation.translate(JerseyInvocation.java:806)
      2. org.glassfish.jersey.client.JerseyInvocation.access$700(JerseyInvocation.java:92)
      3. org.glassfish.jersey.client.JerseyInvocation$2.call(JerseyInvocation.java:700)
      3 frames
    3. Jersey Core
      RequestScope.runInScope
      1. org.glassfish.jersey.internal.Errors.process(Errors.java:315)
      2. org.glassfish.jersey.internal.Errors.process(Errors.java:297)
      3. org.glassfish.jersey.internal.Errors.process(Errors.java:228)
      4. org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:444)
      4 frames
    4. jersey-core-client
      JerseyInvocation$Builder.get
      1. org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:696)
      2. org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:420)
      3. org.glassfish.jersey.client.JerseyInvocation$Builder.get(JerseyInvocation.java:316)
      3 frames