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

InternalConfirmDialog in JOptionPane fails with java.lang.NullPointerException

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b29
    • CPU:
      x86
    • OS:
      linux
    • Verification:
      Verified

      Description



      Internal Confirm, Input, Message, Option Dialog in JOptionPane test fails with
      java.lang.NullPointerException on Linux, this test failure started to be seen from Tiger b19 on Linux. I confirmed this behavior on RHAS2.1 and TurboLinux
      workstation8.

      Reproduce step:
      1. launch JOptionPaneTest in GlobalSuite
         run_gs.sh i18n_tiger_ws/i18n/src/GS/font-render/swing/three/JOptionPaneTest.java

      2. Select one "dialog type" among the type that Internal Dialog as follows.
         *Test case passes except this dialog type.

        "showInternalConfirmDialog(parent, message, title, optionType)"
        "showInternalConfirmDialog(parent, message, title, optionType, messageType)",
        "showInternalConfirmDialog(parent, message, title, optionType, messageType, icon)",
        "showInternalInputDialog(parent, message)",
        "showInternalInputDialog(parent, message, title, messageType)",
        "showInternalInputDialog(parent, message, title, messageType, icon, selectionValues, initialSelectionValue)",
        "showInternalMessageDialog(parent, message)",
        "showInternalMessageDialog(parent, message, title, messageType)",
        "showInternalMessageDialog(parent, message, title, messageType, icon)",
        "showInternalOptionDialog(parent, message, title, optionType, messageType, icon, options, initialValue)",

         *This dialog type "showInternalConfirmDialog(parent, message)" does not throw
          java.lang.NullPointerException, even if using InternalConfirmDialog.

      3. click create button.

      4. Internal dialog appears, click any butotn in this new window dialog.

      5. java.lang.NullPointerException is thrown and test program aborts.



       

      #Test Results (version 2) #Fri Oct 31 14:55:11 JST 2003 #checksum:3577c271f490791d #-----testdescription-----
      $file=/tmp/i18n_tiger_ws/i18n/src/GS/font-render/swing/three/JOptionPaneTest.java $root=/tmp/i18n_tiger_ws/i18n/src/GS
      keywords=manual run=USER_SPECIFIED applet/manual=yesno JOptionPaneTest.html\n source=JOptionPaneTest.java title=Test case
      for class javax.swing.JOptionPane #-----environment----- #-----testresult-----
      description=file:///tmp/i18n_tiger_ws/i18n/src/GS/font-render/swing/three/JOptionPaneTest.java end=Fri Oct 31 14:55:11 JST 2003
      environment=regtest execStatus=Failed. Execution failed: Applet thread threw exception: java.lang.NullPointerException
      javatestOS=Linux 2.4.18-1 (i386) javatestVersion=2.1.5 script=com.sun.javatest.regtest.RegressionScript sections=script_messages build
      compile applet start=Fri Oct 31 14:54:43 JST 2003 status=Failed. Execution failed: Applet thread threw exception:
      java.lang.NullPointerException test=font-render/swing/three/JOptionPaneTest.java
       work=/tmp/i18n_tiger_ws/i18n/src/GS/JTwork/font-render/swing/three #section:script_messages
      ----------messages:(4/194)---------- JDK under test: (/tmp/linux-i586) java version "1.5.0-beta" Java(TM) 2 Runtime Environment,
      Standard Edition (build 1.5.0-beta-b26) Java HotSpot(TM) Client VM (build 1.5.0-beta-b26, mixed mode) #section:build
      ----------messages:(3/101)---------- command: build JOptionPaneTest reason: Named class compiled on demand elapsed time
      (seconds): 2.798 result: Passed. Compilation successful #section:compile ----------messages:(3/174)---------- command: compile
      /tmp/i18n_tiger_ws/i18n/src/GS/font-render/swing/three/JOptionPaneTest.java reason: .class file out of date or does not exist
      elapsed time (seconds): 2.797 ----------System.out:(0/0)---------- ----------System.err:(0/0)---------- result: Passed.
      Compilation successful #section:applet ----------messages:(3/144)---------- command: applet JOptionPaneTest.html reason: User
      specified action: run applet/manual=yesno JOptionPaneTest.html elapsed time (seconds): 25.43
      ----------System.out:(7/195)---------- data root: /tmp/i18n_tiger_ws/i18n/src/GS/../../data/GS ### javax.swing.JOptionPane ###
      showConfirmDialog :0 showConfirmDialog :0 showConfirmDialog :0 showInputDialog : showInternalInputDialog :
      ----------System.err:(34/2372)---------- java.lang.NullPointerException at
      sun.awt.X11.XInputMethod.setXICFocus(XInputMethod.java:58) at sun.awt.X11InputMethod.deactivate(X11InputMethod.java:292) at
      sun.awt.im.InputContext.deactivateInputMethod(InputContext.java:434) at sun.awt.im.InputContext.focusLost(InputContext.java:407)
      at sun.awt.im.InputContext.dispatchEvent(InputContext.java:224) at
      sun.awt.im.InputMethodContext.dispatchEvent(InputMethodContext.java:180) at
      java.awt.Component.dispatchEventImpl(Component.java:3876) at java.awt.Container.dispatchEventImpl(Container.java:2017) at
      java.awt.Component.dispatchEvent(Component.java:3777) at
      java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1804) at
       java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:836) at
      java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:526) at
      java.awt.Component.dispatchEventImpl(Component.java:3815) at java.awt.Container.dispatchEventImpl(Container.java:2017) at
      java.awt.Component.dispatchEvent(Component.java:3777) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at
      java.awt.SentEvent.dispatch(SentEvent.java:50) at
      java.awt.DefaultKeyboardFocusManager$DefaultKeyboardFocusManagerSentEvent.dispatch(DefaultKeyboardFocusManager.java:161) at
      java.awt.DefaultKeyboardFocusManager.sendMessage(DefaultKeyboardFocusManager.java:188) at
      java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:591) at
      java.awt.Component.dispatchEventImpl(Component.java:3815) at java.awt.Container.dispatchEventImpl(Container.java:2017) at
      java.awt.Window.dispatchEventImpl(Window.java:1746) at java.awt.Component.dispatchEvent(Component.java:3777) at
      java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.SequencedEvent.dispatch(SequencedEvent.java:93) at
      java.awt.EventQueue.dispatchEvent(EventQueue.java:461) 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) 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

        Attachments

          Activity

            People

            Assignee:
            naoto Naoto Sato
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: