Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
2.22.08
Description
When a channel does not have a locale set, the channel manager logs an NPE.
Steps to reproduce:
- start GoGreen
- in the console, remove the property 'hst:locale' from the node /hst:hst/hst:hosts
- log in to the CMS
The English website channel will now be missing a 'locale' (the other channels have a locale set on their mounts).
Expected behavior: no errors in the logs when logging in
Actual behavior: the following error is logged:
[INFO] [talledLocalContainer] 07.08.2012 09:21:17 ERROR [org.apache.wicket.RequestCycle.logRuntimeException():1531]
[INFO] [talledLocalContainer] java.lang.NullPointerException
[INFO] [talledLocalContainer] at org.onehippo.cms7.channelmanager.channels.ChannelStore.getChannelFieldValues(ChannelStore.java:213)
[INFO] [talledLocalContainer] at org.onehippo.cms7.channelmanager.channels.ChannelStore.populateChannelTypeAndRegion(ChannelStore.java:184)
[INFO] [talledLocalContainer] at org.onehippo.cms7.channelmanager.channels.ChannelStore.getData(ChannelStore.java:168)
[INFO] [talledLocalContainer] at org.wicketstuff.js.ext.data.ExtJsonStore.readRecords(ExtJsonStore.java:71)
[INFO] [talledLocalContainer] at org.wicketstuff.js.ext.data.ExtJsonStore.access$3(ExtJsonStore.java:69)
[INFO] [talledLocalContainer] at org.wicketstuff.js.ext.data.ExtJsonStore$1.onRequest(ExtJsonStore.java:58)
[INFO] [talledLocalContainer] at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:157)
[INFO] [talledLocalContainer] at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
[INFO] [talledLocalContainer] at org.hippoecm.frontend.PluginRequestCycleProcessor.processEvents(PluginRequestCycleProcessor.java:95)
[INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1252)
[INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.step(RequestCycle.java:1331)
[INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1438)
[INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.request(RequestCycle.java:546)
[INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
[INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
[INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
[INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[INFO] [talledLocalContainer] at org.hippoecm.frontend.ResourceRewriteFilter.doFilter(ResourceRewriteFilter.java:129)
[INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
[INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:56)
[INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
[INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:191)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
[INFO] [talledLocalContainer] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
[INFO] [talledLocalContainer] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
[INFO] [talledLocalContainer] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
[INFO] [talledLocalContainer] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
[INFO] [talledLocalContainer] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
[INFO] [talledLocalContainer] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
[INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:662)