Gwt 2.8.2 compilation error

481 views
Skip to first unread message

medasani kesavi

unread,
Jul 18, 2019, 2:41:27 AM7/18/19
to GWT Users
Hi ,

I am new to gWT. we are upgrading our application to GWT 2.8.2 and sencha GXT 4.0.3
My application is throwing below error . could you please assist 

[INFO] Compiling module au.gov.nsw.rta.cl2.CrashLink2
[INFO]    Ignored 15 units with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO] [ERROR] Unexpected internal compiler error
[INFO] java.lang.NullPointerException
[INFO]  at com.google.gwt.dev.javac.asm.ResolveTypeSignature.mergeTypeParamBounds(ResolveTypeSignature.java:221)
[INFO]  at com.google.gwt.dev.javac.asm.ResolveTypeSignature.resolveGeneric(ResolveTypeSignature.java:291)
[INFO]  at com.google.gwt.dev.javac.asm.ResolveTypeSignature.resolveGeneric(ResolveTypeSignature.java:288)
[INFO]  at com.google.gwt.dev.javac.asm.ResolveTypeSignature.resolveGenerics(ResolveTypeSignature.java:330)
[INFO]  at com.google.gwt.dev.javac.asm.ResolveTypeSignature.visitEnd(ResolveTypeSignature.java:146)
[INFO]  at org.objectweb.asm.signature.SignatureReader.a(Unknown Source)
[INFO]  at org.objectweb.asm.signature.SignatureReader.a(Unknown Source)
[INFO]  at org.objectweb.asm.signature.SignatureReader.accept(Unknown Source)
[INFO]  at com.google.gwt.dev.javac.CompilationUnitTypeOracleUpdater.resolveMethod(CompilationUnitTypeOracleUpdater.java:1151)
[INFO]  at com.google.gwt.dev.javac.CompilationUnitTypeOracleUpdater.resolveClass(CompilationUnitTypeOracleUpdater.java:944)
[INFO]  at com.google.gwt.dev.javac.CompilationUnitTypeOracleUpdater.access$700(CompilationUnitTypeOracleUpdater.java:82)
[INFO]  at com.google.gwt.dev.javac.CompilationUnitTypeOracleUpdater$CompilationUnitTypeOracleResolver.resolveClass(CompilationUnitTypeOracleUpdater.java:187)
[INFO]  at com.google.gwt.dev.javac.asm.ResolveTypeSignature.visitClassType(ResolveTypeSignature.java:133)
[INFO]  at org.objectweb.asm.signature.SignatureReader.a(Unknown Source)
[INFO]  at org.objectweb.asm.signature.SignatureReader.accept(Unknown Source)
[INFO]  at com.google.gwt.dev.javac.CompilationUnitTypeOracleUpdater.resolveClass(CompilationUnitTypeOracleUpdater.java:896)
[INFO]  at com.google.gwt.dev.javac.CompilationUnitTypeOracleUpdater.access$700(CompilationUnitTypeOracleUpdater.java:82)
[INFO]  at com.google.gwt.dev.javac.CompilationUnitTypeOracleUpdater$CompilationUnitTypeOracleResolver.resolveClass(CompilationUnitTypeOracleUpdater.java:187)
[INFO]  at com.google.gwt.dev.javac.asm.ResolveTypeSignature.visitClassType(ResolveTypeSignature.java:133)
[INFO]  at org.objectweb.asm.signature.SignatureReader.a(Unknown Source)
[INFO]  at org.objectweb.asm.signature.SignatureReader.a(Unknown Source)
[INFO]  at org.objectweb.asm.signature.SignatureReader.accept(Unknown Source)
[INFO]  at com.google.gwt.dev.javac.CompilationUnitTypeOracleUpdater.resolveMethod(CompilationUnitTypeOracleUpdater.java:1151)
[INFO]  at com.google.gwt.dev.javac.CompilationUnitTypeOracleUpdater.resolveClass(CompilationUnitTypeOracleUpdater.java:944)
[INFO]  at com.google.gwt.dev.javac.CompilationUnitTypeOracleUpdater.addNewTypesDontIndex(CompilationUnitTypeOracleUpdater.java:415)
[INFO]  at com.google.gwt.dev.javac.CompilationUnitTypeOracleUpdater.addNewTypesDontIndex(CompilationUnitTypeOracleUpdater.java:493)
[INFO]  at com.google.gwt.dev.javac.CompilationUnitTypeOracleUpdater.addNewUnits(CompilationUnitTypeOracleUpdater.java:456)
[INFO]  at com.google.gwt.dev.javac.CompilationState.assimilateUnits(CompilationState.java:251)
[INFO]  at com.google.gwt.dev.javac.CompilationState.<init>(CompilationState.java:111)
[INFO]  at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:556)
[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] ------------------------------------------------------------------------

