java.lang.IllegalArgumentException: Locale value "no-" contains invalid characters

Spring JIRA | Kaj Hejer | 5 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    When I used CookieLocaleResolver, I can set invalid cookie to crash spring web application

    Stack Overflow | 2 years ago | Arden
    java.lang.IllegalArgumentException: Locale part "en-CA" contains invalid characters
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Locale value "no-" contains invalid characters

      at org.springframework.util.StringUtils.parseLocaleString()
    2. Spring Core
      StringUtils.parseLocaleString
      1. org.springframework.util.StringUtils.parseLocaleString(StringUtils.java:671)
      1 frame
    3. Spring MVC
      FrameworkServlet.doGet
      1. org.springframework.web.servlet.i18n.LocaleChangeInterceptor.preHandle(LocaleChangeInterceptor.java:73)
      2. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:781)
      3. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
      4. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:669)
      5. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:574)
      5 frames
    4. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.doHead(HttpServlet.java:238)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:117)
      2 frames