Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Browser compile exception with GWT 2.8.2 - same App, same libs

    It is our standard app. Tried to move it to GWT 2.8.2 today. Using this Isomorphic release for the past month +. We have no problems compiling superdev mode in GWT 2.6.1.

    SmartClient Version: v11.1p_2018-07-19/PowerEdition Deployment (built 2018-07-19)

    We are using JRE/JAVA 1.8_0_144 version. Running on Linux CentOS 7.3 host with eclipse.photon.

    Two things have changed for us: 1) new GWT 2.8.2. 2) New CentOS 7.3 host. It is the SAME JAVA version and JRE version we have been using for months.

    Here is the exception, which does not appear to come from any part of our code but some library incompatibility. Read your FAQ on SmartGWTPower and using 2.8.2 and made suggested changes. This is a shot in the dark, maybe you have seen this before, maybe you can't help. But this is the exception - thrown when the browser compile and codeserver are getting ready:


    starting job: beer.BeerMain_1_0
    binding: user.agent=safari
    Compiling module beer.BeerMain
    Unification traversed 12002 fields and methods and 3001 types. 438 are considered part of the current module and 450 had all of their fields and methods traversed.
    Compiling 1 permutation
    Compiling permutation 0...
    Linking per-type JS with 438 new/changed types.
    Source Maps Enabled
    Compile of permutations succeeded
    Compilation succeeded -- 12.980s
    Linking into /export/BEER/users/XXXXXXX/tmpdir/gwt-codeserver-2332121380565126586.tmp/beer.BeerMain/compile-2/war/beer; Writing extras to /export/BEER/users/XXXXXX/tmpdir/gwt-codeserver-2332121380565126586.tmp/beer.BeerMain/compile-2/extras/beer
    [WARN] Can't write source map 022E7066DDF323305529205C88FF23D3_sourceMap0.json
    java.lang.NullPointerException
    at com.google.gwt.thirdparty.debugging.sourcemap.SourceMapConsumerV3.parse(SourceMapConsumerV3.java:101)
    at com.google.gwt.thirdparty.debugging.sourcemap.SourceMapConsumerV3.parse(SourceMapConsumerV3.java:88)
    at com.google.gwt.thirdparty.debugging.sourcemap.SourceMapConsumerV3.parse(SourceMapConsumerV3.java:78)
    at com.google.gwt.thirdparty.debugging.sourcemap.SourceMapGeneratorV3.mergeMapSection(SourceMapGeneratorV3.java:311)
    at com.google.gwt.core.linker.SymbolMapsLinker.link(SymbolMapsLinker.java:316)
    at com.google.gwt.core.ext.linker.impl.StandardLinkerContext.invokeLinkForOnePermutation(StandardLinkerContext.java:384)
    at com.google.gwt.dev.Link.finishPermutation(Link.java:483)
    at com.google.gwt.dev.Link.doSimulatedShardingLink(Link.java:445)
    at com.google.gwt.dev.Link.link(Link.java:178)
    at com.google.gwt.dev.Compiler.compile(Compiler.java:244)
    at com.google.gwt.dev.codeserver.Recompiler.doCompile(Recompiler.java:362)
    at com.google.gwt.dev.codeserver.Recompiler.compile(Recompiler.java:175)
    at com.google.gwt.dev.codeserver.Recompiler.recompile(Recompiler.java:134)
    at com.google.gwt.dev.codeserver.Outbox.recompile(Outbox.java:135)
    at com.google.gwt.dev.codeserver.JobRunner.recompile(JobRunner.java:113)
    at com.google.gwt.dev.codeserver.JobRunner.access$000(JobRunner.java:37)
    at com.google.gwt.dev.codeserver.JobRunner$2.run(JobRunner.java:90)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
    Invoking Linker Export CompilationResult symbol maps
    [ERROR] Failed to link
    java.lang.NullPointerException
    at java.util.TreeMap.put(TreeMap.java:563)
    at java.util.TreeSet.add(TreeSet.java:255)
    at com.google.gwt.thirdparty.guava.common.collect.ForwardingCollection.add(ForwardingCollection.java:84)
    at com.google.gwt.core.ext.linker.TypeIndexedSet.add(TypeIndexedSet.java:101)
    at com.google.gwt.core.ext.linker.ArtifactSet.add(ArtifactSet.java:42)
    at com.google.gwt.core.linker.SymbolMapsLinker.link(SymbolMapsLinker.java:330)
    at com.google.gwt.core.ext.linker.impl.StandardLinkerContext.invokeLinkForOnePermutation(StandardLinkerContext.java:384)
    at com.google.gwt.dev.Link.finishPermutation(Link.java:483)
    at com.google.gwt.dev.Link.doSimulatedShardingLink(Link.java:445)
    at com.google.gwt.dev.Link.link(Link.java:178)
    at com.google.gwt.dev.Compiler.compile(Compiler.java:244)
    at com.google.gwt.dev.codeserver.Recompiler.doCompile(Recompiler.java:362)
    at com.google.gwt.dev.codeserver.Recompiler.compile(Recompiler.java:175)
    at com.google.gwt.dev.codeserver.Recompiler.recompile(Recompiler.java:134)
    at com.google.gwt.dev.codeserver.Outbox.recompile(Outbox.java:135)
    at com.google.gwt.dev.codeserver.JobRunner.recompile(JobRunner.java:113)
    at com.google.gwt.dev.codeserver.JobRunner.access$000(JobRunner.java:37)
    at com.google.gwt.dev.codeserver.JobRunner$2.run(JobRunner.java:90)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
    [WARN] recompile failed
    [WARN] continuing to serve previous version




    #2
    A similar error is reported in the GWT Users group here.

    Comment


      #3
      Thanks. gson update 2.8.5 fixed the problem for us.

      FYI

      Comment


        #4
        Your issue is likely due to a version conflict between the gson inside GWT 2.8.x, and the gson JAR in your class path or project - GWT 2.7.x and earlier didn't include gson. You must have added the gson JAR explicitly to your project for your own purposes as it's not something that we include as a dependency in our sample projects. We do ship gson-2.3.1 in SGWT 5.1p/SC 11.p, but only in connection with Selenium 2/WebDriver, which is run in a real Java environment, not GWT.

        Looking at what's inside GWT 2.8.x, it appears to be gson-2.6.x, so switching to gson-2.6.2 as a minimum bump should work, but based on your experience it looks like using a more recent JAR (gson-2.8.x) is OK as well.

        Comment

        Working...
        X