Falló el enlace diferido

My application is throwing:

java.lang.RuntimeException: Deferred binding failed for 'com.mygwtapp.client.gin.ClientAppGinjector' (did you forget to inherit a required module?)

on this code inside the EntryPoint:

private final ClientAppGinjector injector = GWT.create(ClientAppGinjector.class);

¿Cuál podría ser el problema?

Here's the full error Log:

java.lang.RuntimeException: Deferred binding failed for 'com.mygwtapp.client.gin.ClientAppGinjector' (did you forget to inherit a required module?)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
    at com.google.gwt.core.client.GWT.create(GWT.java:97)
    at com.mygwtapp.client.MainEntryPoint.<init>(MainEntryPoint.java:79)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:465)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:375)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:525)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
    at java.lang.Thread.run(Thread.java:722)

preguntado el 02 de mayo de 12 a las 19:05

Post the full error log, errors like this often have earlier roots. -

4 Respuestas

I've had the same error message during runtime. When I tried "Google > GWT Compile" the stack trace helped me better. My problem was that the service interface used a class that wasn't serializable.

Respondido 27 Jul 14, 21:07

In your ".gwt.xml" file, add the following line:

<inherits name="com.google.gwt.inject.Inject"/>

contestado el 02 de mayo de 12 a las 21:05

I have this inherit on the gwt.xml - quarks

@xybrek: Sure, there can be several reasons (I think you had a similar problem a while ago already stackoverflow.com/q/6555062/291741 ;-) I suggest trying if your setup works with the official GIN samples first. If not, then check the libraries (there is gin-1.5-post-gwt-2.2.jar and gin-1.5-pre-gwt-2.2.jar, make sure to use the right one). - chris lercher

Yah, but I need to use GWT 2.4.0, the Gin jars are from maven with version: 1.5.0 - quarks

I'm not sure how I can know whether which gin-1.5 jar is being fetched from maven - quarks

I manually added gin-1.5-post-gwt-2.2.jar, now I'm getting this error: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:503) - quarks

I had the same problem, I resolved lom adding the following libraries:

  • javax.inyectar.jar
  • guice-assistedinject-3.0.jar
  • aopalliance.jar

Respondido el 02 de junio de 14 a las 06:06

I had the same problem. My getter method of Boolean object called getBooleanObject() en lugar de isBooleanObject(). Clase JsonEncoderDecoder looked for method called isBooleanObject(), didn't find him, compilation failed. (gwt 2.8.0)

Respondido el 08 de junio de 17 a las 01:06

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.