GWT 2.8.2 release

3751 views
Skip to first unread message

Colin Alworth

unread,
Oct 19, 2017, 4:30:49 PM10/19/17
to GWT Users
Today we released the next version of GWT, version 2.8.2. A few quick highlights from this new release:
  • GWT can now run on Java 9 (though Java 9 features are not yet supported, coming soon!)
  • Chrome 61 change in getAbsoluteTop/Left has been fixed
  • Errors on the page reported from window.onerror are now reported to your uncaught exception handler
  • GWT now generates CSP compliant dom elements

The release notes can be found at http://www.gwtproject.org/release-notes.html#Release_Notes_2_8_2. Get yours from Maven Central, or from the zip release.


Special thanks to Max Barkley of RedHat who helped lead the release effort this time, and to all of the fantastic testers who helped us ensure that this release was ready to go.

Wesley.JUNG

unread,
Oct 19, 2017, 5:32:21 PM10/19/17
to GWT Users
Thanks

Slava Pankov

unread,
Oct 19, 2017, 7:45:41 PM10/19/17
to GWT Users
Thank you!

hy

unread,
Oct 19, 2017, 7:52:17 PM10/19/17
to GWT Users
This is great! Thank you!

Radu Matasaru

unread,
Oct 20, 2017, 11:28:21 AM10/20/17
to GWT Users
Two releases in the same year - are we getting spoiled or what!

THANK
  YOU
 VERY
 MUCH

Michael Joyner

unread,
Oct 20, 2017, 11:32:20 AM10/20/17
to google-we...@googlegroups.com, google-web-tool...@googlegroups.com, Jason Carter

Eh...

I changed my gradle build config to use 2.8.2 and started getting import annotation errors (below).

Switching back 2.8.1 and the errors go away.

The annotations are imports from:

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

> Task :compileGwt
Compiling module selenium.RestyGwtCodecTester
   Tracing compile failure path for type 'me.pubz.sitemap.SitemapIndex'
      [ERROR] Errors in 'jar:file:/home/michael/git/SHARED-POJOS/SHARED-POJOS/build/libs/SHARED-POJOS-20170711.jar!/me/pubz/sitemap/SitemapIndex.java'
         [ERROR] Line 15: XmlRootElement cannot be resolved to a type
         [ERROR] Line 45: XmlElement cannot be resolved to a type
         [ERROR] Line 22: XmlAttribute cannot be resolved to a type
         [ERROR] Line 8: The import javax.xml.bind cannot be resolved
         [ERROR] Line 32: XmlAttribute cannot be resolved to a type
         [ERROR] Line 7: The import javax.xml.bind cannot be resolved
         [ERROR] Line 9: The import javax.xml.bind cannot be resolved
         [ERROR] Line 27: XmlAttribute cannot be resolved to a type

offending code:

package me.pubz.sitemap;


import java.util.Date;
import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created by AmitG on 20-03-2014.
 */

@XmlRootElement(name = "sitemapindex")
public class SitemapIndex {

    private String xmlns;
    private List<SitemapindexEntry> sitemaps;
    private String elapsed;
   
    @XmlAttribute()
    public Date getGenerated(){
        return new java.util.Date();
    }

    @XmlAttribute()
    public String getXmlns() {
        return xmlns;
    }
   
    @XmlAttribute()
    public String getElapsed(){
        return elapsed;
    }
   
    public void setElapsed(String elapsed){
        this.elapsed=elapsed;
    }

    public void setXmlns(String xmlns) {
        this.xmlns = xmlns;
    }

    @XmlElement(name = "sitemap")
    public List<SitemapindexEntry> getSitemaps() {
        return sitemaps;
    }

    public void setSitemaps(List<SitemapindexEntry> sitemaps) {
        this.sitemaps = sitemaps;
    }
}

Slava Pankov

unread,
Oct 20, 2017, 3:53:03 PM10/20/17
to GWT Users
Try to add dependency to your pom.xml:

    <dependency>
      <groupId>javax.xml.bind</groupId>
      <artifactId>jaxb-api</artifactId>
      <version>2.3.0</version>
  <classifier>sources</classifier>
      <scope>provided</scope>
    </dependency>

Michael Joyner

unread,
Oct 23, 2017, 11:10:42 AM10/23/17
to google-we...@googlegroups.com

Thanks!

Adding gwt 'javax.xml.bind:jaxb-api:2.3.+' to our build.gradle fixed it.

--
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.

Bogdan Petridean

unread,
Oct 24, 2017, 6:19:36 AM10/24/17
to GWT Users
Thank you!

Marko

unread,
Oct 26, 2017, 3:17:06 AM10/26/17
to GWT Users
THANK YOU!

Philippe Gonze

unread,
Oct 26, 2017, 1:20:16 PM10/26/17
to GWT Users
Thank you for this new version!

We immediately tested this 2.8.1 and checked that everything works as expected in development mode.
However we experienced a strange and blocking deployment problem:
- compilation with unchanged settings (xml files, compilation settings ... exactly as with 2.8.1)
- deployment on tomcat (8.0.36)
- ... then browsing the deployed version fails, a message mentioning that no development (!) service runs (on the production server!). 

Very strange. Something in the compilation produced a development context instead of a production context.

Getting back to 2.8.1. solved the problem...

Should we update some compilation settings ?

Waiting for a solution to this problem to move again to 2.8.2.

Best regards,

Fil

Colin Alworth

unread,
Oct 26, 2017, 3:57:05 PM10/26/17
to GWT Users
Hi Philippe,

Without a full error message, it sounds like dev mode might have been turned on at some point while you were building, so the compiler has its output replaced by the dev mode version (which failed when iy couldn't find a server). Can you try again, but do a full clean build this time to be sure that only production JS makes its way into your war file?

No changes are required when moving to GWT 2.8.2 from 2.8.1, as long as you've taken a look at the release notes and are aware of those details.

Kirill Prazdnikov

unread,
Oct 27, 2017, 2:03:58 PM10/27/17
to GWT Users
We also have a new regression with 2.8.2.
We have some problems with String[] as generics argument, we will try to develop a test later.

Scott Palmer

unread,
Nov 20, 2017, 9:23:22 PM11/20/17
to GWT Users


On Thursday, 19 October 2017 16:30:49 UTC-4, Colin Alworth wrote:
Today we released the next version of GWT, version 2.8.2. A few quick highlights from this new release:
  • GWT can now run on Java 9 (though Java 9 features are not yet supported, coming soon!)
Any idea when we will be able to *build* projects with Java 9?
Currently, using the gradle plugin from https://github.com/steffenschaefer/gwt-gradle-plugin, I get an error about not finding java.lang.Object
Same build runs fine if I change the JVM to Java 8.

Cheers,

Scott

Colin Alworth

unread,
Nov 20, 2017, 9:27:00 PM11/20/17
to GWT Users
Hmm - from that description it sounds like the bug might be in the gradle plugin then, we did test compiling java8 .java files with a java9 jre. Can you confirm that is what you are trying to do, and have you tried testing building without gradle?

Scott Palmer

unread,
Nov 21, 2017, 1:49:55 AM11/21/17
to google-we...@googlegroups.com
Yes, that is what I’m trying to do. 

Thank you for your response.  It prompted me to look a bit closer and I found that I had not updated all of the parts of the project to 2.8.2.  After a few upgrades of other dependencies (e.g. guava-gwt) it appears to be working.  
Sorry for the noise.

Thanks,

Scott

Jörg Pfründer

unread,
Jan 16, 2018, 4:47:51 AM1/16/18
to GWT Users
Dear GWT-Team,

thank you that you have done a great job in the past. We have a large codebase strongly relying on GWT. However the last release has caused big pain to me:

I have tried to update from version 2.7 to 2.8.2 to get rid of my dirty bugfix hacks for chrome 61 positioning.

But I was not able to upgrade my codebase due to very many problems with dependencies in the current gwt 2.8.2 release.
BTW: I use maven to build our project:

1) gwt-dev has dependencies to different jetty versions and as far as I know, I need gwt-dev for the development mode:

Dependency convergence error for org.eclipse.jetty:jetty-io:9.2.13.v20150730 paths to dependency are:
+-myproject
  +-com.google.gwt:gwt-dev:2.8.2
    +-net.sourceforge.htmlunit:htmlunit:2.19
      +-org.eclipse.jetty.websocket:websocket-client:9.2.13.v20150730
        +-org.eclipse.jetty:jetty-io:9.2.13.v20150730
