I think you need to upgrade your JDK for now

 http://code.google.com/p/google-web-toolkit/issues/detail?id=4254


On Tue, Mar 23, 2010 at 11:10 PM, KC <[email protected]> wrote:

> Hi all,
>
> I tried to use the "Log.setUncaughtExceptionHandler();" inside
> onModuleLoad() in my EntryPoint.  I already wipe out all constructor,
> initialize codes etc in the EntryPoint and put the following into my
> module .gwt.xml file:
>
> <inherits name="com.allen_sauer.gwt.log.gwt-log-DEBUG" />
>   <set-property name="log_DivLogger" value="DISABLED" />
>   <set-property name="log_WindowLogger" value="ENABLED" />
>
> Once I run it, I got the following exception:
>
> java.lang.RuntimeException: Deferred binding failed for
> 'com.allen_sauer.gwt.log.client.impl.LogImpl' (did you forget to
> inherit a required module?)
>    at
> com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:43)
>    at com.google.gwt.core.client.GWT.create(GWT.java:98)
>    at com.allen_sauer.gwt.log.client.Log.<clinit>(Log.java:70)
>    at
>
> com.oracle.consultant.ps.query.gui.client.QueryGui.onModuleLoad(QueryGui.java:
> 29)
>    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:585)
>    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:595)
> Caused by: java.lang.VerifyError: (class: com/google/gwt/core/client/
> Scheduler, method: <init> signature: ()V) Illegal constant pool index
>    at
> com.google.gwt.dom.client.StyleInjector.schedule(StyleInjector.java:
> 389)
>    at
> com.google.gwt.dom.client.StyleInjector.inject(StyleInjector.java:382)
>    at
> com.google.gwt.dom.client.StyleInjector.injectAtStart(StyleInjector.java:
> 272)
>    at
> com.google.gwt.dom.client.StyleInjector.injectAtStart(StyleInjector.java:
> 257)
>    at
> com.allen_sauer.gwt.log.client.impl.LogImplBase.<clinit>(LogImplBase.java:
> 61)
>    at java.lang.Class.forName0(Native Method)
>    at java.lang.Class.forName(Class.java:242)
>    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.allen_sauer.gwt.log.client.Log.<clinit>(Log.java:70)
>    at
>
> com.oracle.consultant.ps.query.gui.client.QueryGui.onModuleLoad(QueryGui.java:
> 29)
>    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:585)
>    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:595)
>
> However, if I don't use the "Log.setUncaughtExceptionHandler()" in the
> onModuleLoad() but use other gwt-log APIs like log.debug() in
> somewhere else in my codes, it works fine.
>
> In fact, not only Log.setUncaughtExceptionHandler()", other gwt-log
> API calls within onModuleLoad() will cause the problem.
>
> Any idea?
>
> Here are the environment details:
> Host mode: launch from Eclipse
> GWT SDK 2.0.3
> gwt-log 3.0.1
> Browser: Chrome 4.1.249 (Win XP)
>
> -- KC
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "gwt-log" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<gwt-log%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/gwt-log?hl=en.
>
>


-- 
Fred Sauer
Developer Advocate
Google Inc.
1600 Amphitheatre Parkway
Mountain View, CA 94043
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"gwt-log" 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/gwt-log?hl=en.

Reply via email to