Problem with 2.8.0 rc1 SDM

688 views
Skip to first unread message

Alberto Mancini

unread,
Aug 11, 2016, 5:04:44 PM8/11/16
to Google Web Toolkit
Hello,
in the attempt of porting an internal project from beta1 to rc1 we faced an issue i do not understand how to debug. 

The project uses errai but my feeling is that the problem is not related to it because similar projects with errai work without problems. 

Essentially SDM fails during the first compilation and the problem seems in the generation of the source maps. 

The relevant error log follows.

[INFO] GET /recompile/it.e.u.Application
[INFO]    Job it.e.u.Application_1_0
[INFO]       starting job: it.e.u.Application_1_0
[INFO]       binding: user.agent=safari
[INFO]       Compiling module it.e.u.Application
...
[INFO]          Unification traversed 54946 fields and methods and 5256 types. 5210 are considered part of the current module and 5210 had all of their fields and methods traversed.
[INFO]          Compiling 1 permutation
[INFO]             Compiling permutation 0...
[INFO]             Linking per-type JS with 5190 new/changed types.
[INFO]             Source Maps Enabled
[INFO]          Compile of permutations succeeded
[INFO]          Compilation succeeded -- 35.850s
[INFO]       Linking into /var/folders/63/qxvnlkdn7yq2n689wbryx_vwrfzqfp/T/gwt-codeserver-2706361954965741673.tmp/it.e.u.Application/compile-2/war/it.e.u.Application; Writing extras to /var/folders/63/qxvnlkdn7yq2n689wbryx_vwrfzqfp/T/gwt-codeserver-2706361954965741673.tmp/it.e.u.Application/compile-2/extras/it.e.u.Application
[INFO]          [WARN] Can't write source map CCA06A04193EDF5B35BDE836DF1FABBE_sourceMap0.json
[INFO] java.lang.NullPointerException
[INFO] 	at com.google.gwt.thirdparty.debugging.sourcemap.SourceMapConsumerV3.parse(SourceMapConsumerV3.java:101)
[INFO] 	at com.google.gwt.thirdparty.debugging.sourcemap.SourceMapConsumerV3.parse(SourceMapConsumerV3.java:88)
[INFO] 	at com.google.gwt.thirdparty.debugging.sourcemap.SourceMapConsumerV3.parse(SourceMapConsumerV3.java:78)
[INFO] 	at com.google.gwt.thirdparty.debugging.sourcemap.SourceMapGeneratorV3.mergeMapSection(SourceMapGeneratorV3.java:311)
[INFO] 	at com.google.gwt.core.linker.SymbolMapsLinker.link(SymbolMapsLinker.java:316)
[INFO] 	at com.google.gwt.core.ext.linker.impl.StandardLinkerContext.invokeLinkForOnePermutation(StandardLinkerContext.java:384)
[INFO] 	at com.google.gwt.dev.Link.finishPermutation(Link.java:483)
[INFO] 	at com.google.gwt.dev.Link.doSimulatedShardingLink(Link.java:445)
[INFO] 	at com.google.gwt.dev.Link.link(Link.java:178)
[INFO] 	at com.google.gwt.dev.Compiler.compile(Compiler.java:244)
[INFO] 	at com.google.gwt.dev.codeserver.Recompiler.doCompile(Recompiler.java:362)
[INFO] 	at com.google.gwt.dev.codeserver.Recompiler.compile(Recompiler.java:175)
[INFO] 	at com.google.gwt.dev.codeserver.Recompiler.recompile(Recompiler.java:134)
[INFO] 	at com.google.gwt.dev.codeserver.Outbox.recompile(Outbox.java:135)
[INFO] 	at com.google.gwt.dev.codeserver.JobRunner.recompile(JobRunner.java:113)
[INFO] 	at com.google.gwt.dev.codeserver.JobRunner.access$000(JobRunner.java:37)
[INFO] 	at com.google.gwt.dev.codeserver.JobRunner$2.run(JobRunner.java:90)
[INFO] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[INFO] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[INFO] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[INFO] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[INFO] 	at java.lang.Thread.run(Thread.java:745)
[INFO]          Invoking Linker Export CompilationResult symbol maps
[INFO]             [ERROR] Failed to link
[INFO] java.lang.NullPointerException
[INFO] 	at java.util.TreeMap.put(TreeMap.java:563)
[INFO] 	at java.util.TreeSet.add(TreeSet.java:255)
[INFO] 	at com.google.gwt.thirdparty.guava.common.collect.ForwardingCollection.add(ForwardingCollection.java:84)
[INFO] 	at com.google.gwt.core.ext.linker.TypeIndexedSet.add(TypeIndexedSet.java:101)
[INFO] 	at com.google.gwt.core.ext.linker.ArtifactSet.add(ArtifactSet.java:42)
[INFO] 	at com.google.gwt.core.linker.SymbolMapsLinker.link(SymbolMapsLinker.java:330)
[INFO] 	at com.google.gwt.core.ext.linker.impl.StandardLinkerContext.invokeLinkForOnePermutation(StandardLinkerContext.java:384)
[INFO] 	at com.google.gwt.dev.Link.finishPermutation(Link.java:483)
[INFO] 	at com.google.gwt.dev.Link.doSimulatedShardingLink(Link.java:445)
[INFO] 	at com.google.gwt.dev.Link.link(Link.java:178)
[INFO] 	at com.google.gwt.dev.Compiler.compile(Compiler.java:244)
[INFO] 	at com.google.gwt.dev.codeserver.Recompiler.doCompile(Recompiler.java:362)
[INFO] 	at com.google.gwt.dev.codeserver.Recompiler.compile(Recompiler.java:175)
[INFO] 	at com.google.gwt.dev.codeserver.Recompiler.recompile(Recompiler.java:134)
[INFO] 	at com.google.gwt.dev.codeserver.Outbox.recompile(Outbox.java:135)
[INFO] 	at com.google.gwt.dev.codeserver.JobRunner.recompile(JobRunner.java:113)
[INFO] 	at com.google.gwt.dev.codeserver.JobRunner.access$000(JobRunner.java:37)
[INFO] 	at com.google.gwt.dev.codeserver.JobRunner$2.run(JobRunner.java:90)
[INFO] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[INFO] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[INFO] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[INFO] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[INFO] 	at java.lang.Thread.run(Thread.java:745)
[INFO]       [WARN] recompile failed
[INFO]       [WARN] continuing to serve previous version


