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

Stack Overflow | akanor | 2 months ago
  1. 0

    What is wrong with this http request ? code 401

    Stack Overflow | 2 months ago | akanor
    java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost:8080/project/api/upload/file/confirm/1776
  2. 0

    POSTing json using java

    Stack Overflow | 11 months ago | Shek
    java.io.IOException: Server returned HTTP response code: 400 for URL: http://127.0.0.1:2525/imposters
  3. 0

    Server returning 502

    GitHub | 1 year ago | danielkoo
    java.lang.reflect.InvocationTargetException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error while clicking submit button on login page

    Oracle Community | 12 months ago | 3002728
    java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:7001/cs/ContentServer?pagename=fatwire/wem/sso/ssoLogin
  6. 0

    POST request Server returned HTTP response code: 500 /JAVA

    Stack Overflow | 4 days ago | Nick Ko
    java.io.IOException: Server returned HTTP response code: 500 for URL: http://methmy-qa2-r2.northeurope.cloudapp.azure.com/harmony/api/service/referenceData/LSWL.MainCoverage.PaymentTerm

  1. vega113 1 times, last 6 months ago
15 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. Java RT
    HttpURLConnection.getResponseCode
    1. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1627)
    2. java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
    2 frames
  3. com.project
    ProtocolAction.set
    1. com.project.ProtocolAction.set(ProtocolAction.java:407)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  5. struts
    DispatchAction.execute
    1. org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270)
    2. org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)
    2 frames
  6. com.project
    DispatchNoRemoveAction.execute
    1. com.project.DispatchNoRemoveAction.execute(DispatchNoRemoveAction.java:57)
    1 frame
  7. struts
    ActionServlet.doPost
    1. org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
    2. org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
    3. org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
    4. org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    4 frames
  8. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    2 frames
  9. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  10. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    2 frames
  11. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  12. com.project.infra
    SessionFilter.doFilter
    1. com.project.infra.SessionFilter.doFilter(SessionFilter.java:71)
    1 frame
  13. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  14. com.foo.security
    FooHttpServletRequestWrapperFilter.doFilter
    1. com.foo.security.cas.filter.FooHttpServletRequestWrapperFilter.doFilter(FooHttpServletRequestWrapperFilter.java:94)
    1 frame
  15. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  16. com.foo.security
    FooAuthenticationFilter.doFilter
    1. com.foo.security.cas.filter.FooAuthenticationFilter.doFilter(FooAuthenticationFilter.java:190)
    1 frame
  17. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  18. com.foo.security
    FooWebAuthenticationFilter.doFilter
    1. com.foo.security.cas.filter.FooWebAuthenticationFilter.doFilter(FooWebAuthenticationFilter.java:121)
    1 frame
  19. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  20. Jasig CAS Client for Java - Core
    SingleSignOutFilter.doFilter
    1. org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:97)
    1 frame
  21. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  22. JBoss Application Server Tomcat
    ReplyHeaderFilter.doFilter
    1. org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    1 frame
  23. Glassfish Core
    StandardContextValve.invoke
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    4 frames
  24. JBoss Application Server Tomcat
    SecurityAssociationValve.invoke
    1. org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
    1 frame
  25. Glassfish Core
    AuthenticatorBase.invoke
    1. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
    1 frame
  26. JBoss Application Server Tomcat
    JaccContextValve.invoke
    1. org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    1 frame
  27. Glassfish Core
    ErrorReportValve.invoke
    1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    2. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    2 frames
  28. JBoss Application Server Tomcat
    CachedConnectionValve.invoke
    1. org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    1 frame
  29. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:420)
    2. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    3. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
    3 frames
  30. Grizzly HTTP
    JIoEndpoint$Worker.run
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    3 frames
  31. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame