java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getErrors()

291 views
Skip to first unread message

rzorzorzo

unread,
Apr 14, 2007, 2:50:15 PM4/14/07
to Google Web Toolkit
Hello,

I am getting the following exception. Has anyone a hint on how to
avoid it ?

java.lang.NoSuchMethodError:
org.eclipse.jdt.internal.compiler.CompilationResult.getErrors()[Lorg/
eclipse/jdt/core/compiler/IProblem;
at com.google.gwt.dev.jdt.AbstractCompiler
$ICompilerRequestorImpl.acceptResult(AbstractCompiler.java:264)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
417)
at com.google.gwt.dev.jdt.AbstractCompiler
$CompilerImpl.compile(AbstractCompiler.java:76)
at com.google.gwt.dev.jdt.AbstractCompiler
$CompilerImpl.compile(AbstractCompiler.java:213)
at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.access
$600(AbstractCompiler.java:63)
at
com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:
481)
at
com.google.gwt.dev.jdt.AstCompiler.getCompilationUnitDeclarations(AstCompiler.java:
117)
at
com.google.gwt.dev.jdt.TypeOracleBuilder.build(TypeOracleBuilder.java:
264)
at com.google.gwt.dev.cfg.ModuleDef.getTypeOracle(ModuleDef.java:290)
at com.google.gwt.dev.cfg.ModuleDef.refresh(ModuleDef.java:355)
at
com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:
86)
at com.google.gwt.dev.GWTShell.doLoadModule(GWTShell.java:609)
at com.google.gwt.dev.GWTShell
$BrowserWidgetHostImpl.loadModule(GWTShell.java:242)
at com.google.gwt.dev.GWTShell
$BrowserWidgetHostImpl.createModuleSpaceHost(GWTShell.java:206)
at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java:
58)
at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java:
106)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:
274)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:
177)
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:657)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:527)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:303)

rzorzorzo

unread,
Apr 14, 2007, 3:04:08 PM4/14/07
to Google Web Toolkit
Solved the problem by changing the order in the classpath and putting
gwt-dev...jar to the top of the classpath.

Dan Morrill

unread,
Apr 17, 2007, 4:29:48 PM4/17/07
to Google-We...@googlegroups.com
Hmm, that's odd -- that shouldn't have been necessary.

Do you remember what else did you have on the classpath?  Is it possible that it included more than one version or copy of the GWT JARs?

- Dan Morrill

On 4/14/07, rzorzorzo <r...@eprognos.com> wrote:

Solved the problem by changing the order in the classpath and putting
gwt-dev...jar to the top of the classpath.

On Apr 14, 8:50 pm, "rzorzorzo" <r...@eprognos.com > wrote:
> Hello,
>
> I am getting the following exception. Has anyone a hint on how to
> avoid it ?
>
> java.lang.NoSuchMethodError:
> org.eclipse.jdt.internal.compiler.CompilationResult.getErrors ()[Lorg/

> eclipse/jdt/core/compiler/IProblem;
>         at com.google.gwt.dev.jdt.AbstractCompiler
> $ICompilerRequestorImpl.acceptResult(AbstractCompiler.java:264)
>         at org.eclipse.jdt.internal.compiler.Compiler.compile (Compiler.java:
> 417)
>         at com.google.gwt.dev.jdt.AbstractCompiler
> $CompilerImpl.compile(AbstractCompiler.java:76)
>         at com.google.gwt.dev.jdt.AbstractCompiler
> $CompilerImpl.compile( AbstractCompiler.java:213)
>         at org.eclipse.swt.widgets.Display.readAndDispatch (Display.java:2966)
Reply all
Reply to author
Forward
0 new messages