Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0053754
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo Localizations] Othersminoralways2023-10-25 10:322024-01-31 21:50
ReportertonialcaideView Statuspublic 
Assigned Totonialcaide 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Regression introduced in release
Summary

0053754: Errors when generating XML using the Import POs option in the Translation Helper

DescriptionImport 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 [^]
Steps To ReproduceAccess 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
TagsNo tags attached.
Attached Fileszip file icon it_IT_minimal.zip [^] (28,553 bytes) 2023-10-25 10:32

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0156272)
hgbot (developer)
2023-10-25 10:49

Merge Request created: https://gitlab.com/openbravo/tools/translations/org.openbravo.xmlpo/-/merge_requests/8 [^]
(0160029)
hgbot (developer)
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 (developer)
2024-01-31 16:31

Merge request merged: https://gitlab.com/openbravo/tools/translations/org.openbravo.xmlpo/-/merge_requests/8 [^]

- Issue History
Date Modified Username Field Change
2023-10-25 10:32 tonialcaide New Issue
2023-10-25 10:32 tonialcaide File Added: it_IT_minimal.zip
2023-10-25 10:34 tonialcaide Description Updated View Revisions
2023-10-25 10:40 tonialcaide Steps to Reproduce Updated View Revisions
2023-10-25 10:49 hgbot Note Added: 0156272
2024-01-31 16:31 hgbot Resolution open => fixed
2024-01-31 16:31 hgbot Status new => closed
2024-01-31 16:31 hgbot Note Added: 0160029
2024-01-31 16:31 hgbot Note Added: 0160030
2024-01-31 21:50 aferraz Assigned To => tonialcaide


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker