java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/cas/p3/serviceValidate?ticket=ST-3-ep4Ak0wdzJ5uGdtgbPvl-10&service=http%3A%2F%2Flocalhost%3A8080%2Fcas%2Foauth2.0%2FcallbackAuthorize%3Fclient_name%3DCasOAuthClient%26client_id%3Dcom.inspur.ecm.client.co%26redirect_uri%3Dhttp%3A%2F%2Flocalhost

GitHub | yisiqi | 5 months ago
  1. 0

    The 'callbackAuthorize' service of OAuth module can NOT pass the validation of ServiceTicket

    GitHub | 5 months ago | yisiqi
    java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/cas/p3/serviceValidate?ticket=ST-3-ep4Ak0wdzJ5uGdtgbPvl-10&service=http%3A%2F%2Flocalhost%3A8080%2Fcas%2Foauth2.0%2FcallbackAuthorize%3Fclient_name%3DCasOAuthClient%26client_id%3Dcom.inspur.ecm.client.co%26redirect_uri%3Dhttp%3A%2F%2Flocalhost
  2. 0

    [cas-user] http error 407 issue

    Google Groups | 3 years ago | MrCrowley
    java.io.IOException: Server returned HTTP response code: 407 for                                   URL: http://theserver:9080/CAS/serviceValidate?service=http%3A%2F%2Ftheserver%3A9080%2FmyApplication%2Fj_spring_cas_security_check&ticket=ST-2-LY6mdKFA4RODJUo0WLH2-cas&
  3. 0

    GitHub comment 115#245542079

    GitHub | 3 months ago | LeOSW42
    org.gitlab.api.GitlabAPIException: {"message":"401 Unauthorized"}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Getting an Internal Server Error when servlets communicate

    Stack Overflow | 11 months ago | Mehdi
    java.io.IOException: Server returned HTTP response code: 500 for URL: http://dbap.elasticbeanstalk.com/Bdconnection
  6. 0

    server returned HTTP response code 503

    Stack Overflow | 10 months ago | Lightwaxx
    java.io.IOException: Server returned HTTP response code: 503 for URL: http:// services.gradle. org/distributions/gradle-2.2.1-all.zip
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: 500 for URL: http://localhost:8080/cas/p3/serviceValidate?ticket=ST-3-ep4Ak0wdzJ5uGdtgbPvl-10&service=http%3A%2F%2Flocalhost%3A8080%2Fcas%2Foauth2.0%2FcallbackAuthorize%3Fclient_name%3DCasOAuthClient%26client_id%3Dcom.inspur.ecm.client.co%26redirect_uri%3Dhttp%3A%2F%2Flocalhost

    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0()
  2. Java RT
    HttpURLConnection.getInputStream
    1. sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840)[?:1.8.0_92]
    2. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)[?:1.8.0_92]
    2 frames
  3. Jasig CAS Client for Java - Core
    AbstractUrlBasedTicketValidator.validate
    1. org.jasig.cas.client.util.CommonUtils.getResponseFromServer(CommonUtils.java:431)[cas-client-core-3.4.1.jar:3.4.1]
    2. org.jasig.cas.client.validation.AbstractCasProtocolUrlBasedTicketValidator.retrieveResponseFromServer(AbstractCasProtocolUrlBasedTicketValidator.java:41)[cas-client-core-3.4.1.jar:3.4.1]
    3. org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.validate(AbstractUrlBasedTicketValidator.java:193)[cas-client-core-3.4.1.jar:3.4.1]
    3 frames
  4. org.pac4j.cas
    CasClient.retrieveUserProfile
    1. org.pac4j.cas.client.CasClient.retrieveUserProfile(CasClient.java:321)[pac4j-cas-1.8.8.jar:?]
    2. org.pac4j.cas.client.CasClient.retrieveUserProfile(CasClient.java:83)[pac4j-cas-1.8.8.jar:?]
    2 frames
  5. pac4j core
    BaseClient.getUserProfile
    1. org.pac4j.core.client.BaseClient.getUserProfile(BaseClient.java:99)[pac4j-core-1.8.8.jar:?]
    2. org.pac4j.core.client.BaseClient.getUserProfile(BaseClient.java:48)[pac4j-core-1.8.8.jar:?]
    2 frames
  6. org.pac4j.springframework
    CallbackController.callback
    1. org.pac4j.springframework.web.CallbackController.callback(CallbackController.java:81)[spring-webmvc-pac4j-1.0.2.jar:?]
    1 frame
  7. org.apereo.cas
    OAuth20CallbackAuthorizeController.handleRequestInternal
    1. org.apereo.cas.support.oauth.web.OAuth20CallbackAuthorizeController.handleRequestInternal(OAuth20CallbackAuthorizeController.java:41)[cas-server-support-oauth-5.0.0.M3-20160717.075625-37.jar:5.0.0.M3-SNAPSHOT]
    1 frame
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_92]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[?:1.8.0_92]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_92]
    4. java.lang.reflect.Method.invoke(Method.java:498)[?:1.8.0_92]
    4 frames
  9. Spring
    InvocableHandlerMethod.invokeForRequest
    1. org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)[spring-web-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    2. org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)[spring-web-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    2 frames
  10. Spring MVC
    FrameworkServlet.doGet
    1. org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:114)[spring-webmvc-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    2. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)[spring-webmvc-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    3. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)[spring-webmvc-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    4. org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)[spring-webmvc-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    5. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)[spring-webmvc-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    6. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)[spring-webmvc-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    7. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)[spring-webmvc-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    8. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)[spring-webmvc-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    8 frames
  11. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:622)[servlet-api.jar:?]
    1 frame
  12. Spring MVC
    FrameworkServlet.service
    1. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)[spring-webmvc-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    1 frame
  13. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)[servlet-api.jar:?]
    1 frame
  14. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)[catalina.jar:8.5.3]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[catalina.jar:8.5.3]
    2 frames
  15. Tomcat WS
    WsFilter.doFilter
    1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)[tomcat-websocket.jar:8.5.3]
    1 frame
  16. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[catalina.jar:8.5.3]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[catalina.jar:8.5.3]
    2 frames
  17. Spring Boot Actuator
    EndpointWebMvcAutoConfiguration$ApplicationContextHeaderFilter.doFilterInternal
    1. org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration$ApplicationContextHeaderFilter.doFilterInternal(EndpointWebMvcAutoConfiguration.java:281)[spring-boot-actuator-1.3.6.RELEASE.jar:1.3.6.RELEASE]
    1 frame
  18. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    1 frame
  19. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[catalina.jar:8.5.3]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[catalina.jar:8.5.3]
    2 frames
  20. org.apereo.cas
    RequestParameterPolicyEnforcementFilter.doFilter
    1. org.apereo.cas.security.RequestParameterPolicyEnforcementFilter.doFilter(RequestParameterPolicyEnforcementFilter.java:261)[cas-server-security-filter-2.0.6.jar:2.0.6]
    1 frame
  21. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[catalina.jar:8.5.3]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[catalina.jar:8.5.3]
    2 frames
  22. org.apereo.cas
    ResponseHeadersEnforcementFilter.doFilter
    1. org.apereo.cas.security.ResponseHeadersEnforcementFilter.doFilter(ResponseHeadersEnforcementFilter.java:238)[cas-server-security-filter-2.0.6.jar:2.0.6]
    1 frame
  23. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[catalina.jar:8.5.3]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[catalina.jar:8.5.3]
    2 frames
  24. org.apereo.inspektr
    ClientInfoThreadLocalFilter.doFilter
    1. org.apereo.inspektr.common.web.ClientInfoThreadLocalFilter.doFilter(ClientInfoThreadLocalFilter.java:62)[inspektr-common-1.5.GA.jar:1.5.GA]
    1 frame
  25. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[catalina.jar:8.5.3]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[catalina.jar:8.5.3]
    2 frames
  26. Spring Boot Actuator
    WebRequestTraceFilter.doFilterInternal
    1. org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:115)[spring-boot-actuator-1.3.6.RELEASE.jar:1.3.6.RELEASE]
    1 frame
  27. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    1 frame
  28. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[catalina.jar:8.5.3]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[catalina.jar:8.5.3]
    2 frames
  29. org.apereo.cas
    ThreadContextMDCServletFilter.doFilter
    1. org.apereo.cas.logging.web.ThreadContextMDCServletFilter.doFilter(ThreadContextMDCServletFilter.java:90)[cas-server-core-logging-5.0.0.M3-SNAPSHOT.jar:5.0.0.M3-SNAPSHOT]
    1 frame
  30. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[catalina.jar:8.5.3]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[catalina.jar:8.5.3]
    2 frames
  31. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)[spring-web-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    2 frames
  32. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[catalina.jar:8.5.3]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[catalina.jar:8.5.3]
    2 frames
  33. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:87)[spring-web-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    2 frames
  34. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[catalina.jar:8.5.3]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[catalina.jar:8.5.3]
    2 frames
  35. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)[spring-web-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    2 frames
  36. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[catalina.jar:8.5.3]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[catalina.jar:8.5.3]
    2 frames
  37. Spring Boot Actuator
    MetricsFilter.doFilterInternal
    1. org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:103)[spring-boot-actuator-1.3.6.RELEASE.jar:1.3.6.RELEASE]
    1 frame
  38. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    1 frame
  39. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[catalina.jar:8.5.3]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[catalina.jar:8.5.3]
    2 frames
  40. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)[spring-web-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    2 frames
  41. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[catalina.jar:8.5.3]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[catalina.jar:8.5.3]
    2 frames
  42. Spring Boot
    ErrorPageFilter$1.doFilterInternal
    1. org.springframework.boot.context.web.ErrorPageFilter.doFilter(ErrorPageFilter.java:120)[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
    2. org.springframework.boot.context.web.ErrorPageFilter.access$000(ErrorPageFilter.java:61)[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
    3. org.springframework.boot.context.web.ErrorPageFilter$1.doFilterInternal(ErrorPageFilter.java:95)[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
    3 frames
  43. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.1.RELEASE.jar:4.3.1.RELEASE]
    1 frame
  44. Spring Boot
    ErrorPageFilter.doFilter
    1. org.springframework.boot.context.web.ErrorPageFilter.doFilter(ErrorPageFilter.java:113)[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
    1 frame
  45. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[catalina.jar:8.5.3]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[catalina.jar:8.5.3]
    2 frames
  46. org.apache.logging
    Log4jServletFilter.doFilter
    1. org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)[log4j-web-2.6.1.jar:2.6.1]
    1 frame
  47. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[catalina.jar:8.5.3]
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[catalina.jar:8.5.3]
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)[catalina.jar:8.5.3]
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)[catalina.jar:8.5.3]
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:522)[catalina.jar:8.5.3]
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)[catalina.jar:8.5.3]
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)[catalina.jar:8.5.3]
    8. org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)[catalina.jar:8.5.3]
    9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)[catalina.jar:8.5.3]
    10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)[catalina.jar:8.5.3]
    10 frames
  48. Grizzly HTTP
    SocketProcessorBase.run
    1. org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:1110)[tomcat-coyote.jar:8.5.3]
    2. org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)[tomcat-coyote.jar:8.5.3]
    3. org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:785)[tomcat-coyote.jar:8.5.3]
    4. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1425)[tomcat-coyote.jar:8.5.3]
    5. org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)[tomcat-coyote.jar:8.5.3]
    5 frames
  49. Java RT
    ThreadPoolExecutor$Worker.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_92]
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_92]
    2 frames
  50. Tomcat Util
    TaskThread$WrappingRunnable.run
    1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)[tomcat-util.jar:8.5.3]
    1 frame
  51. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)[?:1.8.0_92]
    1 frame