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

Regression-test java/awt/Frame/MenuCrash/MenuCrash.html fails with NPE

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description



      Name: mmR10223 Date: 04/28/2004


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b48, JDK1.4.2-b28
      Testbase : Regression-test
      Platform[s] : all
      switch/Mode : -client
      Falling test[s]:
              java/awt/Frame/MenuCrash/MenuCrash.html

      This test fails with NPE on all platforms:

      1. Please, run the script as specified below.
      2. Select any one of these frames.
      3. Press the "Remove menu" button twice.


      Test source location:
      =====================
      /java/re/jdk/1.5.0/promoted/all/b48/ws/j2se/test/java/awt/Frame/MenuCrash/MenuCrash.html

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b48/regtest/win32/Windows_XP_Pro_linux-16/workDir/test-manual/java/awt/Frame/MenuCrash/MenuCrash.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its variables)
       
      --- script start ---
      #!/bin/sh
      RESULT_DIR=`pwd`
      WORK_DIR=$RESULT_DIR/workDir/test
      REPORT_DIR=$RESULT_DIR/reportDir

      #Paths in SWAN
      #
      # Note: to run the script on Windows you need /net mapped on N: drive (net use N: \\sm-usca<your building code>-01\net)
      # If you're outside of SCA campus please consult with http://orbit.central/iwork/tools/filemgr/windows_filemgr.html
      # to get a list of SAMBA servers nearest to your location
      #
      #net use N: \\sm-usca14-01\net
      #

      JT_HOME="n:/koori.sfbay/onestop/jct-tools/3.1.2/archive/fcs/binaries"
      JEMMY_JAR="n:/jdk.sfbay/export/jpse04/Jemmy/jemmy.jar"
      JAVA_HOME="n:/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b48/binaries/windows-i586"
      TEST_BASE_PATH="n:/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b48/ws/j2se/test"

      TESTVMOPTS="-client"
      CLASSPATH="$JT_HOME/classes;$JT_HOME/lib/javatest.jar;$JT_HOME/lib/jtreg.jar"

      TEST="java/awt/Frame/MenuCrash/MenuCrash.html"

      mkdir -p $WORK_DIR/scratch 2>&1
      mkdir -p $WORK_DIR/jtData 2>&1
      mkdir -p $REPORT_DIR 2>&1

      #rm $WORK_DIR/jtData/ResultCache.jtw 2>&1

      cd $WORK_DIR/scratch

      $JAVA_HOME/bin/java -showversion -server -cp $CLASSPATH -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,windir=$windir,SystemRoot=$SystemRoot,PATH=${SHELL%/*},CPAPPEND=$JEMMY_JAR,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DlocalHost=`uname -n` -Dprogram=jtreg com.sun.javatest.regtest.Main -v default -batch -params -keywords manual -w "$WORK_DIR" -r "$REPORT_DIR" -t "$TEST_BASE_PATH" "$TEST_BASE_PATH/$TEST"

      --- script end ---
      Script output:
      ==============
      Test output (jtr part):
      =======================
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:applet
      ----------messages:(3/136)----------
      command: applet MenuCrash.html
      reason: User specified action: run applet/manual=yesno MenuCrash.html
      elapsed time (seconds): 30.654
      ----------System.out:(4/390)----------
      MenuFrame[frame0,0,0,367x60,hidden,layout=java.awt.FlowLayout,title=Frame 1,resizable,normal]
      MenuFrame[frame1,0,0,367x60,hidden,layout=java.awt.FlowLayout,title=Frame 2,resizable,normal]
      MenuFrame[frame0,100,100,300x200,hidden,layout=java.awt.FlowLayout,title=Frame 1,resizable,normal]
      MenuFrame[frame1,125,125,300x200,hidden,layout=java.awt.FlowLayout,title=Frame 2,resizable,normal]
      ----------System.err:(14/888)----------
      java.lang.NullPointerException
      at java.awt.Frame.remove(Frame.java:859)
      at MenuFrame$1.actionPerformed(MenuCrash.java:52)
      at java.awt.Button.processActionEvent(Button.java:388)
      at java.awt.Button.processEvent(Button.java:356)
      at java.awt.Component.dispatchEventImpl(Component.java:3933)
      at java.awt.Component.dispatchEvent(Component.java:3781)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
      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)
      STATUS:Failed.Applet thread threw exception: java.lang.NullPointerException
      result: Failed. Execution failed: Applet thread threw exception: java.lang.NullPointerException


      test result: Failed. Execution failed: Applet thread threw exception: java.lang.NullPointerException

      Specific machine info:
      ======================
      Hostname: linux-16
      OS: Windows XP Pro

      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dav Andrei Dmitriev (Inactive)
                Reporter:
                mmvsunw Mmv Mmv (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: