java.lang.IllegalArgumentException: An invalid character [32] was present in the Cookie value

Stack Overflow | yglodt | 4 months ago
  1. 0

    Error with cookie-value when adding a new Spring Session

    Stack Overflow | 4 months ago | yglodt
    java.lang.IllegalArgumentException: An invalid character [32] was present in the Cookie value
  2. 0

    Invalid character [44] search error in Opengrok

    GitHub | 3 months ago | ranjantomtom
    java.lang.IllegalArgumentException: An invalid character [44] was present in the Cookie value
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Cookieに使用してはいけない文字が含まれている

    GitHub | 1 year ago | carme-264pp
    java.lang.IllegalArgumentException: An invalid character [44] was present in the Cookie value
  5. 0

    When upgrading Tomcat: Content export does not work

    GitHub | 1 month ago | Xander-Steinmann
    java.lang.IllegalArgumentException: An invalid character [44] was present in the Cookie value

    1 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.lang.IllegalArgumentException

      An invalid character [32] was present in the Cookie value

      at org.apache.tomcat.util.http.Rfc6265CookieProcessor.validateCookieValue()
    2. Grizzly HTTP
      Rfc6265CookieProcessor.generateHeader
      1. org.apache.tomcat.util.http.Rfc6265CookieProcessor.validateCookieValue(Rfc6265CookieProcessor.java:160)[tomcat-embed-core-8.5.4.jar:8.5.4]
      2. org.apache.tomcat.util.http.Rfc6265CookieProcessor.generateHeader(Rfc6265CookieProcessor.java:109)[tomcat-embed-core-8.5.4.jar:8.5.4]
      2 frames
    3. Glassfish Core
      ResponseFacade.addCookie
      1. org.apache.catalina.connector.Response.generateCookieString(Response.java:989)[tomcat-embed-core-8.5.4.jar:8.5.4]
      2. org.apache.catalina.connector.Response.addCookie(Response.java:937)[tomcat-embed-core-8.5.4.jar:8.5.4]
      3. org.apache.catalina.connector.ResponseFacade.addCookie(ResponseFacade.java:386)[tomcat-embed-core-8.5.4.jar:8.5.4]
      3 frames
    4. org.springframework.session
      OnCommittedResponseWrapper.sendRedirect
      1. org.springframework.session.web.http.DefaultCookieSerializer.writeCookieValue(DefaultCookieSerializer.java:112)[spring-session-1.2.1.RELEASE.jar:na]
      2. org.springframework.session.web.http.CookieHttpSessionStrategy.onNewSession(CookieHttpSessionStrategy.java:213)[spring-session-1.2.1.RELEASE.jar:na]
      3. org.springframework.session.web.http.SessionRepositoryFilter$SessionRepositoryRequestWrapper.commitSession(SessionRepositoryFilter.java:247)[spring-session-1.2.1.RELEASE.jar:na]
      4. org.springframework.session.web.http.SessionRepositoryFilter$SessionRepositoryRequestWrapper.access$100(SessionRepositoryFilter.java:214)[spring-session-1.2.1.RELEASE.jar:na]
      5. org.springframework.session.web.http.SessionRepositoryFilter$SessionRepositoryResponseWrapper.onResponseCommitted(SessionRepositoryFilter.java:202)[spring-session-1.2.1.RELEASE.jar:na]
      6. org.springframework.session.web.http.OnCommittedResponseWrapper.doOnResponseCommitted(OnCommittedResponseWrapper.java:226)[spring-session-1.2.1.RELEASE.jar:na]
      7. org.springframework.session.web.http.OnCommittedResponseWrapper.sendRedirect(OnCommittedResponseWrapper.java:126)[spring-session-1.2.1.RELEASE.jar:na]
      7 frames
    5. JavaServlet
      HttpServletResponseWrapper.sendRedirect
      1. javax.servlet.http.HttpServletResponseWrapper.sendRedirect(HttpServletResponseWrapper.java:138)[tomcat-embed-core-8.5.4.jar:8.5.4]
      2. javax.servlet.http.HttpServletResponseWrapper.sendRedirect(HttpServletResponseWrapper.java:138)[tomcat-embed-core-8.5.4.jar:8.5.4]
      2 frames
    6. Spring Security
      FirewalledResponse.sendRedirect
      1. org.springframework.security.web.firewall.FirewalledResponse.sendRedirect(FirewalledResponse.java:41)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      1 frame
    7. JavaServlet
      HttpServletResponseWrapper.sendRedirect
      1. javax.servlet.http.HttpServletResponseWrapper.sendRedirect(HttpServletResponseWrapper.java:138)[tomcat-embed-core-8.5.4.jar:8.5.4]
      1 frame
    8. Spring Security
      OnCommittedResponseWrapper.sendRedirect
      1. org.springframework.security.web.util.OnCommittedResponseWrapper.sendRedirect(OnCommittedResponseWrapper.java:128)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      1 frame
    9. JavaServlet
      HttpServletResponseWrapper.sendRedirect
      1. javax.servlet.http.HttpServletResponseWrapper.sendRedirect(HttpServletResponseWrapper.java:138)[tomcat-embed-core-8.5.4.jar:8.5.4]
      1 frame
    10. Spring Security
      FilterChainProxy$VirtualFilterChain.doFilter
      1. org.springframework.security.web.util.OnCommittedResponseWrapper.sendRedirect(OnCommittedResponseWrapper.java:128)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      2. org.springframework.security.web.DefaultRedirectStrategy.sendRedirect(DefaultRedirectStrategy.java:57)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      3. org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint.commence(LoginUrlAuthenticationEntryPoint.java:169)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      4. org.springframework.security.web.access.ExceptionTranslationFilter.sendStartAuthentication(ExceptionTranslationFilter.java:204)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      5. org.springframework.security.web.access.ExceptionTranslationFilter.handleSpringSecurityException(ExceptionTranslationFilter.java:178)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      6. org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:134)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      7. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      8. org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      9. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      10. org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      11. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      12. org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:150)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      13. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      14. org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:169)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      15. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      16. org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      17. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      18. org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      19. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      20. org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:121)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      21. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      21 frames
    11. org.springframework.security
      HeaderWriterFilter.doFilterInternal
      1. org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:66)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      1 frame
    12. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      1 frame
    13. Spring Security
      FilterChainProxy$VirtualFilterChain.doFilter
      1. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      2. org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      3. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      3 frames
    14. org.springframework.security
      WebAsyncManagerIntegrationFilter.doFilterInternal
      1. org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      1 frame
    15. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      1 frame
    16. Spring Security
      FilterChainProxy.doFilter
      1. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      2. org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:214)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      3. org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:177)[spring-security-web-4.1.1.RELEASE.jar:4.1.1.RELEASE]
      3 frames
    17. Spring
      DelegatingFilterProxy.doFilter
      1. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      2. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      2 frames
    18. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[tomcat-embed-core-8.5.4.jar:8.5.4]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[tomcat-embed-core-8.5.4.jar:8.5.4]
      2 frames
    19. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      2 frames
    20. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[tomcat-embed-core-8.5.4.jar:8.5.4]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[tomcat-embed-core-8.5.4.jar:8.5.4]
      2 frames
    21. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:87)[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      2 frames
    22. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[tomcat-embed-core-8.5.4.jar:8.5.4]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[tomcat-embed-core-8.5.4.jar:8.5.4]
      2 frames
    23. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      2 frames
    24. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[tomcat-embed-core-8.5.4.jar:8.5.4]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[tomcat-embed-core-8.5.4.jar:8.5.4]
      2 frames
    25. org.springframework.session
      OncePerRequestFilter.doFilter
      1. org.springframework.session.web.http.SessionRepositoryFilter.doFilterInternal(SessionRepositoryFilter.java:164)[spring-session-1.2.1.RELEASE.jar:na]
      2. org.springframework.session.web.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:80)[spring-session-1.2.1.RELEASE.jar:na]
      2 frames
    26. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[tomcat-embed-core-8.5.4.jar:8.5.4]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[tomcat-embed-core-8.5.4.jar:8.5.4]
      2 frames
    27. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      2 frames
    28. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)[tomcat-embed-core-8.5.4.jar:8.5.4]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)[tomcat-embed-core-8.5.4.jar:8.5.4]
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)[tomcat-embed-core-8.5.4.jar:8.5.4]
      4. org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:108)[tomcat-embed-core-8.5.4.jar:8.5.4]
      5. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)[tomcat-embed-core-8.5.4.jar:8.5.4]
      6. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:522)[tomcat-embed-core-8.5.4.jar:8.5.4]
      7. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)[tomcat-embed-core-8.5.4.jar:8.5.4]
      8. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)[tomcat-embed-core-8.5.4.jar:8.5.4]
      9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)[tomcat-embed-core-8.5.4.jar:8.5.4]
      10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)[tomcat-embed-core-8.5.4.jar:8.5.4]
      10 frames
    29. Grizzly HTTP
      SocketProcessorBase.run
      1. org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:1110)[tomcat-embed-core-8.5.4.jar:8.5.4]
      2. org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)[tomcat-embed-core-8.5.4.jar:8.5.4]
      3. org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:785)[tomcat-embed-core-8.5.4.jar:8.5.4]
      4. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1425)[tomcat-embed-core-8.5.4.jar:8.5.4]
      5. org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)[tomcat-embed-core-8.5.4.jar:8.5.4]
      5 frames
    30. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_101]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_101]
      2 frames
    31. Tomcat Util
      TaskThread$WrappingRunnable.run
      1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)[tomcat-embed-core-8.5.4.jar:8.5.4]
      1 frame
    32. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)[na:1.8.0_101]
      1 frame