Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] A. Platformmajorhave not tried2016-01-14 12:402016-01-15 07:36
ReporteralostaleView Statuspublic 
Assigned Tocaristu 
PriorityurgentResolutionfixedFixed in Version3.0PR16Q1
StatusclosedFix in branchFixed in SCM revision52da579a0c82
ProjectionnoneETAnoneTarget Version3.0PR16Q1
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toalostale
Web browser
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0031889: some reports are not exported using JDK 8

DescriptionWhen 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 - Compilation error
    at org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader.<init>(
    at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(
    at org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(
    at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(
    at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveTypesFor(
    at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.getExactMethod(
    at org.eclipse.jdt.internal.compiler.lookup.Scope.findExactMethod(
    at org.eclipse.jdt.internal.compiler.lookup.Scope.getMethod(
    at org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType(
    at org.eclipse.jdt.internal.compiler.ast.Assignment.resolveType(
    at org.eclipse.jdt.internal.compiler.ast.Expression.resolve(
    at org.eclipse.jdt.internal.compiler.ast.Block.resolve(
    at org.eclipse.jdt.internal.compiler.ast.Statement.resolveCase(
    at org.eclipse.jdt.internal.compiler.ast.SwitchStatement.resolve(
    at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(
    at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements(
    at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(
    at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(
    at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(
    at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(
    at org.eclipse.jdt.internal.compiler.Compiler.process(
    at org.eclipse.jdt.internal.compiler.Compiler.compile(
    at net.sf.jasperreports.engine.JasperCompileManager.compile(
    at net.sf.jasperreports.engine.JasperCompileManager.compileReport(
Proposed SolutionThe 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] [^]
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 00317093.0PR16Q2 closedcaristu some reports are not exported using JDK 8 

-  Notes
hgbot (developer)
2016-01-14 16:05

Repository: erp/backports/3.0PR16Q1
Changeset: 52da579a0c82c2da7fc12bdec918865565cf9992
Author: Carlos Aristu <carlos.aristu <at>>
Date: Thu Jan 14 16:03:01 2016 +0100
URL: [^]

fixes issue 31889: 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 legal/CPL-1.0.txt
R lib/runtime/jdt-compiler-3.1.1.jar
alostale (developer)
2016-01-15 07:36

Code reviewed + tested

- 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 => [^]
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

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker