Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0007937Openbravo ERPE. Translationpublic2009-03-04 13:212009-03-25 00:00
ffred 
pheenan 
normalcriticalalways
closedno change required 
20rPath Linux
2.40MP3 
 
Core
No
0007937: java.lang.NullPointerExceptio
I tried to make localization in French. All was ok, but I did not success to compile and deploy the .war.

I stopped to work on localization procedure.

When I clicked on Openbravo user (upper corner left), I edited it: choose french language, and click on "Default" check box.

Then I got this message:

HTTP Status 500 -
type Exception report
message

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

exception

java.lang.NullPointerException
    org.openbravo.xmlEngine.XmlDocument.setParameter(Unknown Source)
    org.openbravo.base.secureApp.HttpSecureAppServlet.bdErrorGeneral(Unknown Source)
    org.openbravo.base.secureApp.HttpSecureAppServlet.service(Unknown Source)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:597)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
    java.security.AccessController.doPrivileged(Native Method)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    java.security.AccessController.doPrivileged(Native Method)
    org.openbravo.utils.CharsetFilter.doFilter(Unknown Source)
    sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:597)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
    java.security.AccessController.doPrivileged(Native Method)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs.
Apache Tomcat/5.5
Instal French localization language but not deploy it on tomcat

When I clicked on Openbravo user (upper corner left), I edited it: choose french language, and click on "Default" check box.
Don't know.. :)

But I'm in the dark now, what coul I do to restart properly Openbravo ?
No tags attached.
Issue History
2009-03-04 13:21ffredNew Issue
2009-03-04 13:21ffredAssigned To => rafaroda
2009-03-04 13:26ffredNote Added: 0014384
2009-03-04 13:27ffredIssue Monitored: ffred
2009-03-04 16:19rafarodaNote Added: 0014390
2009-03-04 16:19rafarodaAssigned Torafaroda => pheenan
2009-03-04 16:19rafarodaCategoryB. User interface => E. Translation
2009-03-04 20:02pheenanNote Added: 0014404
2009-03-05 22:18ffredNote Added: 0014449
2009-03-05 22:19ffredNote Added: 0014450
2009-03-09 10:32rafarodaNote Added: 0014509
2009-03-09 10:32rafarodaStatusnew => feedback
2009-03-09 12:24pheenanNote Added: 0014518
2009-03-24 09:39AinhoaPagolaRegression testing => No
2009-03-24 09:39AinhoaPagolaStatusfeedback => closed
2009-03-24 09:39AinhoaPagolaResolutionopen => no change required
2009-03-25 00:00anonymoussf_bug_id0 => 2710563

Notes
(0014384)
ffred   
2009-03-04 13:26   
the log:

12:15:51 [http-8180-Processor21] ERROR org.openbravo.xmlEngine.XmlEngine - not found fileXmlEngineConfiguration: /var/lib/tomcat5.5/webapps/openbravo/src-loc/fr_FR/org/openbravo/erpCommon/security/Login_FS.xml
/var/lib/tomcat5.5/webapps/openbravo/src-loc/fr_FR/org/openbravo/erpCommon/security/Login_FS.xml (No such file or directory)
12:15:51 [http-8180-Processor21] ERROR org.openbravo.erpCommon.security.Menu - Error captured: java.lang.NullPointerException
12:15:51 [http-8180-Processor21] ERROR org.openbravo.xmlEngine.XmlEngine - not found fileXmlEngineConfiguration: /var/lib/tomcat5.5/webapps/openbravo/src-loc/fr_FR/org/openbravo/base/secureApp/Error.xml
/var/lib/tomcat5.5/webapps/openbravo/src-loc/fr_FR/org/openbravo/base/secureApp/Error.xml (No such file or directory)
12:15:51 [http-8180-Processor21] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/openbravo].[X801699] - "Servlet.service()" pour la servlet X801699 a généré une exception
java.lang.NullPointerException
    at org.openbravo.xmlEngine.XmlDocument.setParameter(Unknown Source)
    at org.openbravo.base.secureApp.HttpSecureAppServlet.bdErrorGeneral(Unknown Source)
    at org.openbravo.base.secureApp.HttpSecureAppServlet.service(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:262)
    at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:192)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:171)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
    at org.openbravo.utils.SessionExpirationFilter.doFilter(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:192)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:171)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
    at org.openbravo.utils.CharsetFilter.doFilter(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:192)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:171)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
    at java.lang.Thread.run(Thread.java:595)
(0014390)
rafaroda   
2009-03-04 16:19   
Phil,

Could you please test to install 2.3x French translation [1] in current 2.40 branch?

Thanks.

[1]https://sourceforge.net/project/downloading.php?group_id=162271&use_mirror=kent&filename=French_France_Translation.zip&a=84112213 [^]
(0014404)
pheenan   
2009-03-04 20:02   
Will test this.

Is it possible that the 'Verify Language' process has not been run? This would result in there being no translation entries in the database and as a result no translations existing for the French Language files.
(0014449)
ffred   
2009-03-05 22:18   
Verify language has been run
only compilation, war and deploy not done. (permissions problem)
These permissions problems has been solved by installing Openbravo on /home directory.
Compilation ok, war ok, deploy ok.
When restarting tomcat 5.5, and opening Openbravo, the language is un english instead french.
When choosing french in Openbravo's profile, the same error appears.
(0014450)
ffred   
2009-03-05 22:19   
I'm on ubuntu hardy, tomcat 5.5, ant 1.7.1
(0014509)
rafaroda   
2009-03-09 10:32   
As it is said in [1], please let us know the following results:

1) Press the Verify Languages button to create the records for the language (if you already performed this action, result of the process should be 0, otherwise, the amount of new records created will be shown). An easy way to confirm that the process run correctly is to check that new lines have been created in the translation tab of the windows. For example:

    * Go to Application Dictionary > Setup > Element.
    * Go to Translation tab.
    * Verify that a new line has been created for the choosen language. The contains of the tab should be en English. The real translation will take place in the following steps. If there is no new line make sure you have saved the record after checking System language check box and press Verify language again.

2) Press the Import button to start the import of the translation. An easy way to confirm that the process run correctly is to check that the lines in the translation tab of the windows have been translated. For example:

    * Go to Application Dictionary > Setup > Element.
    * Go to Translation tab.
    * Verify that the record is displayed with the content translated to the choosen language. If results keep displaying in English, press the Import button again.

[1] http://wiki.openbravo.com/wiki/Translating_Openbravo#Installing_a_new_translation [^]
(0014518)
pheenan   
2009-03-09 12:24   
In Openbravo 2.3x and 2.40 it is a requirement to recompile and redeploy the application in order to finalise the installation of a translation. If you do not recompile and redeploy the translation will not be available to the application.

In 2.50 a compilation and redeploy is no longer required to finalise the install of a new language.

Please complete the process for installing a lanugage pack by recompiling and redeploying the application to tomcat.