JDK-8019912 : NPE when using Logger.getAnonymousLogger or LogManager.getLogManager().getLogger
  • Type: Backport
  • Backport of: JDK-8017174
  • Component: core-libs
  • Sub-Component: java.util.logging
  • Affected Version: 7u25,8
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-07-04
  • Updated: 2014-04-22
  • Resolved: 2013-07-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u60 b01Fixed 8Fixed
Comments
This is a regression from 7u25 causing applets calling Logger.getAnonymousLogger() to fail. This fix has been resolved in jdk7u-dev and jdk8. WLS and GlassFish has done some preliminary testing with the 7u engineering build with this fix and found no new regression. We're waiting for some more testing result. If the result is good, we want to request 7u40 approval.
12-07-2013

Here is a link to the webrev for seven. It's a straight hg import of the 8 changeset. http://cr.openjdk.java.net/~dfuchs/JDK-8017174/webrev-jdk7.00/
04-07-2013

There may be an ugly workaround for that issue: If the applet calls: Logger.getLogger("foo"); before accessing any other logger it should trigger the addition of the root logger in the applet's logging context. After that calls to LogManager.getLogManager().getLogger("") should no longer return null. Seems to be working on a dummy applet with 7u25.
04-07-2013