Failed to create an instance of Service via deferred binding

80 views
Skip to first unread message

Sergio del Amo Caballero

unread,
Aug 10, 2010, 2:51:16 PM8/10/10
to Google Web Toolkit
I have been trying to build a web app using mvp4g framework. I keep
getting an error about **Failing to create an instance of my Service
via deferred binding**.

My Acebankroll.gwt.xml file looks like:

<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='acebankroll'>
<inherits name='com.google.gwt.user.User'/>
<inherits name="com.google.gwt.i18n.I18N"/>
<inherits name='com.google.gwt.user.theme.standard.Standard'/>
<!-- <inherits name='com.google.gwt.gen2.picker.Picker' /> -->
<inherits name='com.mvp4g.Mvp4gModule'/>
<entry-point class='com.softamo.acebankroll.client.AceBankroll'/>
<source path='client'/>
</module>

My Entry Module looks like:

public class AceBankroll implements EntryPoint {
public void onModuleLoad() {
Mvp4gModule module = (Mvp4gModule)GWT.create( Mvp4gModule.class );
module.createAndStartModule();
RootPanel.get().add((Widget)module.getStartView());
}
}



# ERROR TRACE

Here is the complete error stake trace.

20:16:24.800 [ERROR] [acebankroll] Failed to create an instance of
'com.softamo.acebankroll.client.main.MainService' via deferred
binding
com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error
during visit.
at
com.google.gwt.dev.js.ast.JsVisitor.translateException(JsVisitor.java:
462)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
448)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:
169)
at
com.google.gwt.dev.js.ast.JsArrayLiteral.traverse(JsArrayLiteral.java:
65)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:
537)
at com.google.gwt.dev.shell.Jsni
$JsSourceGenWithJsniIdentFixup.visit(Jsni.java:224)
at
com.google.gwt.dev.js.ast.JsInvocation.traverse(JsInvocation.java:64)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at com.google.gwt.dev.shell.Jsni
$JsSourceGenWithJsniIdentFixup.visit(Jsni.java:219)
at
com.google.gwt.dev.js.ast.JsInvocation.traverse(JsInvocation.java:64)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:
379)
at com.google.gwt.dev.js.ast.JsExprStmt.traverse(JsExprStmt.java:
37)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.printJsBlock(JsToStringGenerationVisitor.java:
873)
at
com.google.gwt.dev.js.JsSourceGenerationVisitor.visit(JsSourceGenerationVisitor.java:
48)
at com.google.gwt.dev.js.ast.JsBlock.traverse(JsBlock.java:43)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.shell.Jsni.generateJavaScriptForHostedMode(Jsni.java:
253)
at
com.google.gwt.dev.shell.Jsni.getJavaScriptForHostedMode(Jsni.java:
240)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.createNativeMethods(ModuleSpaceOOPHM.java:
46)
at
com.google.gwt.dev.shell.CompilingClassLoader.injectJsniMethods(CompilingClassLoader.java:
1214)
at
com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:
1039)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
at
com.softamo.acebankroll.client.main.MainService_Proxy.<clinit>(MainService_Proxy.java:
14)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at
com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:
580)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
415)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:39)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at
com.mvp4g.client.Mvp4gModuleImpl.createAndStartModule(Mvp4gModuleImpl.java:
183)
at
com.softamo.acebankroll.client.AceBankroll.onModuleLoad(AceBankroll.java:
12)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
369)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
185)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
380)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException: null
at
com.google.gwt.dev.shell.rewrite.RewriteSingleJsoImplDispatches.getResourceName(RewriteSingleJsoImplDispatches.java:
251)
at
com.google.gwt.dev.shell.rewrite.RewriteSingleJsoImplDispatches.computeAllInterfaces(RewriteSingleJsoImplDispatches.java:
230)
at
com.google.gwt.dev.shell.rewrite.RewriteSingleJsoImplDispatches.computeAllInterfaces(RewriteSingleJsoImplDispatches.java:
245)
at
com.google.gwt.dev.shell.rewrite.RewriteSingleJsoImplDispatches.visit(RewriteSingleJsoImplDispatches.java:
168)
at com.google.gwt.dev.asm.ClassAdapter.visit(ClassAdapter.java:63)
at com.google.gwt.dev.asm.ClassAdapter.visit(ClassAdapter.java:63)
at
com.google.gwt.dev.shell.rewrite.RewriteJsniMethods.visit(RewriteJsniMethods.java:
340)
at com.google.gwt.dev.asm.ClassReader.accept(ClassReader.java:553)
at com.google.gwt.dev.asm.ClassReader.accept(ClassReader.java:420)
at
com.google.gwt.dev.shell.rewrite.HostedModeClassRewriter.rewrite(HostedModeClassRewriter.java:
244)
at
com.google.gwt.dev.shell.CompilingClassLoader.findClassBytes(CompilingClassLoader.java:
1157)
at
com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:
985)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getDeclaredMethods(Class.java:1791)
at
com.google.gwt.dev.shell.DispatchClassInfo.lazyInitTargetMembersUsingReflectionHelper(DispatchClassInfo.java:
183)
at
com.google.gwt.dev.shell.DispatchClassInfo.lazyInitTargetMembers(DispatchClassInfo.java:
146)
at
com.google.gwt.dev.shell.DispatchClassInfo.getMemberId(DispatchClassInfo.java:
55)
at com.google.gwt.dev.shell.CompilingClassLoader
$DispatchClassInfoOracle.getDispId(CompilingClassLoader.java:166)
at
com.google.gwt.dev.shell.CompilingClassLoader.getDispId(CompilingClassLoader.java:
930)
at com.google.gwt.dev.shell.Jsni
$JsSourceGenWithJsniIdentFixup.visit(Jsni.java:105)
at com.google.gwt.dev.js.ast.JsNameRef.traverse(JsNameRef.java:
120)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:
169)
at
com.google.gwt.dev.js.ast.JsArrayLiteral.traverse(JsArrayLiteral.java:
65)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:
537)
at com.google.gwt.dev.shell.Jsni
$JsSourceGenWithJsniIdentFixup.visit(Jsni.java:224)
at
com.google.gwt.dev.js.ast.JsInvocation.traverse(JsInvocation.java:64)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at com.google.gwt.dev.shell.Jsni
$JsSourceGenWithJsniIdentFixup.visit(Jsni.java:219)
at
com.google.gwt.dev.js.ast.JsInvocation.traverse(JsInvocation.java:64)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:
379)
at com.google.gwt.dev.js.ast.JsExprStmt.traverse(JsExprStmt.java:
37)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.printJsBlock(JsToStringGenerationVisitor.java:
873)
at
com.google.gwt.dev.js.JsSourceGenerationVisitor.visit(JsSourceGenerationVisitor.java:
48)
at com.google.gwt.dev.js.ast.JsBlock.traverse(JsBlock.java:43)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.shell.Jsni.generateJavaScriptForHostedMode(Jsni.java:
253)
at
com.google.gwt.dev.shell.Jsni.getJavaScriptForHostedMode(Jsni.java:
240)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.createNativeMethods(ModuleSpaceOOPHM.java:
46)
at
com.google.gwt.dev.shell.CompilingClassLoader.injectJsniMethods(CompilingClassLoader.java:
1214)
at
com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:
1039)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
at
com.softamo.acebankroll.client.main.MainService_Proxy.<clinit>(MainService_Proxy.java:
14)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at
com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:
580)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
415)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:39)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at
com.mvp4g.client.Mvp4gModuleImpl.createAndStartModule(Mvp4gModuleImpl.java:
183)
at
com.softamo.acebankroll.client.AceBankroll.onModuleLoad(AceBankroll.java:
12)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
369)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
185)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
380)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
at java.lang.Thread.run(Thread.java:619)
at java.lang.Thread.run(Thread.java:619)


20:16:24.944 [ERROR] [acebankroll] Unable to load module entry point
class com.softamo.acebankroll.client.AceBankroll (see associated
exception for details)
com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error
during visit.
at
com.google.gwt.dev.js.ast.JsVisitor.translateException(JsVisitor.java:
462)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
448)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:
734)
at com.google.gwt.dev.js.ast.JsReturn.traverse(JsReturn.java:45)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.printJsBlock(JsToStringGenerationVisitor.java:
873)
at
com.google.gwt.dev.js.JsSourceGenerationVisitor.visit(JsSourceGenerationVisitor.java:
48)
at com.google.gwt.dev.js.ast.JsBlock.traverse(JsBlock.java:43)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.shell.Jsni.generateJavaScriptForHostedMode(Jsni.java:
253)
at
com.google.gwt.dev.shell.Jsni.getJavaScriptForHostedMode(Jsni.java:
240)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.createNativeMethods(ModuleSpaceOOPHM.java:
46)
at
com.google.gwt.dev.shell.CompilingClassLoader.injectJsniMethods(CompilingClassLoader.java:
1214)
at
com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:
1039)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
at com.google.gwt.core.client.impl.Impl.exit(Impl.java:207)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
374)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
185)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
380)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException: null
at
com.google.gwt.dev.shell.rewrite.RewriteSingleJsoImplDispatches.getResourceName(RewriteSingleJsoImplDispatches.java:
251)
at
com.google.gwt.dev.shell.rewrite.RewriteSingleJsoImplDispatches.computeAllInterfaces(RewriteSingleJsoImplDispatches.java:
230)
at
com.google.gwt.dev.shell.rewrite.RewriteSingleJsoImplDispatches.computeAllInterfaces(RewriteSingleJsoImplDispatches.java:
245)
at
com.google.gwt.dev.shell.rewrite.RewriteSingleJsoImplDispatches.visit(RewriteSingleJsoImplDispatches.java:
168)
at com.google.gwt.dev.asm.ClassAdapter.visit(ClassAdapter.java:63)
at com.google.gwt.dev.asm.ClassAdapter.visit(ClassAdapter.java:63)
at
com.google.gwt.dev.shell.rewrite.RewriteJsniMethods.visit(RewriteJsniMethods.java:
340)
at com.google.gwt.dev.asm.ClassReader.accept(ClassReader.java:553)
at com.google.gwt.dev.asm.ClassReader.accept(ClassReader.java:420)
at
com.google.gwt.dev.shell.rewrite.HostedModeClassRewriter.rewrite(HostedModeClassRewriter.java:
244)
at
com.google.gwt.dev.shell.CompilingClassLoader.findClassBytes(CompilingClassLoader.java:
1157)
at
com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:
985)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at com.google.gwt.dev.shell.CompilingClassLoader
$DispatchClassInfoOracle.getClassFromBinaryName(CompilingClassLoader.java:
236)
at com.google.gwt.dev.shell.CompilingClassLoader
$DispatchClassInfoOracle.getClassFromBinaryOrSourceName(CompilingClassLoader.java:
266)
at com.google.gwt.dev.shell.CompilingClassLoader
$DispatchClassInfoOracle.getClassInfoFromClassName(CompilingClassLoader.java:
288)
at com.google.gwt.dev.shell.CompilingClassLoader
$DispatchClassInfoOracle.getDispId(CompilingClassLoader.java:146)
at
com.google.gwt.dev.shell.CompilingClassLoader.getDispId(CompilingClassLoader.java:
930)
at com.google.gwt.dev.shell.Jsni
$JsSourceGenWithJsniIdentFixup.visit(Jsni.java:105)
at com.google.gwt.dev.js.ast.JsNameRef.traverse(JsNameRef.java:
120)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:
734)
at com.google.gwt.dev.js.ast.JsReturn.traverse(JsReturn.java:45)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.js.JsToStringGenerationVisitor.printJsBlock(JsToStringGenerationVisitor.java:
873)
at
com.google.gwt.dev.js.JsSourceGenerationVisitor.visit(JsSourceGenerationVisitor.java:
48)
at com.google.gwt.dev.js.ast.JsBlock.traverse(JsBlock.java:43)
at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:
446)
at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:
421)
at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:97)
at
com.google.gwt.dev.shell.Jsni.generateJavaScriptForHostedMode(Jsni.java:
253)
at
com.google.gwt.dev.shell.Jsni.getJavaScriptForHostedMode(Jsni.java:
240)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.createNativeMethods(ModuleSpaceOOPHM.java:
46)
at
com.google.gwt.dev.shell.CompilingClassLoader.injectJsniMethods(CompilingClassLoader.java:
1214)
at
com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:
1039)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
at com.google.gwt.core.client.impl.Impl.exit(Impl.java:207)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
374)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
185)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
380)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
at java.lang.Thread.run(Thread.java:619)

