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. ,

    401 means "Unauthorized", so there must be something with your credentials. You need to pass the authentication to let the server know its a valid user. Check whether the authentication details are provided.

Solutions on the web

via Stack Overflow by user7499815
, 1 year ago
Server returned HTTP response code: 400 for URL: http://x.x.x.x/apply.cgi
via Stack Overflow by user2659694
, 1 year ago
Server returned HTTP response code: 400 for URL: https://localhost:9443/wso2/scim/Users/
via Stack Overflow by We are Borg
, 1 year ago
Server returned HTTP response code: 400 for URL: https://graph.facebook.com/oauth/access_token?client_id=ID&redirect_uri=http://localhost:8080/registerfacebook&client_secret=SECRET&code=SOME_CODE
via Stack Overflow by jaswanth
, 10 months ago
Server returned HTTP response code: 401 for URL: http://10.32.2.64/api/rest/recording/contact/upload
via Stack Overflow by Marshall S. Lee
, 1 year ago
Server returned HTTP response code: 401 for URL: http://updates.jenkins-ci.org/download/plugins/pipeline-model-definition/1.1.8/pipeline-model-definition.hpi
java.io.IOException: Server returned HTTP response code: 400 for URL: http://x.x.x.x/apply.cgi at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1926) at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1921) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1920) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1490) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474) at posthttpsample.PostHTTPSample.sendRequestPost(PostHTTPSample.java:58) at posthttpsample.PostHTTPSample.main(PostHTTPSample.java:82)Caused by: java.io.IOException: Server returned HTTP response code: 400 for URL: http://x.x.x.x/apply.cgi at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1876) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) at posthttpsample.PostHTTPSample.sendRequestPost(PostHTTPSample.java:52) ... 1 more