-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GWT compile errors when trying to build with GWT 2.10 or 2.11 #9919
Comments
I don't think there is enough information here to know what is happening yet - those errors look like they are caused by previous errors (in DomImpl.java, and possibly CellBasedWidgetImpl.java). This may not be related to gin - but gin is unmaintained, and hasn't gotten updates since about GWT 2.6. Can you share the full log? It may be that you should enable |
Is there something in this I can put for it to get more logging gwt {
}
|
Found what needed set
|
At a brief glance, those errors are all specific to validation - are you sure this passed a build with GWT 2.9 with the same flags? I suspect it did not, and that these errors are unrelated to the problem you are now facing (but you can probably fix them by adding the javax.validation jars to your classpath). |
I do have implementation 'javax.validation:validation-api:2.0.1.Final' but also had an exclude on it. Is 2.0.1 the needed version because I'm still hitting errors. Compiling module com.mutualofomaha.nbs.health.ui.HealthUnderwritingDashboard |
Going back to my initial comment: if Instead, set the log level to TRACE, and go over that to find out why DOMImpl is unable to compile (and probably will need to look at an issue before that, etc). |
That being said, GWT requires validation-api 1.0.0.GA. And you'll want to add the appropriate |
Note your GWT module must also inherit the Validation module --
to your module definition. |
Would these errors mean I am missing something as well? Tracing compile failure path for type 'java.util.InternalJsStringMap' |
that same error was mentioned in https://groups.google.com/g/google-web-toolkit-contributors/c/o4sRV_tNong/m/fdfMwMAUbRQJ and the cause was having both GWT 2.7 and 2.8 on the classpath |
First check your dependency tree using Next you can use Gin 2.1.2 paired with Guice 6.0.0 just fine. I also use this combination. If the project uses validation then make sure that If you feel like Java 17 somehow causes errors then you can use Gradle toolchains to tell Gradle to build your GWT project using a different java version, e.g. JDK 11, while still using JDK 17 for your spring/server project. As a last hint, sometimes 3rd party GWT libraries copy GWT SDK files to their sources and adjust the implementation. In that case they can become incompatible to newer version of GWT SDK. But that is something I would check last if the other steps above do not solve your issues. |
@dgeiselmanMOO Have you solved the compile error or at least made meaningful progress so we can close the issue? |
Yeah, I am making progress. Thank you |
Great. Closing the issue for now. |
GWT version:2.10 or 2.11
Browser (with version):Chrome
Operating System:Windows 10
Description
I have to upgrade to latest version of Spring which requires upgrading to JDK 17. I started working on moving to GWT 2.10 a while back but was having an error message about gin inject. I just kept it at 2.9 at the time and now I need to upgrade. GWT 2.10 and 2.11 give me this error when trying to run GWT Compile in Gradle 6.9.4
Computing all possible rebind results for 'com.mutualofomaha.nbs.health.ui.client.AppGinjector'
Rebinding com.mutualofomaha.nbs.health.ui.client.AppGinjector
Invoking generator com.google.gwt.inject.rebind.GinjectorGenerator
[WARN] Class jdk.internal.reflect.ConstructorAccessorImpl is used in Gin, but not available in GWT client code.
[ERROR] Errors in 'com/google/gwt/user/client/DOM.java'
[ERROR] Line 65: Rebind result 'com.google.gwt.user.client.impl.DOMImpl' cannot be abstract
[ERROR] Errors in 'com/google/gwt/dom/client/DOMImpl.java'
[ERROR] Line 23: Rebind result 'com.google.gwt.dom.client.DOMImpl' cannot be abstract
[ERROR] Errors in 'com/google/gwt/user/cellview/client/CellBasedWidgetImpl.java'
[ERROR] Line 50: Rebind result 'com.google.gwt.user.cellview.client.CellBasedWidgetImpl' cannot be abstract
The version of gin I have is com.google.gwt.inject:gin:2.1.2. Is there something I need to change to fix this error?
Steps to reproduce
Change version from 2.9 to 2.10 or 2.11 leaving implementation 'com.google.gwt.inject:gin:2.1.2' the same
Known workarounds
Links to further discussions
The text was updated successfully, but these errors were encountered: