All reports give error: HTTP Status 500 - Invalid locale format: en-US

Document ID : KB000095919
Last Modified Date : 15/05/2018
Show Technical Document Details
Introduction:
All reports opened from the SaaS Operator console Reports option give the following error

HTTP Status 500 - Invalid locale format: en-CA

type Exception report

message Invalid locale format: en-CA

description The server encountered an internal error that prevented it from fulfilling this request.

exception java.lang.IllegalArgumentException: Invalid locale format: en-CA
org.apache.commons.lang.LocaleUtils.toLocale(LocaleUtils.java:110) com.jaspersoft.jasperserver.war.JSSessionLocaleResolver.getLocaleFromCookies(JSSessionLocaleResolver.java:71) com.jaspersoft.jasperserver.war.JSSessionLocaleResolver.resolveLocale(JSSessionLocaleResolver.java:54) com.jaspersoft.jasperserver.api.security.WebAppSecurityFilter.doFilter(WebAppSecurityFilter.java:76) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) com.jaspersoft.jasperserver.war.MultipartRequestWrapperFilter.doFilter(MultipartRequestWrapperFilter.java:95) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) com.jaspersoft.jasperserver.war.NullFilter.doFilter(NullFilter.java:43) org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) com.jaspersoft.jasperserver.api.security.encryption.EncryptionFilter.doFilter(EncryptionFilter.java:150) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) com.ca.bicoe.cajasperserver.preauth.sso.filters.BasicRefererBasedCsrfFilter.doFilter(BasicRefererBasedCsrfFilter.java:110) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192) org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160) org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) com.jaspersoft.jasperserver.war.util.SessionDecoratorFilter.doFilter(SessionDecoratorFilter.java:63) org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) com.jaspersoft.jasperserver.war.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:67) org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) com.jaspersoft.jasperserver.war.httpheaders.ResourceHTTPHeadersFilter.doFilter(ResourceHTTPHeadersFilter.java:77) org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) com.jaspersoft.jasperserver.war.P3PFilter.doFilter(P3PFilter.java:43) note The full stack trace of the root cause is available in the Apache Tomcat/7.0.81 logs. Apache Tomcat/7.0.81
Question:
How can we access reports from the SaaS Operator Console from the Reports option if we keep getting the following error instead of the report:

HTTP Status 500 - Invalid locale format: <browser language setting>
Environment:
SaaS UIM 8.51
Answer:
It appears that unwanted data may be cached in the browser which is causing this issue.  There are 2 different Workarounds that can be used to solve this until this is fixed permanently:

a) Clear the browser cache from the beginning of time
b) Access the SaaS Operator Console in the equivalent of the browser's incognito mode (the preferred workaround)