Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0031709 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | have not tried | 2015-12-15 09:38 | 2016-03-17 10:54 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | caristu | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | 3.0PR16Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | d6b9e9ab3d17 | ||||
Projection | none | ETA | none | Target Version | 3.0PR16Q2 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | alostale | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0031709: some reports are not exported using JDK 8 | |||||||
Description | When Openbravo is deployed using JDK 8, some reports cannot be exported. Note this only happens for some reports. | |||||||
Steps To Reproduce | * Using JDK 8 * Go to Trial Balance Report * Try to export to PDF - PDF is not exported - Looking at log, this stack trace can be seen: 71178 [http-nio-8080-exec-10] ERROR net.sf.jasperreports.engine.design.JRJdtCompiler - Compilation error org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException at org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader.<init>(ClassFileReader.java:298) at net.sf.jasperreports.engine.design.JRJdtCompiler$1.findType(JRJdtCompiler.java:255) at net.sf.jasperreports.engine.design.JRJdtCompiler$1.findType(JRJdtCompiler.java:192) at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:93) at org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(UnresolvedReferenceBinding.java:43) at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:84) at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveTypesFor(BinaryTypeBinding.java:750) at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.getExactMethod(BinaryTypeBinding.java:564) at org.eclipse.jdt.internal.compiler.lookup.Scope.findExactMethod(Scope.java:715) at org.eclipse.jdt.internal.compiler.lookup.Scope.getMethod(Scope.java:2097) at org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:314) at org.eclipse.jdt.internal.compiler.ast.Assignment.resolveType(Assignment.java:181) at org.eclipse.jdt.internal.compiler.ast.Expression.resolve(Expression.java:829) at org.eclipse.jdt.internal.compiler.ast.Block.resolve(Block.java:101) at org.eclipse.jdt.internal.compiler.ast.Statement.resolveCase(Statement.java:140) at org.eclipse.jdt.internal.compiler.ast.SwitchStatement.resolve(SwitchStatement.java:279) at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:418) at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:178) at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:396) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1072) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1121) at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:305) at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:512) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:329) at net.sf.jasperreports.engine.design.JRJdtCompiler.compileUnits(JRJdtCompiler.java:167) at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:201) at net.sf.jasperreports.engine.JasperCompileManager.compile(JasperCompileManager.java:354) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:614) at org.openbravo.client.application.report.ReportingUtils.getTranslatedJasperReport(ReportingUtils.java:1068) | |||||||
Proposed Solution | The problem looks to be caused by the ecj (Eclipse JDT compiler) that jasper uses. Current version included in Openbravo 3.1.1 seems not to work with JDK 8. Quick test upgrading to currently latest 4.4.2 [1] seems to solve the problem, though intensive testing should be done. [1] http://mvnrepository.com/artifact/org.eclipse.jdt.core.compiler/ecj [^] | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||||||||||||||||||||||
|
Notes | |
(0083231) hgbot (developer) 2016-01-13 12:11 |
Repository: erp/devel/pi Changeset: d6b9e9ab3d17d5ce94dc6f1a93991ba640c9ad2d Author: Carlos Aristu <carlos.aristu <at> openbravo.com> Date: Wed Jan 13 10:21:51 2016 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/d6b9e9ab3d17d5ce94dc6f1a93991ba640c9ad2d [^] fixes issue 31709: some reports are not exported using JDK 8 The library which contains the JDT compiler from the Eclipse Foundation has been upgraded to version 4.4.2. This compiler is used to compile jrxml -> jasper. Using JDK 8 with the previous library version caused an error when exporting some reports. With this upgrade reports are exported correctly using JDK 8. --- M legal/Licensing.txt A lib/runtime/jdt-compiler-4.4.2.jar R lib/runtime/jdt-compiler-3.1.1.jar --- |
(0083232) caristu (developer) 2016-01-13 12:14 edited on: 2016-01-13 12:44 |
Fix tested with: - JDK 6 - JDK 7 - JDK 8 in the different print flows: - PrintController (print Shipments, Orders, Invoices, Payments) - Based on renderJR (Trial Balance Report, Customer Statement Report) - Process Definition Reports Updated wiki page: http://wiki.openbravo.com/wiki/Openbravo_Libraries [^] More info about report compilers can be found here: http://jasperreports.sourceforge.net/sample.reference/groovy/index.html [^] |
(0083235) hgbot (developer) 2016-01-13 12:50 |
Repository: erp/devel/pi Changeset: ba2e2bd9103656835130f9de6f21184c40f5b69b Author: Carlos Aristu <carlos.aristu <at> openbravo.com> Date: Wed Jan 13 12:49:41 2016 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/ba2e2bd9103656835130f9de6f21184c40f5b69b [^] related to issue 31709: update license url --- M legal/Licensing.txt --- |
(0083242) hgbot (developer) 2016-01-13 15:30 |
Repository: erp/devel/pi Changeset: ab2107e0c40333116b7be6ae1913b2646859787d Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Wed Jan 13 15:29:32 2016 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/ab2107e0c40333116b7be6ae1913b2646859787d [^] related to bug 31709: removed non referenced CPL license text --- R legal/CPL-1.0.txt --- |
(0083292) hgbot (developer) 2016-01-14 12:26 |
Repository: erp/devel/pi Changeset: d3de567925ce7810a6c1687570ceb35349048bd5 Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Thu Jan 14 12:25:27 2016 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/d3de567925ce7810a6c1687570ceb35349048bd5 [^] related to bug 31709: added test case The original problem was reproducible whenever the jrxml contained a String.replace. Added a test case covering it. --- M src-test/src/org/openbravo/test/AllAntTaskTests.java A src-test/src/org/openbravo/test/reporting/JasperReportsCompilation.java --- |
(0083293) hgbot (developer) 2016-01-14 12:29 |
Repository: erp/devel/pi Changeset: 33cb1870df6f8afad289f0b380de4a711efff747 Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Thu Jan 14 12:28:59 2016 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/33cb1870df6f8afad289f0b380de4a711efff747 [^] related to bug 31709: fixed (c) --- M src-test/src/org/openbravo/test/reporting/JasperReportsCompilation.java --- |
(0083294) alostale (manager) 2016-01-14 12:32 |
code reviewed + tested automated test case created |
(0085033) hudsonbot (developer) 2016-03-17 10:54 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b22fb0500156 [^] Maturity status: Test |
(0085034) hudsonbot (developer) 2016-03-17 10:54 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b22fb0500156 [^] Maturity status: Test |
(0085035) hudsonbot (developer) 2016-03-17 10:54 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b22fb0500156 [^] Maturity status: Test |
(0085045) hudsonbot (developer) 2016-03-17 10:54 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b22fb0500156 [^] Maturity status: Test |
(0085046) hudsonbot (developer) 2016-03-17 10:54 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b22fb0500156 [^] Maturity status: Test |
Issue History | |||
Date Modified | Username | Field | Change |
2015-12-15 09:38 | alostale | New Issue | |
2015-12-15 09:38 | alostale | Assigned To | => platform |
2015-12-15 09:38 | alostale | Modules | => Core |
2015-12-15 09:38 | alostale | Triggers an Emergency Pack | => No |
2015-12-15 09:38 | alostale | Status | new => acknowledged |
2015-12-15 09:38 | alostale | Relationship added | related to 0031708 |
2015-12-15 09:39 | alostale | Relationship added | related to 0029566 |
2015-12-15 09:52 | alostale | Proposed Solution updated | |
2015-12-15 11:07 | alostale | Target Version | => 3.0PR16Q2 |
2015-12-23 19:49 | caristu | Assigned To | platform => caristu |
2015-12-23 19:49 | caristu | Status | acknowledged => scheduled |
2016-01-13 12:10 | caristu | Review Assigned To | => alostale |
2016-01-13 12:11 | hgbot | Checkin | |
2016-01-13 12:11 | hgbot | Note Added: 0083231 | |
2016-01-13 12:11 | hgbot | Status | scheduled => resolved |
2016-01-13 12:11 | hgbot | Resolution | open => fixed |
2016-01-13 12:11 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/d6b9e9ab3d17d5ce94dc6f1a93991ba640c9ad2d [^] |
2016-01-13 12:14 | caristu | Note Added: 0083232 | |
2016-01-13 12:15 | caristu | Note Edited: 0083232 | View Revisions |
2016-01-13 12:37 | caristu | Note Edited: 0083232 | View Revisions |
2016-01-13 12:44 | caristu | Note Edited: 0083232 | View Revisions |
2016-01-13 12:44 | caristu | Issue Monitored: alostale | |
2016-01-13 12:50 | hgbot | Checkin | |
2016-01-13 12:50 | hgbot | Note Added: 0083235 | |
2016-01-13 15:30 | hgbot | Checkin | |
2016-01-13 15:30 | hgbot | Note Added: 0083242 | |
2016-01-14 08:49 | alostale | Relationship added | related to 0031878 |
2016-01-14 12:26 | hgbot | Checkin | |
2016-01-14 12:26 | hgbot | Note Added: 0083292 | |
2016-01-14 12:29 | hgbot | Checkin | |
2016-01-14 12:29 | hgbot | Note Added: 0083293 | |
2016-01-14 12:32 | alostale | Note Added: 0083294 | |
2016-01-14 12:32 | alostale | Status | resolved => closed |
2016-01-14 12:32 | alostale | Fixed in Version | => 3.0PR16Q2 |
2016-01-14 12:40 | alostale | Issue cloned | 0031889 |
2016-01-14 12:40 | alostale | Relationship added | depends on 0031889 |
2016-03-17 10:54 | hudsonbot | Checkin | |
2016-03-17 10:54 | hudsonbot | Note Added: 0085033 | |
2016-03-17 10:54 | hudsonbot | Checkin | |
2016-03-17 10:54 | hudsonbot | Note Added: 0085034 | |
2016-03-17 10:54 | hudsonbot | Checkin | |
2016-03-17 10:54 | hudsonbot | Note Added: 0085035 | |
2016-03-17 10:54 | hudsonbot | Checkin | |
2016-03-17 10:54 | hudsonbot | Note Added: 0085045 | |
2016-03-17 10:54 | hudsonbot | Checkin | |
2016-03-17 10:54 | hudsonbot | Note Added: 0085046 |
Copyright © 2000 - 2009 MantisBT Group |