Can't launch GWT app: NoSuchMethodError

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Can't launch GWT app: NoSuchMethodError

Postby TomHj » Wed Oct 08, 2008 8:01 am

I upgraded my environment to GWT 1.5.2, downloaded the latest GWTDesigner 5.1.0, and started fresh with the latest Eclipse version 3.4.1.

But I can't get any GWT app to run.

I used the Designer GWT wizard to create a new entry point module. Without changing the "click me" sample code, I tried to run the app but I get "Failure to load module 'xxxxxxxx'"

The detailed error says:
[ERROR] Failure to load module 'com.rg.gwt.testing.Testing'
java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.Compiler.<init>(Lorg/eclipse/jdt/internal/compiler/env/INameEnvironment;Lorg/eclipse/jdt/internal/compiler/IErrorHandlingPolicy;Lorg/eclipse/jdt/internal/compiler/impl/CompilerOptions;Lorg/eclipse/jdt/internal/compiler/ICompilerRequestor;Lorg/eclipse/jdt/internal/compiler/IProblemFactory;)V
at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.<init>(JdtCompiler.java:93)
at com.google.gwt.dev.javac.JdtCompiler.<init>(JdtCompiler.java:231)
at com.google.gwt.dev.javac.JdtCompiler.compile(JdtCompiler.java:193)
at com.google.gwt.dev.javac.CompilationState.compile(CompilationState.java:115)
at com.google.gwt.dev.cfg.ModuleDef.updateTypeOracle(ModuleDef.java:477)
at com.google.gwt.dev.cfg.ModuleDef.getTypeOracle(ModuleDef.java:324)
at com.google.gwt.dev.GWTShell$BrowserWidgetHostImpl.createModuleSpaceHost(GWTShell.java:252)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java:72)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java:139)
at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294)
at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)

Any ideas? This is on Windows XP if that makes a difference.

thanks,
Tom
TomHj
 
Posts: 7
Joined: Fri Jan 25, 2008 2:37 pm

Re: Can't launch GWT app: NoSuchMethodError

Postby Eric Clayberg » Wed Oct 08, 2008 9:51 am

Problems running in hosted mode are generally outside the scope of what we can help you with.

A NoSuchMethodError exception would seem to imply some problem with either your Eclipse or GWT installation.

To investigate this further, we would need to see the properties of the launch process and the "ext" folder of your JRE library.

process.png
process.png (129.73 KiB) Viewed 1380 times
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Can't launch GWT app: NoSuchMethodError

Postby TomHj » Wed Oct 08, 2008 12:27 pm

I found my problem. I had rebuilt my project and inadvertently included a jasper-compiler-jdt.jar which contains a different version of the org.eclipse.jdt.internal.compiler.Compiler than what GWT is expecting. Removing that jar file cleared up the problem.

Tom
TomHj
 
Posts: 7
Joined: Fri Jan 25, 2008 2:37 pm

Re: Can't launch GWT app: NoSuchMethodError

Postby Eric Clayberg » Wed Oct 08, 2008 2:02 pm

Yep. Having a non-standard compiler in the mix would definitely account for that.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests