Debugging GWT client built with maven in Eclipse

220 views
Skip to first unread message

Russ

unread,
Oct 14, 2016, 1:39:14 PM10/14/16
to GWT Users
Hi - I'm new to GWT and am trying to debug  a GWT client maven project in Eclipse. I imported the maven project, without errors. When I launch the debugger by right-clicking on the project -> Debug As -> web application, I see the launch URL in the google dev mode window.  When I open the URL in a browser, the project starts to compile and I see this:

The code server is ready at http://127.0.0.1:9876/

Code server started in 4000 ms

waited 1338 ms for code server to finish

GET /recompile/fsuUI

   Job com.centurylogix.ui.FsuUI_1_0

      starting job: com.centurylogix.ui.FsuUI_1_0

      binding: user.agent=safari

      Compiling module com.centurylogix.ui.FsuUI

         [WARN] Unable to read: jar:file:/Users/rgregory/.m2/repository/com/google/gwt/gwt-user/2.6.0/gwt-user-2.6.0.jar!/com/google/gwt/core/Core.gwtar. Skipping: java.io.InvalidClassException: com.google.gwt.dev.javac.CompilationUnit; local class incompatible: stream classdesc serialVersionUID = 3631357674639647071, local class serialVersionUID = 5263131532433775474

         [WARN] Unable to read: jar:file:/Users/rgregory/.m2/repository/com/google/gwt/gwt-user/2.6.0/gwt-user-2.6.0.jar!/com/google/gwt/user/User.gwtar. Skipping: java.io.InvalidClassException: com.google.gwt.dev.javac.CompilationUnit; local class incompatible: stream classdesc serialVersionUID = 3631357674639647071, local class serialVersionUID = 5263131532433775474

         [WARN] Unable to read: jar:file:/Users/rgregory/.m2/repository/com/google/gwt/gwt-user/2.6.0/gwt-user-2.6.0.jar!/com/google/gwt/regexp/RegExp.gwtar. Skipping: java.io.InvalidClassException: com.google.gwt.dev.javac.CompilationUnit; local class incompatible: stream classdesc serialVersionUID = 3631357674639647071, local class serialVersionUID = 5263131532433775474

         [WARN] Unable to read: jar:file:/Users/rgregory/.m2/repository/com/google/gwt/gwt-user/2.6.0/gwt-user-2.6.0.jar!/com/google/web/bindery/event/Event.gwtar. Skipping: java.io.InvalidClassException: com.google.gwt.dev.javac.CompilationUnit; local class incompatible: stream classdesc serialVersionUID = 3631357674639647071, local class serialVersionUID = 5263131532433775474

         [WARN] Unable to read: jar:file:/Users/rgregory/.m2/repository/com/google/gwt/gwt-user/2.6.0/gwt-user-2.6.0.jar!/com/google/gwt/logging/Logging.gwtar. Skipping: java.io.InvalidClassException: com.google.gwt.dev.javac.CompilationUnit; local class incompatible: stream classdesc serialVersionUID = 3631357674639647071, local class serialVersionUID = 5263131532433775474

         [WARN] Unable to read: jar:file:/Users/rgregory/.m2/repository/com/google/gwt/gwt-user/2.6.0/gwt-user-2.6.0.jar!/com/google/gwt/json/JSON.gwtar. Skipping: java.io.InvalidClassException: com.google.gwt.dev.javac.CompilationUnit; local class incompatible: stream classdesc serialVersionUID = 3631357674639647071, local class serialVersionUID = 5263131532433775474

         Ignored 10 units with compilation errors in first pass.

Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.

         Tracing compile failure path for type 'com.google.gwt.lang.Array'

            [ERROR] Errors in 'com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Array.java'

               [ERROR] Line 349: Referencing method 'java.lang.Class.getClassLiteralForArray(*)': unable to resolve method in class 'java.lang.Class'

         [ERROR] Hint: Check that the type name 'com.google.gwt.lang.Array' is really what you meant

         [ERROR] Hint: Check that your classpath includes all required source roots

         [ERROR] Unexpected internal compiler error

java.lang.NullPointerException

at com.google.gwt.dev.jjs.impl.UnifyAst.addRootTypes(UnifyAst.java:735)

at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.unifyJavaAst(JavaToJavaScriptCompiler.java:1291)

at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.constructJavaAst(JavaToJavaScriptCompiler.java:1038)

at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.precompile(JavaToJavaScriptCompiler.java:954)

at com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptCompiler.precompile(MonolithicJavaToJavaScriptCompiler.java:303)

at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:38)

at com.google.gwt.dev.Precompile.precompile(Precompile.java:286)

at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)

at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)

at com.google.gwt.dev.Compiler.run(Compiler.java:206)

at com.google.gwt.dev.codeserver.Recompiler.doCompile(Recompiler.java:333)

at com.google.gwt.dev.codeserver.Recompiler.compile(Recompiler.java:161)

at com.google.gwt.dev.codeserver.Recompiler.recompile(Recompiler.java:119)

at com.google.gwt.dev.codeserver.Outbox.recompile(Outbox.java:128)

at com.google.gwt.dev.codeserver.JobRunner.recompile(JobRunner.java:81)

at com.google.gwt.dev.codeserver.JobRunner.access$100(JobRunner.java:34)

at com.google.gwt.dev.codeserver.JobRunner$2.run(JobRunner.java:73)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask.run(FutureTask.java:262)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)

      [ERROR] Compiler returned false

      [WARN] recompile failed

      [WARN] continuing to serve previous version


My maven pom.xml references GWT 2.6 and I installed the latest Eclipse GWT plugin. Any ideas?


Kirill Prazdnikov

unread,
Oct 15, 2016, 7:23:15 AM10/15/16
to GWT Users
there is no reason using 2.6
try 2.8 rc3
Reply all
Reply to author
Forward
0 new messages