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 Stack Overflow by akanor
, 1 year ago
Server returned HTTP response code: 401 for URL: http://localhost:8080/project/api/upload/file/confirm/1776
via Stack Overflow by rajiv coomar
, 1 year ago
Server returned HTTP response code: 400 for URL:
via Stack Overflow by Ram
, 2 years ago
Server returned HTTP response code: 400 for URL: https://developers.crittercism.com/v1.0/token
via Stack Overflow by Tech Tech
, 1 year ago
Server returned HTTP response code: 400 for URL: https://it-test.ihc.eu/assystREST/v2/sections
via openstreetmap.org by Unknown author, 2 years ago
Server returned HTTP response code: 500 for URL: http://ecn.t0.tiles.virtualearth.net/tiles/a12033121221233.jpeg?g=1476
via Stack Overflow by bhanu priya
, 2 years ago
Server returned HTTP response code: 400 for URL: https://android.googleapis.com/gcm/send
java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost:8080/project/api/upload/file/confirm/1776	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1627)	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)	at com.project.ProtocolAction.set(ProtocolAction.java:407)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270)	at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)	at com.project.DispatchNoRemoveAction.execute(DispatchNoRemoveAction.java:57)	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at com.project.infra.SessionFilter.doFilter(SessionFilter.java:71)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at com.foo.security.cas.filter.FooHttpServletRequestWrapperFilter.doFilter(FooHttpServletRequestWrapperFilter.java:94)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at com.foo.security.cas.filter.FooAuthenticationFilter.doFilter(FooAuthenticationFilter.java:190)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at com.foo.security.cas.filter.FooWebAuthenticationFilter.doFilter(FooWebAuthenticationFilter.java:121)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:97)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)	at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:420)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)	at java.lang.Thread.run(Thread.java:745)