ConcourseSuite Support

Support
Corporate
PUBLIC PROFILE

Back to topics

Discuss Installation and Maintenance

Moderator: Matt Rajkowski

Default language/locale EN_GB causes java.lang.NullPointerException

You need to be logged in to post messages

Default language/locale EN_GB causes java.lang.NullPointerException

3/16/2011 9:18 AM EDT

If we install or subsequently amend ConcourseSuite 6.1 to use EN_GB rather than EN_US, the catalina.out log files fill up with the following errors very, very rapidly. This makes the log unusable for any other issue.

dictionaries=language_en_GB
[ERROR] com.concursive.crm.config.ApplicationPrefs - Language Error.
java.lang.NullPointerException
at com.concursive.commons.xml.XMLUtils.<init>(Unknown Source)
at com.concursive.crm.config.Dictionary.load(Unknown Source)
at com.concursive.crm.config.Dictionary.load(Unknown Source)
at com.concursive.crm.config.ApplicationPrefs.addDictionary(Unknown Source)
at com.concursive.crm.web.controller.hooks.GlobalItemsHook.generateItems(Unknown Source)
at com.concursive.crm.web.controller.servlets.ControllerServlet.forward(Unknown Source)
at com.concursive.crm.web.controller.servlets.ControllerServlet.service(Unknown Source)
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.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.concursive.crm.web.controller.servlets.ControllerServlet.forward(Unknown Source)
at com.concursive.crm.web.controller.servlets.ControllerServlet.service(Unknown Source)
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.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
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:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:636)
java.lang.NullPointerException
at com.concursive.commons.xml.XMLUtils.<init>(Unknown Source)
at com.concursive.crm.config.Dictionary.load(Unknown Source)
at com.concursive.crm.config.Dictionary.load(Unknown Source)
at com.concursive.crm.config.ApplicationPrefs.addDictionary(Unknown Source)
at com.concursive.crm.web.controller.hooks.GlobalItemsHook.generateItems(Unknown Source)
at com.concursive.crm.web.controller.servlets.ControllerServlet.forward(Unknown Source)
at com.concursive.crm.web.controller.servlets.ControllerServlet.service(Unknown Source)
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.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.concursive.crm.web.controller.servlets.ControllerServlet.forward(Unknown Source)
at com.concursive.crm.web.controller.servlets.ControllerServlet.service(Unknown Source)
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.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
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:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:636)

1. 3/16/2011 10:57 AM EDT
Default user photo

By Matt Rajkowski

Concursive Corporation
Product Design

airplane-icon-100x100.png

The intent of the languages dialog at installation is to allow the application to display content (calendar, time, translation) for the chosen locale. With that said, it's possible that some locales are missing locale specific files, however en_US is the fallback so there must be a bug.

I'll submit a ticket to verify the locale fallback.

An interim solution is to copy the en_US files as en_GB until the update.

2. 3/16/2011 12:21 PM EDT

There are many files/folders with en_US in them. Could you be more specific please?

3. 3/16/2011 12:59 PM EDT

It seems to have been solved by copying WEB-INF/languages/dictionary_en_US.xml to WEB-INF/languages/dictionary_en_GB.xml

4. 3/16/2011 3:13 PM EDT

All the "Getting started" links now give the error "HTTP Status 404 - /help/en_gb/modules/accounts/dashboard.html"

5. 3/16/2011 9:20 PM EDT
Default user photo

By Matt Rajkowski

Concursive Corporation
Product Design

airplane-icon-100x100.png

We've fixed the 404 errors on the documentation. Thanks, Matt.

5 results found