Thursday, August 25, 2016

Re: Problem with 2.8.0 rc1 SDM

Updating gson to 2.6.x fixed it for me

On Thursday, August 11, 2016 at 10:04:44 PM UTC+1, Alberto Mancini wrote:
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

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment