Ok, I figured it out: __gwtStatsEvent has to return a boolean!

The documentation, nor the example mentions it, but the RPC code (at
least the RPC code) expects it.

On Mar 16, 4:32 pm, Raziel <[email protected]> wrote:
> Hi, I'm trying to "integrate" the Lightweight Metrics System into my
> application. Which basically means I added the snippet of code shown
> in 
> here:http://code.google.com/webtoolkit/doc/latest/DevGuideLightweightMetri...
> into my host page. The problem is that when I load my application in
> dev mode I get the following exception:
>
> 16:22:07.703 [ERROR] [mymodule] Unable to load module entry point
> class com.myapp.gwt.appbuilder.client.MyModule (see associated
> exception for details)
> com.google.gwt.dev.shell.HostedModeException: Something other than a
> boolean was returned from JSNI method
> '[email protected]::stats(Lcom/
> google/gwt/core/client/JavaScriptObject;)': JS value of type
> undefined, expected boolean
>     at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:100)
>     at
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeBoolean(ModuleSpace.java:
> 181)
>     at
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeBoolean(JavaScriptHost. 
> java:
> 35)
>     at
> com.google.gwt.user.client.rpc.impl.RemoteServiceProxy.stats(RemoteServiceP 
> roxy.java)
>     at
> com.myapp.gwt.appbuilder.client.services.ApplicationRPCService_Proxy.invoke 
> (ApplicationRPCService_Proxy.java:
> 25)
>     at
> com.myapp.gwt.appbuilder.client.command.BaseInvokerRPCAsync.invoke(BaseInvo 
> kerRPCAsync.java:
> 47)
>     at
> com.myapp.gwt.appbuilder.client.command.SafeInvokerAsync.invoke(SafeInvoker 
> Async.java:
> 58)
>     at
> com.myapp.gwt.appbuilder.client.models.AppMainModel.getAvailableApplication 
> s(AppMainModel.java:
> 10)
>     at
> com.myapp.gwt.appbuilder.client.controllers.AppMainControl.createNavigation 
> View(AppMainControl.java:
> 84)
>     at
> com.myapp.gwt.appbuilder.client.controllers.AppMainControl.<init>(AppMainCo 
> ntrol.java:
> 41)
>     at
> com.myapp.gwt.appbuilder.client.MyModule.onModuleLoadDeferred(MyModule.java :
> 63)
>     at
> com.myapp.gwt.appbuilder.client.MyModule.onModuleLoad(MyModule.java:
> 45)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
> l.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(BrowserChan 
> nelServer.java:
> 380)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java :
> 222)
>     at java.lang.Thread.run(Thread.java:619)
>
> When I load the application the bootstrap, loadExternalRefs,
> moduleStartup events are called and complete, but as soon as it gets
> to the RPC it crashes.
>
> This does not happen in regular web mode.
>
> Does anybody have any idea what the issue could be?
>
> Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to