and
+-myproject
  +-com.google.gwt:gwt-dev:2.8.2
    +-net.sourceforge.htmlunit:htmlunit:2.19
      +-org.eclipse.jetty.websocket:websocket-client:9.2.13.v20150730
        +-org.eclipse.jetty.websocket:websocket-common:9.2.13.v20150730
          +-org.eclipse.jetty:jetty-io:9.2.13.v20150730
and
+-myproject
  +-com.google.gwt:gwt-dev:2.8.2
    +-org.eclipse.jetty:jetty-webapp:9.2.14.v20151106
      +-org.eclipse.jetty:jetty-servlet:9.2.14.v20151106
        +-org.eclipse.jetty:jetty-security:9.2.14.v20151106
          +-org.eclipse.jetty:jetty-server:9.2.14.v20151106
            +-org.eclipse.jetty:jetty-io:9.2.14.v20151106
and
+-myproject
  +-com.google.gwt:gwt-dev:2.8.2
    +-org.eclipse.jetty:jetty-servlets:9.2.14.v20151106
      +-org.eclipse.jetty:jetty-io:9.2.14.v20151106

Dependency convergence error for org.eclipse.jetty:jetty-util:9.2.13.v20150730 paths to dependency are:
+-myproject
  +-com.google.gwt:gwt-dev:2.8.2
    +-net.sourceforge.htmlunit:htmlunit:2.19
      +-org.eclipse.jetty.websocket:websocket-client:9.2.13.v20150730
        +-org.eclipse.jetty:jetty-util:9.2.13.v20150730
and
+-myproject
  +-com.google.gwt:gwt-dev:2.8.2
    +-net.sourceforge.htmlunit:htmlunit:2.19
      +-org.eclipse.jetty.websocket:websocket-client:9.2.13.v20150730
        +-org.eclipse.jetty.websocket:websocket-common:9.2.13.v20150730
          +-org.eclipse.jetty:jetty-util:9.2.13.v20150730
and
+-myproject
  +-com.google.gwt:gwt-dev:2.8.2
    +-org.eclipse.jetty:jetty-webapp:9.2.14.v20151106
      +-org.eclipse.jetty:jetty-xml:9.2.14.v20151106
        +-org.eclipse.jetty:jetty-util:9.2.14.v20151106
and
+-myproject
  +-com.google.gwt:gwt-dev:2.8.2
    +-org.eclipse.jetty:jetty-servlets:9.2.14.v20151106
      +-org.eclipse.jetty:jetty-http:9.2.14.v20151106
        +-org.eclipse.jetty:jetty-util:9.2.14.v20151106
and
+-myproject
  +-com.google.gwt:gwt-dev:2.8.2
    +-org.eclipse.jetty:jetty-servlets:9.2.14.v20151106
      +-org.eclipse.jetty:jetty-util:9.2.14.v20151106
and
+-myproject
  +-com.google.gwt:gwt-dev:2.8.2
    +-org.eclipse.jetty:jetty-annotations:9.2.14.v20151106
      +-org.eclipse.jetty:jetty-plus:9.2.14.v20151106
        +-org.eclipse.jetty:jetty-jndi:9.2.14.v20151106
          +-org.eclipse.jetty:jetty-util:9.2.14.v20151106

We do not allow dependencies to different versions of the same library, since it is not possible to have to versions of the same library in the classpath.
So I tried to fix the jetty dependencies to version 9.2.14.v20151106 which is really sort of ugly.

2) Then I tried to build the project.

It said:

