petoendre / google-web-toolkit-incubator

Automatically exported from code.google.com/p/google-web-toolkit-incubator
0 stars 0 forks source link

Log.setDefaultLevel(Level.OFF) throws NPE in hosted mode, works fine in browser #191

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of gwt and gwt-incubator are you using?

GWT 1.5.3, Sept 08 incubator

What OS and browser are you using?

Mac OS X 10.5

Do you see this error in hosted mode, web mode, or both?

Hosted Mode only

(If possible, please include a test case that shows the problem)

In the onModuleLoad() of a class, call this one method:

//Both Log and Level are in the package com.google.gwt.libideas.logging.shared
        Log.setDefaultLevel(Level.OFF);

What is the expected output? What do you see instead?

I would expect the method to not throw an NPE at runtime.

Workaround if you have one:

        if (GWT.isScript())
        {
            Log.setDefaultLevel(Level.OFF);
        }

Original issue reported on code.google.com by reentry.espresso@gmail.com on 18 Nov 2008 at 8:32

GoogleCodeExporter commented 9 years ago
Can you check if this still happens with gen2 logging?

Original comment by ecc%google.com@gtempaccount.com on 1 Dec 2008 at 5:46

GoogleCodeExporter commented 9 years ago
I don't know what you mean by gen2 logging. Please explain and I can try it out.

Original comment by reentry.espresso@gmail.com on 1 Dec 2008 at 8:29

GoogleCodeExporter commented 9 years ago
I am referring to the com.google.gwt.gen2.logging package.

Original comment by ecc%google.com@gtempaccount.com on 11 Dec 2008 at 9:29

GoogleCodeExporter commented 9 years ago
I'm sorry, but this package is not in the Sept 04, '08 release.

Original comment by reentry.espresso@gmail.com on 11 Dec 2008 at 11:39

GoogleCodeExporter commented 9 years ago
Ah, makes sense. The 1.5 final that is to be released now has the code in it. 
Please
retest with it and if you can reproduce the bug, email me directly and I'll 
reopen
this bug report.

Original comment by ecc%google.com@gtempaccount.com on 29 Dec 2008 at 6:28

GoogleCodeExporter commented 9 years ago
This bug does not occur in the gen2 package in the 1.5 final release.

Original comment by reentry.espresso@gmail.com on 6 Jan 2009 at 12:44