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

Java Swing Application throws NullPointerException for WindowsTableHeaderUI

XMLWordPrintable

      ADDITIONAL SYSTEM INFORMATION :
      Java 1.7 , OS - Windows 10

      A DESCRIPTION OF THE PROBLEM :
      FULL PRODUCT VERSION :
      java version "1.7.0_51"
      Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Windows 10

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      jdk1.7.0 (all versions)
      jdk1.7.0_51
      jdk1.7.0_71
      jdk1.8.0

      A DESCRIPTION OF THE PROBLEM :
      When i execute my java swing application from my desktop/eclipse, it shows opens the swing window with black color and nothing is visible over swing gui, with below exception:
      Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
      at com.sun.java.swing.plaf.windows.WindowsTableHeaderUI$XPDefaultRenderer.paint(WindowsTableHeaderUI.java:170)

      When i hold left mouse button and slide cursor over swing GUI then some text starts to render in black swing gui, but throwing above exception again on console.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
      at com.sun.java.swing.plaf.windows.WindowsTableHeaderUI$XPDefaultRenderer.paint(WindowsTableHeaderUI.java:171)
      at javax.swing.CellRendererPane.paintComponent(CellRendererPane.java:151)
      at javax.swing.plaf.basic.BasicTableHeaderUI.paintCell(BasicTableHeaderUI.java:710)
      at javax.swing.plaf.basic.BasicTableHeaderUI.paint(BasicTableHeaderUI.java:652)
      at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
      at javax.swing.JComponent.paintComponent(JComponent.java:774)
      at javax.swing.JComponent.paint(JComponent.java:1050)
      at javax.swing.JComponent.paintChildren(JComponent.java:883)
      at javax.swing.JComponent.paint(JComponent.java:1059)
      at javax.swing.JViewport.paint(JViewport.java:728)
      at javax.swing.JComponent.paintChildren(JComponent.java:883)
      at javax.swing.JComponent.paint(JComponent.java:1059)
      at javax.swing.JComponent.paintChildren(JComponent.java:883)
      at javax.swing.JComponent.paint(JComponent.java:1059)
      at javax.swing.JComponent.paintChildren(JComponent.java:883)
      at javax.swing.JComponent.paint(JComponent.java:1059)
      at javax.swing.JComponent.paintChildren(JComponent.java:883)
      at javax.swing.JComponent.paint(JComponent.java:1059)
      at javax.swing.JComponent.paintChildren(JComponent.java:883)
      at javax.swing.JComponent.paint(JComponent.java:1059)
      at javax.swing.JComponent.paintChildren(JComponent.java:883)
      at javax.swing.JComponent.paint(JComponent.java:1059)
      at javax.swing.JComponent.paintChildren(JComponent.java:883)
      at javax.swing.JComponent.paint(JComponent.java:1059)
      at javax.swing.JComponent.paintChildren(JComponent.java:883)
      at javax.swing.JComponent.paint(JComponent.java:1059)
      at javax.swing.JLayeredPane.paint(JLayeredPane.java:586)
      at javax.swing.JComponent.paintChildren(JComponent.java:883)
      at javax.swing.JComponent.paintToOffscreen(JComponent.java:5220)
      at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1579)
      at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1502)
      at javax.swing.RepaintManager.paint(RepaintManager.java:1272)
      at javax.swing.JComponent.paint(JComponent.java:1036)
      at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
      at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:79)
      at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:116)
      at java.awt.Container.paint(Container.java:1978)
      at java.awt.Window.paint(Window.java:3906)
      at javax.swing.RepaintManager$4.run(RepaintManager.java:842)
      at javax.swing.RepaintManager$4.run(RepaintManager.java:814)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
      at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
      at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
      at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
      at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
      at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
      at java.awt.EventQueue.access$500(EventQueue.java:97)
      at java.awt.EventQueue$3.run(EventQueue.java:709)
      at java.awt.EventQueue$3.run(EventQueue.java:703)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)




      FREQUENCY : always


            pnarayanaswa Praveen Narayanaswamy
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: