Can anyone help me solve a problem please?
I'm upgrading from GWT 2.5.1 to 2.6.1 and am getting the following error when trying to run the codeserver of my project...
[INFO] Compiling module <SOME_MODULE>
[INFO] Validating units:
[INFO] Ignored 1 unit with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO] Computing all possible rebind results for 'com.gwtplatform.mvp.client.DesktopGinjector'
[INFO] Rebinding com.gwtplatform.mvp.client.DesktopGinjector
[INFO] Invoking generator com.google.gwt.inject.rebind.GinjectorGenerator
[INFO] [ERROR] Error injecting com.gwtplatform.mvp.client.proxy.PlaceManager: Unable to create or inherit binding: No @Inject or default constructor found for com.gwtplatform.mvp.client.proxy.PlaceManager
[INFO] Path to required node:
[INFO]
[INFO] com.gwtplatform.mvp.client.proxy.PlaceManager [com.gwtplatform.mvp.client.ClientGinjector#getPlaceManager()]
[INFO]
[...etc.]
It seems the GIN deferred binding engine is trying to look for constructors on interfaces, which of course do not exist.
Any suggestions would be appreciated. I'm using Maven. http://mojo.codehaus.org/gwt-maven-plugin/
Pete
[EDIT:] This particular error is the result of removing this line from the Gin Module config:
install(new DefaultModule(DefaultPlaceManager.class));
The line was removed to try and trace a similar looking error. Will post a better formal answer when I know more.
As mentioned at the end of the question, the error resulted from removing an important line from the module config. However, the original error I was trying to fix is all-but identical so my solution may still be useful...
For me, the code was not GWT compiling because of generics. The trouble is the code compiles fine in the IDE but the GWT compile error message gets suppressed and all that is left is '1 unit with compilation errors'.
The steps I used to find were:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With