Hi Fred,
I did an experiment ripping out most of my code and replacing with the
following:
import com.allen_sauer.gwt.log.client.Log;
.........
public void onModuleLoad()
{
final RootPanel gwtPanel = RootPanel.get();
gwtPanel.setStyleName("gwt-sj-body");
rootPanel = new VerticalPanel();
gwtPanel.add(rootPanel);
rootPanel.add(new Label("Hello"));
Log.debug("hello");
}
and still get the same error:
[ERROR] Failed to create an instance of
'com.allen_sauer.gwt.log.client.DivLogger' via deferred binding
com.google.gwt.core.client.JavaScriptException: (TypeError): Object
doesn't support this property or method
number: -2146827850
description: Object doesn't support this property or method
at
com.google.gwt.user.client.impl.DOMImplStandard.initEventSystem(Native
Method)
at
com.google.gwt.user.client.impl.DOMImplMozilla.initEventSystem(DOMImplMozilla.java:
45)
at
com.google.gwt.user.client.impl.DOMImpl.maybeInitializeEventSystem(DOMImpl.java:
165)
at
com.google.gwt.user.client.impl.DOMImplStandard.sinkEvents(DOMImplStandard.java:
160)
at
com.google.gwt.user.client.impl.DOMImplMozilla.sinkEvents(DOMImplMozilla.java:
33)
at com.google.gwt.user.client.DOM.sinkEvents(DOM.java:1214)
at com.google.gwt.user.client.ui.UIObject.sinkEvents(UIObject.java:
713)
at com.google.gwt.user.client.ui.ScrollPanel.<init>(ScrollPanel.java:
34)
at com.allen_sauer.gwt.log.client.DivLogger
$ScrollPanelImpl.<init>(DivLogger.java:48)
at com.allen_sauer.gwt.log.client.DivLogger
$ScrollPanelImpl.<init>(DivLogger.java:48)
at com.allen_sauer.gwt.log.client.DivLogger.<init>(DivLogger.java:
133)
at com.google.gwt.core.client.GWT.create(GWT.java:97)
at
com.allen_sauer.gwt.log.client.impl.LogImplBase.init(LogImplBase.java:
307)
at com.allen_sauer.gwt.log.client.Log.<clinit>(Log.java:71)
at com.******.bo.client.BackOffice.onModuleLoad(BackOffice.java:61)
I do get the following sent to the hosted mode console:
Thanks
James
[ERROR] Failed to create an instance of
'com.allen_sauer.gwt.log.client.DivLogger' via deferred binding
============= gwt-log-2.5.2 =============Fri Sep 26 10:14:41 BST
2008=============
[DEBUG] hello
On Sep 25, 3:32 pm, "Fred Sauer" <[EMAIL PROTECTED]> wrote:
> This looks like your application is trying to log something very early on,
> before all the GWT infrastructure has initialized. I've seen this when I
> added some JavaScript alert()s early on during application startup. There
> may be other reasons this happens. I'd like to understand what's causing
> this so I can defend against it in gwt-log, and then prevent this from
> happening. Anything you can tell me about your application, specifically
> anything that happens before the first message is logged, which appears to
> be in RedirectTools.java:132
>
> (In a previously release I added a guard for this sort of thing. However,
> the event system initialization changed in GWT 1.5.2, and it appears you're
> able to hit this condition in a different way than with earlier GWT
> versions.)
>
> Thanks
> Fred Sauer
> [EMAIL PROTECTED]
>
> On Thu, Sep 25, 2008 at 7:47 AM, jimmyt <[EMAIL PROTECTED]> wrote:
>
> > I am using the url logging option so config as follows:
>
> > <module>
>
> > <inherits name="com.google.gwt.user.User" />
> > <inherits name="com.google.gwt.i18n.I18N" />
> > <inherits name="com.****.*****" />
> > <inherits name="com.****.*****.Widgets" />
> > <entry-point class="com.****.*****t.BackOffice" />
> > <inherits name="com.thapar.gwt.user.ui.SimpleDatePicker" />
> > <inherits name='asquare.gwt.tk.Tk' />
> > <inherits name='org.gwtiger.gwtiger'/>
> > <inherits name='com.extjs.gxt.ui.GXT'/>
>
> > <inherits name="com.allen_sauer.gwt.log.gwt-log-OFF" />
> > <extend-property name="log_level" values="DEBUG" />
>
> > <set-property name="user.agent" value="gecko1_8" />
> > <extend-property name="user.agent" values="ie6" />
> > </module>
>
> > Also we are using GWT 1.5.2
>
> > Thanks
>
> > On Sep 25, 4:28 am, "Fred Sauer" <[EMAIL PROTECTED]> wrote:
> > > What does your .gwt.xml file look like?
> > > I assume you've looked at the getting started wiki?
> > > http://code.google.com/p/gwt-log/wiki/GettingStarted
>
> > > Fred Sauer
> > > [EMAIL PROTECTED]
>
> > > On Wed, Sep 24, 2008 at 9:41 AM, jimmyt <[EMAIL PROTECTED]>
> > wrote:
>
> > > > I have just upgraded to gwt-log-2.5.2. I am now getting the following
> > > > error when starting hosted mode:
>
> > > > [ERROR] Failed to create an instance of
> > > > 'com.allen_sauer.gwt.log.client.DivLogger' via deferred binding
> > > > com.google.gwt.core.client.JavaScriptException: (TypeError): Object
> > > > doesn't support this property or method
> > > > number: -2146827850
> > > > description: Object doesn't support this property or method
> > > > at
> > > > com.google.gwt.user.client.impl.DOMImplStandard.initEventSystem(Native
> > > > Method)
> > > > at
>
> > com.google.gwt.user.client.impl.DOMImplMozilla.initEventSystem(DOMImplMozilla.java:
> > > > 45)
> > > > at
>
> > com.google.gwt.user.client.impl.DOMImpl.maybeInitializeEventSystem(DOMImpl.java:
> > > > 165)
> > > > at
>
> > com.google.gwt.user.client.impl.DOMImplStandard.sinkEvents(DOMImplStandard.java:
> > > > 160)
> > > > at
>
> > com.google.gwt.user.client.impl.DOMImplMozilla.sinkEvents(DOMImplMozilla.java:
> > > > 33)
> > > > at com.google.gwt.user.client.DOM.sinkEvents(DOM.java:1214)
> > > > at
> > com.google.gwt.user.client.ui.UIObject.sinkEvents(UIObject.java:
> > > > 713)
> > > > at
> > > > com.google.gwt.user.client.ui.ScrollPanel.<init>(ScrollPanel.java:
> > > > 34)
> > > > at com.allen_sauer.gwt.log.client.DivLogger
> > > > $ScrollPanelImpl.<init>(DivLogger.java:48)
> > > > at com.allen_sauer.gwt.log.client.DivLogger
> > > > $ScrollPanelImpl.<init>(DivLogger.java:48)
> > > > at
> > com.allen_sauer.gwt.log.client.DivLogger.<init>(DivLogger.java:
> > > > 133)
> > > > at com.google.gwt.core.client.GWT.create(GWT.java:97)
> > > > at
> > > > com.allen_sauer.gwt.log.client.impl.LogImplBase.init(LogImplBase.java:
> > > > 307)
> > > > at com.allen_sauer.gwt.log.client.Log.<clinit>(Log.java:71)
> > > > at
>
> > com.signtechno.javastreamer.client.tools.RedirectTools.getLogLevelParameter(RedirectTools.java:
> > > > 132)
> > > > at
>
> > com.signtechno.javastreamer.client.rpc.RPCDomainSelector.processOrRedirect(RPCDomainSelector.java:
> > > > 152)
> > > > at
>
> > com.signtechno.javastreamer.client.rpc.RPCDomainSelector.initializeAsynchronousMode(RPCDomainSelector.java:
> > > > 64)
> > > > at
>
> > com.signtechno.javastreamer.client.rpc.RPCMessageDispatcher.initializeAsynchronousMode(RPCMessageDispatcher.java:
> > > > 75)
> > > > at
>
> > com.signtechno.javastreamer.client.rpc.RPCMessageDispatcher.initializeAsynchronousMode(RPCMessageDispatcher.java:
> > > > 52)
> > > > at
> > com.stanjames.bo.client.BackOffice.onModuleLoad(BackOffice.java:
> > > > 60)
>
> > > > Any help is appreciated
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---