Execution default-compile of goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile failed: A required class was missing while executing org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile: javax/lang/model/element/ModuleElement
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.apache.maven.plugins:maven-compiler-plugin:3.7.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/home/joerg/ideaprojects/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/3.7.0/maven-compiler-plugin-3.7.0.jar
[ERROR] urls[1] = file:/home/joerg/ideaprojects/.m2/repository/org/codehaus/groovy/groovy-eclipse-compiler/2.9.2-03/groovy-eclipse-compiler-2.9.2-03.jar
[ERROR] urls[2] = file:/home/joerg/ideaprojects/.m2/repository/org/apache/xbean/xbean-reflect/3.7/xbean-reflect-3.7.jar
[ERROR] urls[3] = file:/home/joerg/ideaprojects/.m2/repository/com/google/collections/google-collections/1.0/google-collections-1.0.jar
[ERROR] urls[4] = file:/home/joerg/ideaprojects/.m2/repository/org/codehaus/groovy/groovy-eclipse-batch/2.4.13-01/groovy-eclipse-batch-2.4.13-01.jar
[ERROR] urls[5] = file:/home/joerg/ideaprojects/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
[ERROR] urls[6] = file:/home/joerg/ideaprojects/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
[ERROR] urls[7] = file:/home/joerg/ideaprojects/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.4/plexus-utils-2.0.4.jar
[ERROR] urls[8] = file:/home/joerg/ideaprojects/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
[ERROR] urls[9] = file:/home/joerg/ideaprojects/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[10] = file:/home/joerg/ideaprojects/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.6/plexus-component-annotations-1.6.jar
[ERROR] urls[11] = file:/home/joerg/ideaprojects/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[12] = file:/home/joerg/ideaprojects/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[13] = file:/home/joerg/ideaprojects/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.1.0/maven-shared-utils-3.1.0.jar
[ERROR] urls[14] = file:/home/joerg/ideaprojects/.m2/repository/commons-io/commons-io/2.5/commons-io-2.5.jar
[ERROR] urls[15] = file:/home/joerg/ideaprojects/.m2/repository/org/apache/maven/shared/maven-shared-incremental/1.1/maven-shared-incremental-1.1.jar
[ERROR] urls[16] = file:/home/joerg/ideaprojects/.m2/repository/org/codehaus/plexus/plexus-java/0.9.2/plexus-java-0.9.2.jar
[ERROR] urls[17] = file:/home/joerg/ideaprojects/.m2/repository/org/ow2/asm/asm/6.0_BETA/asm-6.0_BETA.jar
[ERROR] urls[18] = file:/home/joerg/ideaprojects/.m2/repository/com/thoughtworks/qdox/qdox/2.0-M7/qdox-2.0-M7.jar
[ERROR] urls[19] = file:/home/joerg/ideaprojects/.m2/repository/org/codehaus/plexus/plexus-compiler-api/2.8.2/plexus-compiler-api-2.8.2.jar
[ERROR] urls[20] = file:/home/joerg/ideaprojects/.m2/repository/org/codehaus/plexus/plexus-compiler-manager/2.8.2/plexus-compiler-manager-2.8.2.jar
[ERROR] urls[21] = file:/home/joerg/ideaprojects/.m2/repository/org/codehaus/plexus/plexus-compiler-javac/2.8.2/plexus-compiler-javac-2.8.2.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] : javax.lang.model.element.ModuleElement
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

"javax/lang/model/element/ModuleElement" ??
Then I realized that you had said "GWT can now run on Java 9" in the release notes. You did not say: "GWT-Compiler must now run on Java 9"...

Nether the less I tried to set my JAVA_HOME to jdk 9 and error disappeared. (It caused many other problems to switch to Java 9 but that's a different story).

3) But Jetty 9.4.7 is the first jetty-project with basic java 9 support. So I had to upgrade my jetty-version.
4) Now I had to patch org.eclipse.jetty.server.Request because GWT calls a method getUri which has been renamed to getHttpURI() .
5) Then I had to patch org.eclipse.jetty.webapp.WebAppClassLoader because we have several dependencies probing for the existence of classes by trying to instancate them via reflection, which caused NullPointerExceptions in the Java 9 classloader. I had to catch them in the WebbAppClassLoader and convert them into ClassNotFoundExceptions.

The first GWT-Project has been built successfully and could be run in development mode. I thought: I'm done!

6) But then next project used GIN-Injection. And GIN does not build with Java9 due to SecurityException:

