I wanted to use Jasper Reports on my recent Vaadin 8 project.
My problem is that as I add the Jasper Reports Dependency (Jasper Version 6.4.0) to my pom.xml my Project won’t build anymore…
I get the following error:
[ERROR]
An internal compiler exception occurred
[INFO]
com.google.gwt.dev.jjs.InternalCompilerException: Error constructing Java AST
[INFO]
at com.google.gwt.dev.jjs.impl.GwtAstBuilder.translateException(GwtAstBuilder.java:3980)
[INFO]
at com.google.gwt.dev.jjs.impl.GwtAstBuilder.getInternalCompilerException(GwtAstBuilder.java:4387)
[INFO]
at com.google.gwt.dev.jjs.impl.GwtAstBuilder.createMembers(GwtAstBuilder.java:4079)
[INFO]
at com.google.gwt.dev.jjs.impl.GwtAstBuilder.processImpl(GwtAstBuilder.java:3912)
[INFO]
at com.google.gwt.dev.jjs.impl.GwtAstBuilder.process(GwtAstBuilder.java:3954)
[INFO]
at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater$UnitProcessorImpl.process(CompilationStateBuilder.java:129)
[INFO]
at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process(JdtCompiler.java:384)
[INFO]
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:470)
[INFO]
at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:1092)
[INFO]
at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:325)
[INFO]
at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:548)
[INFO]
at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:479)
[INFO]
at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:465)
[INFO]
at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:423)
[INFO]
at com.google.gwt.dev.Precompile.precompile(Precompile.java:222)
[INFO]
at com.google.gwt.dev.Precompile.precompile(Precompile.java:202)
[INFO]
at com.google.gwt.dev.Precompile.precompile(Precompile.java:143)
[INFO]
at com.google.gwt.dev.Compiler.compile(Compiler.java:204)
[INFO]
at com.google.gwt.dev.Compiler.compile(Compiler.java:155)
[INFO]
at com.google.gwt.dev.Compiler.compile(Compiler.java:144)
[INFO]
at com.google.gwt.dev.Compiler$1.run(Compiler.java:118)
[INFO]
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
[INFO]
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
[INFO]
at com.google.gwt.dev.Compiler.main(Compiler.java:125)
[INFO]
Caused by: java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.lookup.MethodBinding.isDefaultMethod()Z
[INFO]
at com.google.gwt.dev.jjs.impl.GwtAstBuilder.createMethod(GwtAstBuilder.java:4174)
[INFO]
at com.google.gwt.dev.jjs.impl.GwtAstBuilder.createMembers(GwtAstBuilder.java:4069)
[INFO]
... 21 more
[INFO]
[ERROR]
at ComponentDetailMap.java(23): final class ComponentDetailMap extends JavaScriptObject
[INFO]
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration
I guess there’s a Version conflict in the dependencies but I wasn’t able to figure out what exactly the problem is so far…
I cant’t find any old version of gwt in my referenced Libraries.
The only ones I can find are gwt-elemental-2.8.1 and gwt-user-2.8.1
Here’s my mvn dependency tree:
for Jasper Reports 6.3.1 it could be solved by adding the “org.eclipse.jdt.core.compiler” (version 4.6.1) dependency.
It might also work for Jasper Reports 6.4.0
for Jasper Reports 6.3.1 it could be solved by adding the “org.eclipse.jdt.core.compiler” (version 4.6.1) dependency.
It might also work for Jasper Reports 6.4.0