Any idea on what to look for ?

Thanks,
   Alberto

Andrei Korzhevskii

unread,
Aug 13, 2016, 6:51:43 PM8/13/16
to GWT Users
Reading the stacktrace, I think the problem is in https://github.com/gwtproject/gwt/blob/master/dev/core/src/com/google/gwt/core/linker/SymbolMapsLinker.java#L282,
looks like disk cache returns null there.

Did you try to remove folder /var/folders/63/qxvnlkdn7yq2n689wbryx_vwrfzqfp/T/gwt-codeserver-2706361954965741673.tmp
and run compile again?

Alberto Mancini

unread,
Aug 16, 2016, 5:03:03 AM8/16/16
to google-we...@googlegroups.com
Unfortunately removing the temporary files does not helps. 
Today we try to investigate further and eventually we will open an issue. 

Thanks,
   A. 

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

viviana zimbone

unread,
Aug 23, 2016, 10:45:03 AM8/23/16
to GWT Users
If you have a maven dependency for gwt-dev, removing it shoudl fix the issue :)
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsub...@googlegroups.com.

James Horsley

unread,
Aug 25, 2016, 6:14:52 PM8/25/16
to GWT Users
Doesn't the CodeServer need the gwt-dev.jar though?

James Horsley

unread,
Aug 25, 2016, 6:28:58 PM8/25/16
to GWT Users
Meant to say that I'm seeing the same error after switching from beta-2 to rc2

To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.

To post to this group, send email to google-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.

James Horsley

unread,
Aug 25, 2016, 6:35:00 PM8/25/16
to GWT Users
Ah, just realized this was discussed in more detail at https://groups.google.com/forum/#!topic/google-web-toolkit/-c4RR6oLr2o I'll check my gson dep and report back
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsub...@googlegroups.com.

To post to this group, send email to google-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsub...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.

James Horsley

unread,
Aug 25, 2016, 6:44:46 PM8/25/16
to GWT Users
Updating gson to 2.6.x fixed it for me
Reply all
Reply to author
Forward
0 new messages