[INFO]             [ERROR] Generator 'com.google.gwt.inject.rebind.GinjectorGenerator' threw an exception while rebinding 'myInjector'
[INFO] java.lang.SecurityException: Prohibited package name: java.lang
[INFO]     at java.base/java.lang.ClassLoader.preDefineClass(ClassLoader.java:889)
[INFO]     at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1005)
[INFO]     at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:868)
[INFO]     at com.google.gwt.inject.rebind.GinBridgeClassLoader.findClass(GinBridgeClassLoader.java:160)
[INFO]     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:563)
[INFO]     at com.google.gwt.inject.rebind.GinBridgeClassLoader.loadClass(GinBridgeClassLoader.java:103)
[INFO]     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
[INFO]     at java.base/java.lang.ClassLoader.defineClass1(Native Method)
[INFO]     at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1007)
[INFO]     at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:868)
[INFO]     at com.google.gwt.inject.rebind.GinBridgeClassLoader.findClass(GinBridgeClassLoader.java:160)
[INFO]     at com.google.gwt.inject.rebind.GinBridgeClassLoader.loadClass(GinBridgeClassLoader.java:106)
[INFO]     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
[INFO]     at java.base/java.lang.ClassLoader.defineClass1(Native Method)
[INFO]     at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1007)
[INFO]     at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:868)
[INFO]     at com.google.gwt.inject.rebind.GinBridgeClassLoader.findClass(GinBridgeClassLoader.java:160)
[INFO]     at com.google.gwt.inject.rebind.GinBridgeClassLoader.loadClass(GinBridgeClassLoader.java:106)
[INFO]     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
[INFO]     at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
[INFO]     at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3110)
[INFO]     at java.base/java.lang.Class.getDeclaredConstructors(Class.java:2314)
[INFO]     at com.google.gwt.inject.rebind.resolution.ImplicitBindingCreator.getInjectConstructor(ImplicitBindingCreator.java:270)
[INFO]     at com.google.gwt.inject.rebind.resolution.ImplicitBindingCreator.createImplicitBindingForClass(ImplicitBindingCreator.java:146)
[INFO]     at com.google.gwt.inject.rebind.resolution.ImplicitBindingCreator.create(ImplicitBindingCreator.java:140)
[INFO]     at com.google.gwt.inject.rebind.resolution.DependencyExplorer.visit(DependencyExplorer.java:106)
[INFO]     at com.google.gwt.inject.rebind.resolution.DependencyExplorer.explore(DependencyExplorer.java:89)
[INFO]     at com.google.gwt.inject.rebind.resolution.BindingResolver.resolveBindings(BindingResolver.java:70)
[INFO]     at com.google.gwt.inject.rebind.GinjectorBindings.resolveBindings(GinjectorBindings.java:238)
[INFO]     at com.google.gwt.inject.rebind.BindingsProcessor.resolveAllUnresolvedBindings(BindingsProcessor.java:146)
[INFO]     at com.google.gwt.inject.rebind.BindingsProcessor.process(BindingsProcessor.java:105)
[INFO]     at com.google.gwt.inject.rebind.GinjectorGeneratorImpl.generate(GinjectorGeneratorImpl.java:79)
[INFO]     at com.google.gwt.inject.rebind.GinjectorGenerator.generate(GinjectorGenerator.java:74)
[INFO]     at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)
[INFO]     at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:745)
[INFO]     at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:103)
[INFO]     at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)
[INFO]     at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:262)
[INFO]     at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:251)
[INFO]     at com.google.gwt.dev.PrecompilationContextCreator$1.getAllPossibleRebindAnswers(PrecompilationContextCreator.java:86)
[INFO]     at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createStaticRebindExpression(UnifyAst.java:519)
[INFO]     at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createRebindExpression(UnifyAst.java:487)
[INFO]     at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.maybeHandleMagicMethodCall(UnifyAst.java:415)
[INFO]     at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.visit(UnifyAst.java:402)
[INFO]     at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:265)
[INFO]     at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
[INFO]     at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
[INFO]     at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
[INFO]     at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:118)
[INFO]     at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:76)
[INFO]     at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
[INFO]     at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
[INFO]     at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
[INFO]     at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:118)
[INFO]     at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:49)
[INFO]     at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:88)
[INFO]     at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVisitor.java:331)
[INFO]     at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:94)
[INFO]     at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
[INFO]     at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
[INFO]     at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:139)
[INFO]     at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:135)
[INFO]     at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83)
[INFO]     at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
[INFO]     at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
[INFO]     at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
[INFO]     at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:786)
[INFO]     at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:778)
[INFO]     at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
[INFO]     at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
[INFO]     at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
[INFO]     at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:1401)
[INFO]     at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:896)
[INFO]     at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.unifyJavaAst(JavaToJavaScriptCompiler.java:1410)
[INFO]     at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.constructJavaAst(JavaToJavaScriptCompiler.java:1222)
[INFO]     at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:1140)
[INFO]     at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:255)
[INFO]     at com.google.gwt.dev.Precompile.precompile(Precompile.java:255)
[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)