# FAQ and Trials


I have read that the next list of common mistakes may cause this
error:

- The ServiceAsync interfaces have methods with return values. This is
*wrong*, all methods need to return void.

- The Service interfaces don't extend the RemoteService interface.

- The methods in the ServiceAsync interfaces miss the final argument
of AsyncCallback.

- The methods on the two interfaced, ExampleService and
ExampleServiceAsync, don't match up exactly (other than the return
value and AsyncCallback argument)

I have checked all the above conditions and did not find the problem.

## How do you insert your services in the presenters?

Here is a snippet illustrating how do I inject the service in my
presenter classes.

protected MainServiceAsync service = null;

@InjectService
public void setService( MainServiceAsync service ) {
this.service = service;
}

## Do you have the required libraries?

Yes, I have commons-configuration-1.6.jar, commons-lang-2.4.jar and
mvp4g-1.1.0.jar in my lib directory.

## Does your project compiles?

Yes, it does compile. I use Eclipse with GWT/Google App Engine plugin.
Next I post my .classpath

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" output="test-classes" path="test"/>
<classpathentry kind="con"
path="com.google.appengine.eclipse.core.GAE_CONTAINER"/>
<classpathentry kind="con"
path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="lib/commons-configuration-1.6.jar"/>
<classpathentry kind="lib" path="lib/commons-lang-2.4.jar"/>
<classpathentry kind="lib" path="lib/mvp4g-1.1.0.jar"/>
<classpathentry kind="lib" path="test/lib/emma.jar"/>
<classpathentry kind="lib" path="test/lib/junit-4.5.jar"/>
<classpathentry kind="lib" path="C:/Users/sdelamo/Programms/eclipse/
plugins/com.google.appengine.eclipse.sdkbundle.
1.3.1_1.3.1.v201002101412/appengine-java-sdk-1.3.1/lib/testing/
appengine-testing.jar"/>
<classpathentry kind="lib" path="C:/Users/sdelamo/Programms/eclipse/
plugins/com.google.appengine.eclipse.sdkbundle.
1.3.1_1.3.1.v201002101412/appengine-java-sdk-1.3.1/lib/impl/appengine-
api.jar"/>
<classpathentry kind="lib" path="C:/Users/sdelamo/Programms/eclipse/
plugins/com.google.appengine.eclipse.sdkbundle.
1.3.1_1.3.1.v201002101412/appengine-java-sdk-1.3.1/lib/impl/appengine-
api-labs.jar"/>
<classpathentry kind="lib" path="C:/Users/sdelamo/Programms/eclipse/
plugins/com.google.appengine.eclipse.sdkbundle.
1.3.1_1.3.1.v201002101412/appengine-java-sdk-1.3.1/lib/impl/appengine-
api-stubs.jar"/>
<classpathentry kind="lib" path="C:/Users/sdelamo/Programms/eclipse/
plugins/com.google.appengine.eclipse.sdkbundle.
1.3.1_1.3.1.v201002101412/appengine-java-sdk-1.3.1/lib/impl/appengine-
local-runtime.jar"/>
<classpathentry kind="output" path="war/WEB-INF/classes"/>
</classpath>

I am literally stacked. I do not know what to try. Any help is really
appreciated!

Cristian

unread,
Jun 30, 2012, 9:52:23 PM6/30/12
to Google-We...@googlegroups.com
Hi. I'm having the same error! Could you find a solution for this?

Thanks in advance!


Reply all
Reply to author
Forward
0 new messages