Error No class ...

3 views
Skip to first unread message

Tazz

unread,
May 23, 2006, 8:41:14 AM5/23/06
to Google Web Toolkit
Hello,
I have a problem with HiResTimer.
When i attempted to connected to my servlet,i have a stack trace :
[ERROR] Uncaught exception escaped
java.lang.RuntimeException: Deferred binding failed for
'com.lafarge.client.MyService' (did you forget to inherit a required
module?)
at
com.google.gwt.dev.shell.JavaScriptHost.rebindAndCreate(JavaScriptHost.java:148)
at com.google.gwt.dev.shell.ShellGWT.create(ShellGWT.java:10)
at com.google.gwt.core.client.GWT.create(transient source for
com.google.gwt.core.client.GWT:20)
at com.lafarge.client.mmp$1.onClick(mmp.java:35)
at
com.google.gwt.user.client.ui.ClickListenerCollection.fireClick(ClickListenerCollection.java:36)
at
com.google.gwt.user.client.ui.FocusWidget.onBrowserEvent(FocusWidget.java:84)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:902)
at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:886)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:854)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:62)
Caused by: java.lang.NoClassDefFoundError:
com/google/gwt/dev/util/HiResTimer
at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:22)
at
com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind(StandardRebindOracle.java:97)
at
com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:40)
at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:133)
at
com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:89)
at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:296)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:98)
at
com.google.gwt.dev.shell.JavaScriptHost.rebindAndCreate(JavaScriptHost.java:143)
at com.google.gwt.dev.shell.ShellGWT.create(ShellGWT.java:10)
at com.google.gwt.core.client.GWT.create(transient source for
com.google.gwt.core.client.GWT:20)

Have you any idea ?

Thx

Stéphane

IamRobe...@gmail.com

unread,
May 23, 2006, 8:51:21 AM5/23/06
to Google Web Toolkit
When doing RPC I believe that the two interfaces MUST be in the
"client" package (i.e. com.lafarge.client). The class (i.e. MyService)
MUST NOT be in the "client" package.

As far as I can tell, the contract is that anything in the "client"
package will be converted to JavaScript, which limits you to a specific
set of classes.

So... move the class MyService, and I think you should be good to go.

Tazz

unread,
May 23, 2006, 8:57:41 AM5/23/06
to Google Web Toolkit
The class MyService is already into com.lafarge.client :(

Tazz

unread,
May 23, 2006, 9:07:33 AM5/23/06
to Google Web Toolkit
I have rebuild the Javascript and Now it is :
java.lang.UnsatisfiedLinkError: registerNatives

bizarre !

Alain

unread,
May 25, 2006, 6:05:27 PM5/25/06
to Google Web Toolkit
Same error here. I can't even get the samples to compile. I am using
the IBM JDK 1.4.2. The stacktrace I get is below:
[ERROR] Errors in 'file:/C:/Program
Files/gwt-windows-1.0.20/samples/DynaTable/src/com/google/gwt/sample/dynatable/client/SchoolCalendarWidget.java'
[ERROR] Internal compiler error
java.lang.UnsatisfiedLinkError: registerNatives
at sun.misc.Perf.<clinit>(Perf.java:539)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:180)
at
com.google.gwt.dev.util.HiResTimer$PerfTimerImpl.<init>(HiResTimer.java:99)
at
com.google.gwt.dev.util.HiResTimer$PerfTimerImpl.<init>(HiResTimer.java:95)
at com.google.gwt.dev.util.HiResTimer.<clinit>(HiResTimer.java:230)

at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:22)
at
com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind(StandardRebindOracle.java:97)
at
com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:40)
at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:133)
at
com.google.gwt.dev.GWTCompiler$DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(GWTCompiler.java:165)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:76)
at
com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.process(AbstractCompiler.java:126)
at
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:329)
at
com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile(AbstractCompiler.java:57)
at
com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile(AbstractCompiler.java:192)
at
com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.access$500(AbstractCompiler.java:48)
at
com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:462)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:39)
at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.<init>(JavaToJavaScriptCompiler.java:192)
at com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:472)
at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:797)
at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:380)

Exception in thread "main" java.lang.UnsatisfiedLinkError:
registerNatives
at sun.misc.Perf.<clinit>(Perf.java:539)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:180)
at
com.google.gwt.dev.util.HiResTimer$PerfTimerImpl.<init>(HiResTimer.java:99)
at
com.google.gwt.dev.util.HiResTimer$PerfTimerImpl.<init>(HiResTimer.java:95)
at com.google.gwt.dev.util.HiResTimer.<clinit>(HiResTimer.java:230)


at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:22)
at
com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind(StandardRebindOracle.java:97)
at
com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:40)
at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:133)
at

com.google.gwt.dev.GWTCompiler$DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(GWTCompiler.java:165)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:76)
at
com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.process(AbstractCompiler.java:126)
at
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:329)
at
com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile(AbstractCompiler.java:57)
at
com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile(AbstractCompiler.java:192)
at
com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.access$500(AbstractCompiler.java:48)
at
com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:462)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:39)
at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.<init>(JavaToJavaScriptCompiler.java:192)
at com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:472)
at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:797)
at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:380)

Reply all
Reply to author
Forward
0 new messages