Openbravo Issue Tracking System - Openbravo Localizations
View Issue Details
0053754Openbravo LocalizationsOtherspublic2023-10-25 10:322024-01-31 21:50
tonialcaide 
tonialcaide 
normalminoralways
closedfixed 
5
 
 
0053754: Errors when generating XML using the Import POs option in the Translation Helper
Import the it_IT_minimal.zip attached file, an error is got in console during the importation process:

2023-10-25 10:19:10,219 [http-nio-8080-exec-6] INFO org.openbravo.translator.helper.ad_forms.TranslationHelperUtility - Error while creating po2xml
java.lang.NullPointerException: Cannot invoke "org.openbravo.xmlpo.objects.ValueObject.getType()" because "obj" is null
    at org.openbravo.xmlpo.utils.XMLFileBuilder.generateXML(XMLFileBuilder.java:152) ~[classes/:?]
    at org.openbravo.xmlpo.utils.XMLFileBuilder.build(XMLFileBuilder.java:106) ~[classes/:?]
    at org.openbravo.xmlpo.po2xml.PO2XMLController.buildXMLFile(PO2XMLController.java:143) ~[classes/:?]
    at org.openbravo.xmlpo.po2xml.PO2XMLController.buildXMLFiles(PO2XMLController.java:87) ~[classes/:?]
    at org.openbravo.xmlpo.po2xml.PO2XMLMain.main(PO2XMLMain.java:64) ~[classes/:?]
    at org.openbravo.translator.helper.ad_forms.TranslationHelperUtility.po2xml(TranslationHelperUtility.java:181) [classes/:?]
    at org.openbravo.translator.helper.ad_forms.TranslationHelperUtility.po2xml(TranslationHelperUtility.java:179) [classes/:?]
    at org.openbravo.translator.helper.ad_forms.TranslationHelper.unzipTransformPO2Xml(TranslationHelper.java:221) [classes/:?]
    at org.openbravo.translator.helper.ad_forms.TranslationHelper.doPost(TranslationHelper.java:178) [classes/:?]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:682) [servlet-api.jar:?]
    at org.openbravo.base.HttpBaseServlet.serviceInitialized(HttpBaseServlet.java:200) [openbravo-core.jar:?]
    at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:461) [classes/:?]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:765) [servlet-api.jar:?]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) [catalina.jar:8.5.85]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:8.5.85]
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat-websocket.jar:8.5.85]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:8.5.85]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:8.5.85]
    at org.openbravo.utils.SessionExpirationFilter.doFilter(SessionExpirationFilter.java:66) [openbravo-core.jar:?]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:8.5.85]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:8.5.85]
    at org.openbravo.utils.CharsetFilter.doFilter(CharsetFilter.java:38) [openbravo-core.jar:?]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:8.5.85]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:8.5.85]
    at org.openbravo.client.kernel.KernelFilter$1.doAction(KernelFilter.java:65) [classes/:?]
    at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:47) [classes/:?]
    at org.openbravo.client.kernel.KernelFilter.doFilter(KernelFilter.java:74) [classes/:?]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:8.5.85]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:8.5.85]
    at org.openbravo.dal.core.DalRequestFilter$1.doAction(DalRequestFilter.java:96) [classes/:?]
    at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:47) [classes/:?]
    at org.openbravo.dal.core.DalRequestFilter.doFilter(DalRequestFilter.java:118) [classes/:?]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:8.5.85]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:8.5.85]
    at org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71) [log4j-web-2.17.1.jar:2.17.1]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:8.5.85]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:8.5.85]
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:177) [catalina.jar:8.5.85]
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) [catalina.jar:8.5.85]
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543) [catalina.jar:8.5.85]
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) [catalina.jar:8.5.85]
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [catalina.jar:8.5.85]
    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:698) [catalina.jar:8.5.85]
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) [catalina.jar:8.5.85]
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:367) [catalina.jar:8.5.85]
    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:639) [tomcat-coyote.jar:8.5.85]
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-coyote.jar:8.5.85]
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:885) [tomcat-coyote.jar:8.5.85]
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1688) [tomcat-coyote.jar:8.5.85]
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-coyote.jar:8.5.85]
    at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) [tomcat-util.jar:8.5.85]
    at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) [tomcat-util.jar:8.5.85]
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util.jar:8.5.85]
    at java.lang.Thread.run(Thread.java:833) [?:?]

More info in JIRA: https://openbravo.atlassian.net/browse/RM-9066 [^]
Access to the Translation Helper window
Select Italian (Italy) language
Press Import POs button
Choose the it_IT_minimal.zip attached file
Press OK
Check the error in the log file
No tags attached.
zip it_IT_minimal.zip (28,553) 2023-10-25 10:32
https://issues.openbravo.com/file_download.php?file_id=19092&type=bug
Issue History
2023-10-25 10:32tonialcaideNew Issue
2023-10-25 10:32tonialcaideFile Added: it_IT_minimal.zip
2023-10-25 10:34tonialcaideDescription Updatedbug_revision_view_page.php?rev_id=27024#r27024
2023-10-25 10:40tonialcaideSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=27026#r27026
2023-10-25 10:49hgbotNote Added: 0156272
2024-01-31 16:31hgbotResolutionopen => fixed
2024-01-31 16:31hgbotStatusnew => closed
2024-01-31 16:31hgbotNote Added: 0160029
2024-01-31 16:31hgbotNote Added: 0160030
2024-01-31 21:50aferrazAssigned To => tonialcaide

Notes
(0156272)
hgbot   
2023-10-25 10:49   
Merge Request created: https://gitlab.com/openbravo/tools/translations/org.openbravo.xmlpo/-/merge_requests/8 [^]
(0160029)
hgbot   
2024-01-31 16:31   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/tools/translations/org.openbravo.xmlpo [^]
Changeset: b93d1bf6a06b7cd30f9a3d04316a78b05b6a6d8a
Author: Toni Alcaide <antonio.alcaide@openbravo.com>
Date: 31-01-2024 15:31:10
URL: https://gitlab.com/openbravo/tools/translations/org.openbravo.xmlpo/-/commit/b93d1bf6a06b7cd30f9a3d04316a78b05b6a6d8a [^]

Fixes ISSUE-53754: Changes to avoid errors when generating xml from po files

---
M src/org/openbravo/xmlpo/utils/XMLFileBuilder.java
---
(0160030)
hgbot   
2024-01-31 16:31   
Merge request merged: https://gitlab.com/openbravo/tools/translations/org.openbravo.xmlpo/-/merge_requests/8 [^]