java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost:8080/project/api/upload/file/confirm/1776

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

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
, 1 year 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 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 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.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at com.project.infra.SessionFilter.doFilter(SessionFilter.java:71)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at com.foo.security.cas.filter.FooHttpServletRequestWrapperFilter.doFilter(FooHttpServletRequestWrapperFilter.java:94)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at com.foo.security.cas.filter.FooAuthenticationFilter.doFilter(FooAuthenticationFilter.java:190)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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.internalDoFilter(ApplicationFilterChain.java:235)
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.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:420)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Once, 1 year ago
2 times, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.