Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    Check if you didn't set RequestProperty Content-Type to the wrong type or if you're trying to send the wrong file to the server.

Solutions on the web

via Oracle Community by 807554, 1 year ago
Server returned HTTP response code: 502 for URL: ftp://user:password@machine.company.com/readme.txt
via Oracle Community by 807596, 1 year ago
Server returned HTTP response code: 502 for URL: http://www.cnn.com/
via Oracle Community by 632404, 1 year ago
Server returned HTTP response code: 502 for URL: http://AABG-es:8888/orabpel/default/VacationRequest/1.0/VacationApproval/VacationApproval.task
via Oracle Community by 429397, 1 year ago
Server returned HTTP response code: 500 for URL: http://.........
via Oracle Community by 843841, 1 year ago
Server returned HTTP response code: 501 for URL: http://xxxxxx.xxxxxxxxx.xxxxxxxx
via Stack Overflow by abhig
, 2 years ago
Server returned HTTP response code: 401 for URL: http://internalsite
java.io.IOException: Server returned HTTP response code: 502 for URL: ftp://user:password@machine.company.com/readme.txt	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:562)