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

Spring JIRA | Kaj Hejer | 5 years ago
  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

  3. 0

    InventoryClickEvent

    GitHub | 4 months ago | AviRendall
    org.bukkit.event.EventException
  4. 0

    @Cacheable on a List method: "Key contains invalid characters: SimpleKey []"

    GitHub | 2 years ago | boeboe
    java.lang.IllegalArgumentException: Key contains invalid characters: ``SimpleKey []''

    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

      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