Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0031889 | Openbravo ERP | A. Platform | public | 2016-01-14 12:40 | 2016-01-15 07:36 | |||||||
Reporter | alostale | |||||||||||
Assigned To | caristu | |||||||||||
Priority | urgent | Severity | major | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | 3.0PR16Q1 | Fixed in Version | 3.0PR16Q1 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | alostale | |||||||||||
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 | 0031889: 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 [^] | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2016-01-14 12:40 | alostale | New Issue | ||||||||||
2016-01-14 12:40 | alostale | Assigned To | => caristu | |||||||||
2016-01-14 12:40 | alostale | Modules | => Core | |||||||||
2016-01-14 12:40 | alostale | Triggers an Emergency Pack | => No | |||||||||
2016-01-14 12:40 | alostale | Issue generated from | 0031709 | |||||||||
2016-01-14 12:40 | alostale | Relationship added | blocks 0031709 | |||||||||
2016-01-14 16:05 | hgbot | Checkin | ||||||||||
2016-01-14 16:05 | hgbot | Note Added: 0083304 | ||||||||||
2016-01-14 16:05 | hgbot | Status | new => resolved | |||||||||
2016-01-14 16:05 | hgbot | Resolution | open => fixed | |||||||||
2016-01-14 16:05 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR16Q1/rev/52da579a0c82c2da7fc12bdec918865565cf9992 [^] | |||||||||
2016-01-14 16:06 | caristu | Review Assigned To | => alostale | |||||||||
2016-01-14 16:07 | caristu | Issue Monitored: alostale | ||||||||||
2016-01-15 07:36 | alostale | Note Added: 0083324 | ||||||||||
2016-01-15 07:36 | alostale | Status | resolved => closed | |||||||||
2016-01-15 07:36 | alostale | Fixed in Version | => 3.0PR16Q1 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|