-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
-
- Create a MessageWriter which removes the content type header
- Perform a POST request using the client and the MessageWriter
- Boom!
While implementing the integration between cloudevents new sdk and jax-rs (code here https://github.com/slinkydeveloper/sdk-java/blob/jaxrs/http/restful-ws/src/main/java/io/cloudevents/http/restful/ws/CloudEventsProvider.java) I've found out that, If i send a request with an `Entity`, the entity is processed by a `MessageBodyWriter` that eventually removes the `Content-Type`, an NPE happens:
Caused by: java.lang.NullPointerException at org.jboss.resteasy.client.jaxrs.engines.ManualClosingApacheHttpClient43Engine.buildEntity(ManualClosingApacheHttpClient43Engine.java:553) at org.jboss.resteasy.client.jaxrs.engines.ManualClosingApacheHttpClient43Engine.loadHttpMethod(ManualClosingApacheHttpClient43Engine.java:454)
cc FroMage
- is cloned by
-
RESTEASY-2622 NPE while sending empty POST requests with Client
- Resolved