I'm really upset after several days of work for nothing.

So:
Please publish a release with a bugfix for Chrome 61, that does not force me to upgrade my build to java9!
Please fix your jetty-dependencies!
Please do not mix bugfix releases (Chrome 61) and new feature releases (Java 9) in the future!

Kind regards

Jörg Pfründer

Thomas Broyer

unread,
Jan 16, 2018, 5:08:25 AM1/16/18
to GWT Users
Did you use the com.google.gwt:gwt with scope=import in dependency management? This should declare all Jetty dependencies (not all of them, but all those directly depended on, just not the ones that only Jetty itself has dependencies on) and might be enough to fix your problem.

<dependencyManagement>
   
<dependencies>
     
<dependency>
       
<groupId>com.google.gwt</groupId>
       
<artifactId>gwt</artifactId>
       
<version>2.8.2</version>
       
<type>pom</type>
       
<scope>import</scope>
     
</dependency>
      …
This is the maven-compiler-plugin, not GWT. Maybe try using version 3.6 rather than 3.7 if you're not using Java 9?
I don't use Java 9; GWT does not force you to use Java 9 (quite the contrary actually).
 
Please fix your jetty-dependencies!

GWT itself depends on 9.2.14, HtmlUnit depends on 9.2.13; but our BOM (com.google.gwt:gwt) should declare all required Jetty versions. Could you try and tell us if it needs updating?
(btw, you opted into using dependency convergence enforcement rules, which is a PITA by itself; without it, all Jetty dependencies from gwt-dev and gwt-user should be resolved to 9.2.14, so there's no problem here)

Jörg Pfründer

unread,
Jan 31, 2018, 10:33:19 AM1/31/18
to google-we...@googlegroups.com
Hello Thomas,

thank you very much for your help. I'm sorry for replying so late. I could not work on the problem all the time.
I think using the compiler-plugin 3.6 and the artifact "gwt" as an import-scope-dependency were the most important advices. Before that, we had direct dependencies to gwt-user, gwt-dev and gwt-servlet, which led to those messy transitive dependencies.

One more thing, that I want to share:
During the update I had some strange error messages, that pointed me into the wrong direction:

[INFO] auto discovered modules [Entrypoint]
[INFO] Compiling module Entrypoint
[INFO] Computing all possible rebind results for 'Injector'
[INFO] Rebinding Injector
[INFO] Invoking generator com.google.gwt.inject.rebind.GinjectorGenerator
[INFO] Resolving bindings for Injector
[INFO] [ERROR] Exception while visiting Key[type=myClass, annotation=[none]]
[INFO] [ERROR] Generator 'com.google.gwt.inject.rebind.GinjectorGenerator' threw an exception while rebinding 'Injector'

[INFO] java.lang.SecurityException: Prohibited package name: java.lang

In fact it was a
try {
}
catch (JavaScriptException e) {
}

that was the problem. When I replaced JavaScriptException with the more general "Exception" everything was fine. And the error only occured during the compilation of the GIN dependency management.
Without GIN everything was fine. Really strange.
I also had problems with self defined annotations, but that were all problems that I could manage for myself.
Thank you again for your help.

Jörg Pfründer


--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/xuwG4Uewt8M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsub...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.



--
--------------------------
Bitte meine E-Mailadresse nicht an Dritte weitergeben.
Bitte keine E-Mails an mich mit großem CC-Verteiler schicken.
Geben Sie meine E-Mailadresse nicht an Facebook weiter.
Wenn Sie Facebook benutzen, löschen Sie meine E-Mails sofort nach Erhalt aus Ihrem Postfach oder Sie verzichten auf die Freunde-finden-Funktion.

Reply all
Reply to author
Forward
0 new messages