Frank Hossfeld

unread,
Jul 18, 2019, 6:11:57 AM7/18/19
to GWT Users
set logLevel=TRACE and fix the 15 compilation errors
Message has been deleted

medasani kesavi

unread,
Jul 18, 2019, 9:21:44 PM7/18/19
to GWT Users
I have some jars added as sources . 15 compilation errors are from the files from these jars however there is actually no error in that jar. 
<compileSourcesArtifacts>
<compileSourcesArtifact>xxx:jar:sources</compileSourcesArtifact>
<compileSourcesArtifact>xxx:sources</compileSourcesArtifact>
<compileSourcesArtifact>xxx:jar:sources</compileSourcesArtifact>
<compileSourcesArtifact>xxx:jar:sources</compileSourcesArtifact>
<compileSourcesArtifact>xxx:jar:sources</compileSourcesArtifact>
<compileSourcesArtifact>xxx:jar:sources</compileSourcesArtifact>
<compileSourcesArtifact>xxx:jar:sources</compileSourcesArtifact>
</compileSourcesArtifacts>

All errors are like below 

No source code is available for type org.apache.commons.beanutils.PropertyUtils; did you forget to inherit a required module?

These jars are also added as dependency with classifier as sources. So I tried removing compileSourcesArtifacts as its deprecated . However these errors still persist

Thanks
kesavi

medasani kesavi

unread,
Jul 19, 2019, 1:38:27 AM7/19/19
to GWT Users
These jars as also included as a dependency with classifier as sources

<classifier>sources</classifier>
<scope>provided</scope>

Debasish Padhy

unread,
Jul 19, 2019, 8:50:35 AM7/19/19
to GWT Users
Could you confirm if all jars included have client compatible code only ? i.e. only whitelisted classes

medasani kesavi

unread,
Jul 21, 2019, 8:12:16 AM7/21/19
to GWT Users
To my knowledge yes they are client compatible and whitelisted classes only

Is there anything I should specifically check

Frank Hossfeld

unread,
Jul 21, 2019, 9:46:19 AM7/21/19
to GWT Users
The compile tells you, that there is no source code for: org.apache.commons.beanutils.PropertyUtils

Common problem is:

* you did not inherit the module descriptor for the module containing PropertyUtils

Just add the module using inherits in your module descriptor. 

But I am pretty sure, PropertyUtils can not be used on the client side ... but maybe I am wrong.

medasani kesavi

unread,
Jul 30, 2019, 7:56:12 PM7/30/19
to GWT Users

Can someone suggest if below is also for same situation
Point2D is basic class from Java 8 however seems to be cannot be utilized in GWT. Anyone using MAPs functionality experiencing the same issue
 Line 23: Point2D cannot be resolved to a type
[INFO]          Line 30: Point2D cannot be resolved to a type
[INFO]          Line 30: The method normalised() from the type Line2D refers to the missing type Double
[INFO]          Line 29: Point2D cannot be resolved to a type
[INFO]          Line 3: The import java.awt cannot be resolved
[INFO]          Line 25: Point2D cannot be resolved to a type
[INFO]          Line 29: The method normalised() from the type Line2D refers to the missing type Double

Jim Douglas

unread,
Jul 30, 2019, 10:23:53 PM7/30/19
to GWT Users
GWT only emulates a subset of Java classes in client-side code, and nothing from AWT or Swing.

medasani kesavi

unread,
Jul 31, 2019, 12:08:01 AM7/31/19
to GWT Users
Understand that GWT only emulates a subset of Java classes in client-side code, and nothing from AWT or Swing.

However ours is an existing GWT(2.4) and GXT(2.2.5) projects. It works well with old libraries. However when i try to migrate to GWT 2.8.2 I am facing these issues.

Is there a major change with these whitelisted classed with upgraded GWT
Reply all
Reply to author
Forward
0 new messages