Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1057

NPE when posting javax.ws.rs.client.Entity.json(null)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.12.Final
    • 3.0.8.Final
    • jaxrs
    • None

      Attempting to post an empty entity by using: Entity.json(null) which works on glassfish but using RestEasy client causes NPE:

      Caused by: java.lang.NullPointerException
      at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.setEntityObject(ClientInvocation.java:327) [resteasy-client-3.0.8.Final.jar:]
      at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.setEntity(ClientInvocation.java:305) [resteasy-client-3.0.8.Final.jar:]
      at org.jboss.resteasy.client.jaxrs.internal.ClientInvocationBuilder.build(ClientInvocationBuilder.java:122) [resteasy-client-3.0.8.Final.jar:]
      at org.jboss.resteasy.client.jaxrs.internal.ClientInvocationBuilder.buildPost(ClientInvocationBuilder.java:141) [resteasy-client-3.0.8.Final.jar:]
      at org.jboss.resteasy.client.jaxrs.internal.ClientInvocationBuilder.post(ClientInvocationBuilder.java:201) [resteasy-client-3.0.8.Final.jar:]

              rsigal@redhat.com Ronald Sigal
              jp_2012 Jeff Picklyk (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: