Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||||||||||||||||
View Issue Details | ||||||||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||||||||||||||||
0014190 | Openbravo ERP | 00. Application dictionary | public | 2010-08-15 23:21 | 2022-02-01 08:08 | |||||||||||||||||||||
Reporter | rafaroda | |||||||||||||||||||||||||
Assigned To | Triage Platform Base | |||||||||||||||||||||||||
Priority | low | Severity | major | Reproducibility | always | |||||||||||||||||||||
Status | acknowledged | Resolution | open | |||||||||||||||||||||||
Platform | OS | 20 | OS Version | Community Appliance | ||||||||||||||||||||||
Product Version | 2.50MP20 | |||||||||||||||||||||||||
Target Version | Fixed in Version | |||||||||||||||||||||||||
Merge Request Status | ||||||||||||||||||||||||||
Review Assigned To | ||||||||||||||||||||||||||
OBNetwork customer | ||||||||||||||||||||||||||
Web browser | ||||||||||||||||||||||||||
Modules | Core | |||||||||||||||||||||||||
Support ticket | ||||||||||||||||||||||||||
Regression level | ||||||||||||||||||||||||||
Regression date | ||||||||||||||||||||||||||
Regression introduced in release | ||||||||||||||||||||||||||
Regression introduced by commit | ||||||||||||||||||||||||||
Triggers an Emergency Pack | No | |||||||||||||||||||||||||
Summary | 0014190: Can't export module developed with non-Western base language | |||||||||||||||||||||||||
Description | Modules with base language Japanese (or any other language with no Western characters) can not be exported. Besides, the Java generated in src-gen is not usable since characters are not correctly parsed. Characters, even with accents, are not properly parsed generating odd Java classes, for instance public final static String PROPERTY_ = ""; See error output: generate.entities.quick: [workflow] Adding param: /opt/OpenbravoERP/src/org/openbravo/base/gen/gen_entity.oaw [workflow] Adding param: -pob.properties.location=/opt/OpenbravoERP/config/Openbravo.properties [workflow] Adding param: -pbase.src.gen=/opt/OpenbravoERP/src-gen [workflow] Adding param: --ant [workflow] 2 [main] ERROR de.hunsicker.jalopy.language.java - PARSER_ERROR [workflow] /tmp/hybridlabs-beautifier1041962550425130696java:70:58: expecting TRIPLE_DOT, found ')' [workflow] at antlr.Parser.match(Parser.java:211) [workflow] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.variableLengthParameterDeclaration(InternalJavaParser.java:5146) [workflow] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.parameterDeclarationList(InternalJavaParser.java:4043) [workflow] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.classField(InternalJavaParser.java:3018) [workflow] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.classBlock(InternalJavaParser.java:2457) [workflow] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.classDefinition(InternalJavaParser.java:710) [workflow] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.typeDefinitionInternal(InternalJavaParser.java:632) [workflow] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.typeDefinition(InternalJavaParser.java:465) [workflow] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.parse(InternalJavaParser.java:296) [workflow] at de.hunsicker.jalopy.language.JavaRecognizer.parse(JavaRecognizer.java:588) [workflow] at de.hunsicker.jalopy.Jalopy.parse(Jalopy.java:1226) [workflow] at org.hybridlabs.source.beautifier.JavaBeautifier.createJavaNode(JavaBeautifier.java:64) [workflow] at org.hybridlabs.source.beautifier.JavaImportBeautifierImpl.organizeImports(JavaImportBeautifierImpl.java:155) [workflow] at org.hybridlabs.source.beautifier.JavaImportBeautifierImpl.beautify(JavaImportBeautifierImpl.java:127) [workflow] at org.hybridlabs.source.formatter.JavaImportBeautifier.beautify(JavaImportBeautifier.java:72) [workflow] at org.openbravo.base.gen.OBJavaBeautifier.beautify(OBJavaBeautifier.java:51) [workflow] at org.hybridlabs.source.formatter.JavaImportBeautifier.beforeWriteAndClose(JavaImportBeautifier.java:124) [workflow] at org.openarchitectureware.xpand2.output.Outlet.beforeWriteAndClose(Outlet.java:97) [workflow] at org.openarchitectureware.xpand2.output.FileHandleImpl.writeAndClose(FileHandleImpl.java:91) [workflow] at org.openarchitectureware.xpand2.output.OutputImpl.closeFile(OutputImpl.java:150) [workflow] at org.openarchitectureware.xpand2.ast.FileStatement.evaluateInternal(FileStatement.java:85) [workflow] at org.openarchitectureware.xpand2.ast.Statement.evaluate(Statement.java:37) [workflow] at org.openarchitectureware.xpand2.ast.AbstractDefinition.evaluate(AbstractDefinition.java:171) [workflow] at org.openarchitectureware.xpand2.ast.ExpandStatement.invokeDefinition(ExpandStatement.java:198) [workflow] at org.openarchitectureware.xpand2.ast.ExpandStatement.evaluateInternal(ExpandStatement.java:148) [workflow] at org.openarchitectureware.xpand2.ast.Statement.evaluate(Statement.java:37) [workflow] at org.openarchitectureware.xpand2.ast.AbstractDefinition.evaluate(AbstractDefinition.java:171) [workflow] at org.openarchitectureware.xpand2.ast.ExpandStatement.invokeDefinition(ExpandStatement.java:198) [workflow] at org.openarchitectureware.xpand2.ast.ExpandStatement.evaluateInternal(ExpandStatement.java:170) [workflow] at org.openarchitectureware.xpand2.ast.Statement.evaluate(Statement.java:37) [workflow] at org.openarchitectureware.xpand2.Generator.invokeInternal2(Generator.java:247) [workflow] at org.openarchitectureware.expression.AbstractExpressionsUsingWorkflowComponent.invokeInternal(AbstractExpressionsUsingWorkflowComponent.java:164) [workflow] at org.openarchitectureware.workflow.lib.AbstractWorkflowComponent2.invoke(AbstractWorkflowComponent2.java:38) [workflow] at org.openarchitectureware.workflow.container.CompositeComponent.internalInvoke(CompositeComponent.java:95) [workflow] at org.openarchitectureware.workflow.container.CompositeComponent.invoke(CompositeComponent.java:84) [workflow] at org.openarchitectureware.workflow.WorkflowRunner.executeWorkflow(WorkflowRunner.java:339) [workflow] at org.openarchitectureware.workflow.WorkflowRunner.run(WorkflowRunner.java:256) [workflow] at org.openarchitectureware.workflow.WorkflowRunner.main(WorkflowRunner.java:208) [workflow] 147 [main] ERROR org.hybridlabs.source.beautifier.JavaImportBeautifierImpl - Error during beautification. Content: [workflow] /* [workflow] ************************************************************************* [workflow] * The contents of this file are subject to the Openbravo Public License [workflow] * Vers... [workflow] /tmp/hybridlabs-beautifier1041962550425130696java:72:5: expecting EOF, found '}' [workflow] at antlr.Parser.match(Parser.java:211) [workflow] at de.hunsicker.jalopy.language.antlr.InternalJavaParser.parse(InternalJavaParser.java:308) [workflow] at de.hunsicker.jalopy.language.JavaRecognizer.parse(JavaRecognizer.java:588) [workflow] at de.hunsicker.jalopy.Jalopy.parse(Jalopy.java:1226) [workflow] at org.hybridlabs.source.beautifier.JavaBeautifier.createJavaNode(JavaBeautifier.java:64) [workflow] at org.hybridlabs.source.beautifier.JavaImportBeautifierImpl.organizeImports(JavaImportBeautifierImpl.java:155) [workflow] at org.hybridlabs.source.beautifier.JavaImportBeautifierImpl.beautify(JavaImportBeautifierImpl.java:127) [workflow] at org.hybridlabs.source.formatter.JavaImportBeautifier.beautify(JavaImportBeautifier.java:72) [workflow] at org.openbravo.base.gen.OBJavaBeautifier.beautify(OBJavaBeautifier.java:51) [workflow] at org.hybridlabs.source.formatter.JavaImportBeautifier.beforeWriteAndClose(JavaImportBeautifier.java:124) [workflow] at org.openarchitectureware.xpand2.output.Outlet.beforeWriteAndClose(Outlet.java:97) [workflow] at org.openarchitectureware.xpand2.output.FileHandleImpl.writeAndClose(FileHandleImpl.java:91) [workflow] at org.openarchitectureware.xpand2.output.OutputImpl.closeFile(OutputImpl.java:150) [workflow] at org.openarchitectureware.xpand2.ast.FileStatement.evaluateInternal(FileStatement.java:85) [workflow] at org.openarchitectureware.xpand2.ast.Statement.evaluate(Statement.java:37) [workflow] at org.openarchitectureware.xpand2.ast.AbstractDefinition.evaluate(AbstractDefinition.java:171) [workflow] at org.openarchitectureware.xpand2.ast.ExpandStatement.invokeDefinition(ExpandStatement.java:198) [workflow] at org.openarchitectureware.xpand2.ast.ExpandStatement.evaluateInternal(ExpandStatement.java:148) [workflow] at org.openarchitectureware.xpand2.ast.Statement.evaluate(Statement.java:37) [workflow] at org.openarchitectureware.xpand2.ast.AbstractDefinition.evaluate(AbstractDefinition.java:171) [workflow] at org.openarchitectureware.xpand2.ast.ExpandStatement.invokeDefinition(ExpandStatement.java:198) [workflow] at org.openarchitectureware.xpand2.ast.ExpandStatement.evaluateInternal(ExpandStatement.java:170) [workflow] at org.openarchitectureware.xpand2.ast.Statement.evaluate(Statement.java:37) [workflow] at org.openarchitectureware.xpand2.Generator.invokeInternal2(Generator.java:247) [workflow] at org.openarchitectureware.expression.AbstractExpressionsUsingWorkflowComponent.invokeInternal(AbstractExpressionsUsingWorkflowComponent.java:164) [workflow] at org.openarchitectureware.workflow.lib.AbstractWorkflowComponent2.invoke(AbstractWorkflowComponent2.java:38) [workflow] at org.openarchitectureware.workflow.container.CompositeComponent.internalInvoke(CompositeComponent.java:95) [workflow] at org.openarchitectureware.workflow.container.CompositeComponent.invoke(CompositeComponent.java:84) [workflow] at org.openarchitectureware.workflow.WorkflowRunner.executeWorkflow(WorkflowRunner.java:339) [workflow] at org.openarchitectureware.workflow.WorkflowRunner.run(WorkflowRunner.java:256) [workflow] at org.openarchitectureware.workflow.WorkflowRunner.main(WorkflowRunner.java:208) [javac] Compiling 473 source files to /opt/OpenbravoERP/build/classes [javac] /opt/OpenbravoERP/src-gen/org/openbravo/example/spanish/SALARY.java:70: <identifier> expected [javac] public void set(org.openbravo.model.ad.system.Client ) { [javac] ^ [javac] /opt/OpenbravoERP/src-gen/org/openbravo/example/spanish/SALARY.java:71: illegal start of expression [javac] set(PROPERTY_, ); [javac] ^ [javac] 2 errors | |||||||||||||||||||||||||
Steps To Reproduce | Having installed the Japanese Translation module http://forge.openbravo.com/projects/JpnTrans [^] 0) Create a new module with language Japanese (Japan) selected [0] 1) Develop a new window for this module [1]. Don't forget to Synchronize Terminology! 2) ant export.database [0] http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/How_To_Create_and_Package_a_Module [^] [1] http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/How_to_develop_a_new_window [^] | |||||||||||||||||||||||||
Proposed Solution | Do not allow to insert non-basic characters in the column names. | |||||||||||||||||||||||||
Additional Information | ||||||||||||||||||||||||||
Tags | dev-platform-quick-wins | |||||||||||||||||||||||||
Relationships |
| |||||||||||||||||||||||||
Attached Files | OBJECTIVE.java (5,661) 2010-08-16 00:11 https://issues.openbravo.com/file_download.php?file_id=2864&type=bug | |||||||||||||||||||||||||
Issue History | ||||||||||||||||||||||||||
Date Modified | Username | Field | Change | |||||||||||||||||||||||
2010-08-15 23:21 | rafaroda | New Issue | ||||||||||||||||||||||||
2010-08-15 23:21 | rafaroda | Assigned To | => alostale | |||||||||||||||||||||||
2010-08-15 23:21 | rafaroda | Relationship added | related to 0014173 | |||||||||||||||||||||||
2010-08-15 23:21 | rafaroda | Issue Monitored: rafaroda | ||||||||||||||||||||||||
2010-08-15 23:22 | rafaroda | Note Added: 0029968 | ||||||||||||||||||||||||
2010-08-16 00:11 | rafaroda | File Added: OBJECTIVE.java | ||||||||||||||||||||||||
2010-08-16 00:11 | rafaroda | Note Added: 0029969 | ||||||||||||||||||||||||
2010-08-16 08:05 | alostale | Assigned To | alostale => mtaal | |||||||||||||||||||||||
2010-08-16 08:05 | alostale | Status | new => scheduled | |||||||||||||||||||||||
2010-08-16 11:04 | rafaroda | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=680#r680 | |||||||||||||||||||||||
2010-08-17 18:51 | rafaroda | Assigned To | mtaal => alostale | |||||||||||||||||||||||
2010-08-17 18:51 | rafaroda | Proposed Solution updated | ||||||||||||||||||||||||
2010-08-18 09:10 | rafaroda | Relationship added | related to 0014184 | |||||||||||||||||||||||
2010-08-30 15:37 | rafaroda | Tag Attached: dev-platform-quick-wins | ||||||||||||||||||||||||
2010-08-30 16:39 | rafaroda | Relationship added | related to 0013275 | |||||||||||||||||||||||
2012-03-06 12:29 | alostale | Type | defect => design defect | |||||||||||||||||||||||
2012-09-24 23:31 | AugustoMauch | Note Added: 0052485 | ||||||||||||||||||||||||
2012-09-24 23:31 | AugustoMauch | Priority | normal => low | |||||||||||||||||||||||
2017-03-31 14:36 | alostale | Status | scheduled => acknowledged | |||||||||||||||||||||||
2017-04-10 14:34 | alostale | Assigned To | alostale => platform | |||||||||||||||||||||||
2022-02-01 08:08 | alostale | Assigned To | platform => Triage Platform Base |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|