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

PIT:NPE thrown by KeyFire test on Linux

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux_redhat_7.3

      Description

      On linux build of the PIT request dated 13th Sept., NPE is thrown by KeyFire test. The NPE is thrown only when the testcase is testing for GTK L&F.

      The stackTrace is as follows:
      java.lang.NullPointerException
              at sun.awt.X11.XDecoratedPeer.getBounds(XDecoratedPeer.java:534)
              at sun.awt.X11SurfaceData$X11WindowSurfaceData.getBounds(X11SurfaceData.java:491)
              at sun.java2d.SunGraphics2D.<init>(SunGraphics2D.java:234)
              at sun.awt.X11.XWindow.getGraphics(XWindow.java:264)
              at sun.awt.X11.XDecoratedPeer.getGraphics(XDecoratedPeer.java:83)
              at java.awt.Component.getGraphics(Component.java:2445)
              at java.awt.Component.getGraphics(Component.java:2433)
              at javax.swing.JComponent.getGraphics(JComponent.java:1742)
              at javax.swing.JComponent._paintImmediately(JComponent.java:4627)
              at javax.swing.JComponent.paintImmediately(JComponent.java:4450)
              at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
              at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
              at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:188)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:459)
              at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:214)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
      In paintImmediately null graphics

      Steps to reproduce:
      --------------------
      1) Unzip the attached zip file.
      2) change the dir to the extracted dir
      3) Run the following command
      <The PIT build(Linux) java home>/java -Dresultsdir=./KeyFireResults -classpath ./data:./xmlreporter.jar:. KeyFire -auto
      4)The test will not throw the error util it starts the GTK L&F testing.
      5) It is a random exception.
       
      The java version is:
      java version "swing-jcg-linux-02-2003-09-12-int.tiger"
      Java(TM) 2 Runtime Environment, Standard Edition (build swing-jcg-linux-02-2003-09-12-int.tiger)
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b19, mixed mode)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              mjoshisunw Mayank Joshi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: