[
https://jira.jboss.org/jira/browse/GTNPORTAL-638?page=com.atlassian.jira....
]
Marko Strukelj resolved GTNPORTAL-638.
--------------------------------------
Resolution: Done
Assignee: (was: Marko Strukelj)
All ResourceBundle implementations are expected to return non-null locale.
IdentityResourceBundle getLocale() would always return null.
Fixed by overriding getLocale() the same way MapResourceBundle does it.
Switich to the magic locale "ma" causes a severe
IllegalArgumentException
-------------------------------------------------------------------------
Key: GTNPORTAL-638
URL:
https://jira.jboss.org/jira/browse/GTNPORTAL-638
Project: GateIn Portal
Issue Type: Bug
Components: Internationalization and Localization
Affects Versions: 3.0.0-Beta05
Reporter: Soren Schmidt
Priority: Minor
Fix For: 3.1.0-GA
Test case:
- Login as mary
- Go to "Switch Language"
- Switch to "ma"
- Click on "Apply"
After that the portal is blocked for the current user. You have to delete the cookie.
12-Feb-2010 11:26:06
org.exoplatform.webui.application.portlet.PortletApplicationController render
SEVERE: Error while rendering the porlet
java.lang.IllegalArgumentException: Child locale must not be null
at
org.gatein.common.i18n.ParentChildResourceBundle.<init>(ParentChildResourceBundle.java:71)
at
org.gatein.pc.portlet.impl.jsr168.PortletResourceBundleFactory.getBundle(PortletResourceBundleFactory.java:110)
at
org.gatein.common.i18n.ResourceBundleManager.getResourceBundle(ResourceBundleManager.java:160)
at
org.gatein.pc.portlet.impl.jsr168.api.PortletConfigImpl.getResourceBundle(PortletConfigImpl.java:140)
at
org.exoplatform.webui.application.portlet.PortletApplication.getResourceBundle(PortletApplication.java:118)
at
org.exoplatform.webui.application.portlet.PortletRequestContext.setUIApplication(PortletRequestContext.java:87)
at
org.exoplatform.webui.application.portlet.PortletApplication.render(PortletApplication.java:240)
at
org.exoplatform.webui.application.portlet.PortletApplicationController.render(PortletApplicationController.java:110)
at
org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:568)
at
org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159)
at
org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:80)
at
org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:505)
at
org.gatein.pc.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at
org.gatein.pc.portlet.aspects.EventPayloadInterceptor.invoke(EventPayloadInterceptor.java:196)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at
org.gatein.pc.portlet.aspects.RequestAttributeConversationInterceptor.invoke(RequestAttributeConversationInterceptor.java:119)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at org.gatein.pc.portlet.aspects.CCPPInterceptor.invoke(CCPPInterceptor.java:65)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at org.gatein.pc.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at
org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.access$001(ContextDispatcherInterceptor.java:49)
at
org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor$1.doCallback(ContextDispatcherInterceptor.java:123)
at
org.gatein.wci.command.CommandDispatcher$CallbackCommand.execute(CommandDispatcher.java:82)
at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.gatein.wci.command.CommandServlet.doGet(CommandServlet.java:135)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
at org.gatein.wci.command.CommandServlet.include(CommandServlet.java:84)
at org.gatein.wci.command.CommandDispatcher.include(CommandDispatcher.java:58)
at
org.gatein.wci.tomcat.TC6ServletContainerContext.include(TC6ServletContainerContext.java:87)
at
org.gatein.wci.impl.DefaultServletContainer.include(DefaultServletContainer.java:191)
at
org.gatein.pc.portlet.impl.spi.AbstractServerContext.dispatch(AbstractServerContext.java:69)
at
org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:77)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at
org.gatein.pc.portlet.aspects.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at
org.gatein.pc.portlet.aspects.ValveInterceptor.invoke(ValveInterceptor.java:75)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at
org.gatein.pc.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.java:117)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at
org.gatein.pc.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:230)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at
org.gatein.pc.portlet.aspects.PortletCustomizationInterceptor.invoke(PortletCustomizationInterceptor.java:76)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at
org.gatein.pc.portlet.aspects.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:162)
at
org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
at
org.gatein.pc.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:152)
at
org.gatein.pc.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:173)
at org.exoplatform.portal.webui.application.UIPortlet.invoke(UIPortlet.java:886)
at
org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:174)
at
org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:53)
at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:141)
at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:366)
at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:356)
at sun.reflect.GeneratedMethodAccessor148.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
at UIContainer.run(UIContainer.gtmpl:50)
at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:110)
at
org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:74)
at
org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:123)
at
org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:76)
at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:141)
at
org.exoplatform.webui.core.UIContainer.renderUIComponent(UIContainer.java:337)
at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
at UIToolbarContainer.run(UIToolbarContainer.gtmpl:47)
at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:110)
at
org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:74)
at
org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:123)
at
org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:76)
at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:141)
at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:366)
at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:356)
at sun.reflect.GeneratedMethodAccessor148.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
at UIContainer.run(UIContainer.gtmpl:50)
at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:110)
at
org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:74)
at
org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:123)
at
org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:76)
at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:141)
at
org.exoplatform.webui.core.UIComponentDecorator$UIComponentDecoratorLifecycle.processRender(UIComponentDecorator.java:103)
at
org.exoplatform.webui.core.UIComponentDecorator$UIComponentDecoratorLifecycle.processRender(UIComponentDecorator.java:94)
at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:141)
at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:366)
at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:356)
at sun.reflect.GeneratedMethodAccessor148.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
at UIWorkingWorkspace.run(UIWorkingWorkspace.gtmpl:12)
at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:110)
at
org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:74)
at
org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:123)
at
org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:76)
at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:141)
at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:366)
at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:356)
at
org.exoplatform.webui.core.UIApplication.renderChildren(UIApplication.java:102)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
at UIPortalApplication.run(UIPortalApplication.gtmpl:127)
at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:110)
at
org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:74)
at
org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:123)
at
org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:76)
at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:141)
at
org.exoplatform.portal.webui.workspace.UIPortalApplication.processRender(UIPortalApplication.java:430)
at
org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:109)
at org.exoplatform.web.WebAppController.service(WebAppController.java:143)
at
org.exoplatform.portal.application.PortalController.onService(PortalController.java:127)
at
org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:114)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(ThreadLocalSessionProviderInitializedFilter.java:11
6)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentityFilter.java:76)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:112)
at
org.exoplatform.web.filter.ExtensibleFilter.doFilter(ExtensibleFilter.java:84)
at org.exoplatform.web.filter.GenericFilter.doFilter(GenericFilter.java:66)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:595)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira