eclipse-ee4j / jersey

Eclipse Jersey Project - Read our Wiki:
https://github.com/eclipse-ee4j/jersey/wiki
Other
691 stars 352 forks source link

Jersey client seems to create dupliate requests #3464

Open jerseyrobot opened 7 years ago

jerseyrobot commented 7 years ago

Hi, we're using Jersey v1.12 in a PROD environnement for Banking purpose.

Since we're are getting duplicates requests received on the server side and nothing indicates that the client send two but I'd like to see with you guys if you now anything that could be related to the Jersey api and the way we implemented it.

public CertaPayResponse postApplicationXmlAsCertaPayResponse(CertaPayRequest input) { UriBuilder localUriBuilder = _uriBuilder.clone(); WebResource resource = _client.resource(localUriBuilder.buildFromMap(_templateAndMatrixParameterValues)); WebResource.Builder resourceBuilder = resource.getRequestBuilder(); resourceBuilder = resourceBuilder.type("application/xml"); resourceBuilder = resourceBuilder.accept("application/xml"); return resourceBuilder.method("POST", CertaPayResponse.class, input);

Thanks for your help. Pat

Environment

PROD

Affected Versions

[1.12]

jerseyrobot commented 6 years ago
jerseyrobot commented 7 years ago

@glassfishrobot Commented Reported by pvsurnt

jerseyrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA JERSEY-3192

jerseyrobot commented 6 years ago

@thomasmanuel Commented I am facing this too. Is there any solution/workaround? I use v 1.19; So, has this been resolved/reported in the newer versions?

wnickl commented 5 years ago

Hi! I am currently having a similar problem. I am processing in an unit test 1000 calls for same ressource and each time a GET or POST request is send twice I am getting an 401 unauthorized. In wireshark I see that the same request is processed twice with same http headers. Any solution / workaround available? (I am using 2.22)