Closed glassfishrobot closed 10 years ago
Reported by padbhat
@mpotociar said: Please use the SUPPRESS_HTTP_COMPLIANCE_VALIDATION client configuration property to suppress the exception on the client side.
This issue was imported from java.net JIRA JERSEY-2288
Marked as works as designed on Wednesday, January 15th 2014, 3:08:24 am
Consider a REST service as below:
The Employee Bean is as below:
On testing the PUT operation in some tool (like Google Chrome extension POSTMAN), it is successful. However, on invoking the PUT operation in a Jersey Java client, exception is seen: java.lang.IllegalStateException: Entity must not be null for http method PUT.
If Entity is mandatory for PUT operations, service deployment must fail in the absence of Entity.
Environment
Windows 7
Affected Versions
[2.4.1]