I am using jersey 1.13 and the logs seem to indicate that my client is
retrying the same POST request twice!
Are the following logs misleading or is there a real problem? Is the
request really being sent twice or there is simply dual-logging in the
jersey source code somewhere?
### CODE ###
WebResource webResource =
client.resource("
https://pulkitsinghal.dnsdynamic.com:9630/api/invoices
/");
ClientResponse response =
webResource.header("User-Agent", "me.super/1.0")
.header("Accept-Encoding", "application/zip")
.method("POST", ClientResponse.class,
"<createResource></createResource>");
### LOGS ###
INFO: 1 * Client out-bound request
1 > POST
https://me.super.com:8080/api/invoices/
1 > User-Agent: me.super/1.0
1 > Accept-Encoding: application/zip
<createResource></createResource>
Aug 13, 2012 7:20:22 PM com.sun.jersey.api.client.filter.LoggingFilter
log
INFO: 1 * Client out-bound request
1 > POST
https://me.super.com:8080/api/invoices/
1 > User-Agent: me.super/1.0
1 > Accept-Encoding: application/zip
<createResource></createResource>
<createResource></createResource>
Aug 13, 2012 7:20:22 PM com.sun.jersey.api.client.filter.LoggingFilter
log
INFO: 1 * Client in-bound response
1 < 400
1 < Content-Length: 22
1 < Content-Type: text/plain
1 <
Malformed Request-Line
When I tried the same POST request via JMeter rest client with a post
body of <createResource></createResource>, it worked out just fine ...
so, what would be some things that I should try out to narrow down or
identify the source of the problem better?