Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8172281

null pointer exception while initializing a menu

XMLWordPrintable

    • x86_64
    • windows_7

      FULL PRODUCT VERSION :
      1.8.0_111

      A DESCRIPTION OF THE PROBLEM :
      Rarely, while launching my applications, the process fails
      due to a NullPointerException down in the bowels of AWT


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      This is not readily reproducible, occurs "rarely" while building the UI
      for my application, probably as a result of incidental concurrency between
      my application and the window system machinery.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Null pointer expceptions are not "in the manua' as an expected outcome.

      ACTUAL -
      NullPointerException in the guts of AWT


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      [2016/12/28 14:00:14] log request from online.jdk11.RootApplet (216.118.130.39)
      data=[Java cpu=42% screen=1366x768 ppi=96 http://www.boardspace.net/java/v1.89/ 1.8.0_111 Oracle Corporation http://java.oracle.com/ 52.0 Windows 7 x86 6.1] (Root 1 threads)Error in RootApplet main loop
      error is : java.lang.NullPointerException
      java.lang.NullPointerException
      at java.awt.EventQueue.setCurrentEventAndMostRecentTime(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.Container.addImpl(Unknown Source)
      at java.awt.Container.add(Unknown Source)
      at javax.swing.JMenuBar.add(Unknown Source)
      at online.common.XFrame.addToMenuBar(XFrame.java:132)
      at online.common.XFrame.addToMenuBar(XFrame.java:125)
      at online.common.LPanel.addToMenuBar(LPanel.java:219)
      at online.common.LPanel.addToMenuBar(LPanel.java:211)
      at online.common.commonLobby.init(commonLobby.java:350)
      at online.common.commonRootApplet.StartLframe(commonRootApplet.java:348)
      at online.common.commonRootApplet.run(commonRootApplet.java:395)
      at java.lang.Thread.run(Unknown Source)

      REPRODUCIBILITY :
      This bug can be reproduced rarely.

            pkbalakr Prem Balakrishnan (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: