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

When clicking the run and cancel button,it throws a java.lang.NullPointerException in the java console

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 7
    • deploy
    • JDK7u76b03(32bit)/Ubuntu12.04 x86/FF32.0.3

      Testsuite name: JDK Demos
      Test name(s): tests/demo/applets/AnimatorTest.html
      Product(s) tested: JDK7u76b03(32bit)
      OS/architecture: Ubuntu12.04 x86/FF32.0.3

      Error log file: http://aurora.ru.oracle.com/slot-gw/603790.ManualSubmit-1/workDir/tests/demo/applets/AnimatorTest.jtr

      Reproducible: Always
      Reproducible on machine: Evergreen-machine
      [If Sometimes] Also reproducible on machine:

      Is it a Regression: Yes
      [If Regression] Regression introduced in release/build:JDK7u76 b01(JDK7u76b01/ubuntu12.04 x86/FF32.0.3:Fail)
      Test result on the last GAed release for this train: Pass(JDK7u72b14/ubuntu12.04 x86/FF32.0.3:Pass)
      [if Fail] Test result on FCS:

      Is it a platform specific issue: Yes(JDK7u76b03/window8 x86/IE10:Pass)
      [If platform specific issue] Is it a new (previously unsupported) OS/browser/mode testing: No
      [If new configuration testing] Issue specific to execution mode or OS/browser version:

      Steps to reproduce:
       1)Install test bundle JDK7u76b03 (download from http://jre.us.oracle.com/java/re/jdk/7u76/promoted/ea/b03/bundles/linux-i586/jdk-7u76-ea-linux-i586.tar.gz) to /demo

       2)Uncompress the jdk demo (download from http://jre.us.oracle.com/java/re/jdk/7u76/promoted/ea/b03/bundles/linux-i586/jdk-7u76-ea-bin-b03-linux-i586-demos-06_oct_2014.tar.gz) to /demo/jdk1.7.0_76

       3)Do plugin soft link from jre to the FF32.0.3: ln -sf /demo/jdk1.7.0_76/jre/lib/i386/libnpjp2.so ~/.mozilla/plugins

       4)We located the applets cases on our server with apache-tomcat-7.0.42 (http://localhost:8080/demo/applets)

       5)Change the security level to medium from the java control panel.

       6)To run the demo please go to http://localhsot:8080/demo/applets/Animator and open each example<N>.html file in browser.
       
      Expected result:
      the demos should work as expected, there must be no exceptions in the Java Console log.

      Actual result:
      When clicking the run and cancel button,it throws a java.lang.NullPointerException,refer to Animator.jpg.
      The exception:
      java.lang.NullPointerException
      at java.awt.KeyboardFocusManager.getCurrentKeyboardFocusManager(KeyboardFocusManager.java:222)
      at java.awt.KeyboardFocusManager.getCurrentKeyboardFocusManager(KeyboardFocusManager.java:216)
      at java.awt.Window.isActive(Window.java:2336)
      at sun.awt.X11.XContentWindow.handleButtonPressRelease(XContentWindow.java:173)
      at sun.awt.X11.XBaseWindow.dispatchEvent(XBaseWindow.java:1092)
      at sun.awt.X11.XBaseWindow.dispatchToWindow(XBaseWindow.java:1066)
      at sun.awt.X11.XToolkit.dispatchEvent(XToolkit.java:475)
      at sun.awt.X11.XToolkit.run(XToolkit.java:584)
      at sun.awt.X11.XToolkit.run(XToolkit.java:505)
      at java.lang.Thread.run(Thread.java:745)

      The fallowing cases have the same issue:

      tests/demo/applets/ArcTestTest.html
      tests/demo/applets/BarChartTest.html
      tests/demo/applets/BlinkTest.html
      tests/demo/applets/CardTestTest.html
      tests/demo/applets/ClockTest.html
      tests/demo/applets/DitherTestTest.html
      tests/demo/applets/DrawTestTest.html
      tests/demo/applets/FractalTest.html
      tests/demo/applets/GraphLayoutTest.html
      tests/demo/applets/GraphicsTestTest.html
      tests/demo/applets/JumpingBoxTest.html
      tests/demo/applets/MoleculeViewerTest.html
      tests/demo/applets/NervousTextTest.html
      tests/demo/applets/SimpleGraphTest.html
      tests/demo/applets/SortDemoTest.html
      tests/demo/applets/SpreadSheetTest.html
      tests/demo/applets/TicTacToeTest.html
      tests/demo/applets/WireFrameTest.html
      tests/demo/jfc/SwingAppletTest.html
      tests/demo/jfc/Java2DTest.html

            mcherkas Mikhail Cherkasov (Inactive)
            michaelw Michael Wang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: