JDK-8013833 : NullPointerException with Logger.getAnonymousLogger when WebStart used
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.logging
  • Affected Version: 7u13
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_7
  • Submitted: 2013-04-04
  • Updated: 2014-11-17
  • Resolved: 2013-07-25
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version  " 1.7.0_17 " 
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Windows 7 Professional x64
Microsoft Windows [Version 6.1.7601]

EXTRA RELEVANT SYSTEM CONFIGURATION :
WebLogic Server 12.1.1.0  Wed Dec 7 08:40:57 PST 2011 1445491 >


A DESCRIPTION OF THE PROBLEM :
When using Java 7u13 and above Weblogic 12.1.1.0 fails with a NullPointerException in java.util.logging.Logger while trying to get an InitialContext if using WebStart. See the linked stack trace.

Without WebStart this works fine, and with Java versions prior to 7u13 it also works fine.

It's difficult to say whether this is an issue with Java, Weblogic or WebStart, I apologise if this is in the wrong category.

REGRESSION.  Last worked in version 7

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
InitialContext returned.
ACTUAL -
NullPointerException.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
Provider url (beanProtocol://loggedInServer):  t3://AMCDESK01:7001
Exception in thread  " AWT-EventQueue-0 "  java.lang.ExceptionInInitializerError
at weblogic.iiop.IIOPReplacer.<clinit>(IIOPReplacer.java:66)
at weblogic.jndi.WLSJNDIEnvironmentImpl.<clinit>(WLSJNDIEnvironmentImpl.java:61)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at weblogic.jndi.internal.JNDIEnvironment.getJNDIEnvironment(JNDIEnvironment.java:33)
at weblogic.jndi.Environment.<clinit>(Environment.java:89)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at com.pindarsystems.providence.util.PFinder.getInitialContext(PFinder.java:214)
at com.pindarsystems.providence.util.PFinder.getUserMgrRef(PFinder.java:242)
at com.pindarsystems.providence.admin.ui.AdminController.handleEvent(AdminController.java:533)
at com.pindarsystems.providence.admin.ui.Connection.buildGUI(Connection.java:415)
at com.pindarsystems.providence.admin.ui.Connection.validateAndSendData(Connection.java:370)
at com.pindarsystems.providence.admin.ui.Connection.actionPerformed(Connection.java:259)
at javax.swing.JTextField.fireActionPerformed(Unknown Source)
at javax.swing.JTextField.postActionEvent(Unknown Source)
at javax.swing.JTextField$NotifyAction.actionPerformed(Unknown Source)
at javax.swing.SwingUtilities.notifyAction(Unknown Source)
at javax.swing.JComponent.processKeyBinding(Unknown Source)
at javax.swing.JComponent.processKeyBindings(Unknown Source)
at javax.swing.JComponent.processKeyEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at java.util.logging.Logger.doSetParent(Unknown Source)
at java.util.logging.Logger.getAnonymousLogger(Unknown Source)
at java.util.logging.Logger.getAnonymousLogger(Unknown Source)
at weblogic.diagnostics.debug.DebugLoggerRepository.createAndInitAnonymousLogger(DebugLoggerRepository.java:92)
at weblogic.diagnostics.debug.DebugLoggerRepository.<init>(DebugLoggerRepository.java:33)
at weblogic.diagnostics.debug.DebugLogger.<clinit>(DebugLogger.java:46)
... 56 more


REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
Regress Java version to 7u11 or earlier.
Comments
This should already be fixed in recent 7u40 build. It would be interesting to verify that the issue is not reproducible with the latest 7u40.
25-07-2013

Since this happens with webstart I suspect it could be also caused by JDK-8017174
24-07-2013

JDK-8010727 might also be related to this.
20-06-2013

WLS ran testing for 7u13 before it was released but I'm not sure what WLS release it was.
02-05-2013

weblogic issue. This should be closed out and reported should work via weblogic team
02-05-2013