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

REGRESSION: NPE exception throws when using a browser file dialog

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • 8u11
    • 8u5
    • deploy
    • x86
    • windows_7

      J2SE Version (please include all output from java -version flag):
       8u5 b12


      Does this problem occur on J2SE 7ux? Yes / No (pick one)
       No, no NPE exception throws on 8u5 b10

      Bug Description:
         a null pointer exception when using a browse file dialog.

         Attached is the full console and a snippet of the code that generates the logs below.

       if we select any browse button operation(Selecting the File for encrypting or signing) from any link of classic or Toolkit API.
      Snap shot and console log attached for reference.

      Exception :

      [EntrustTruePassApplet.8.1.0.185155] [Mar 18 2014 08:02:32 EDT] [Thread-72] [DEBUG] [ShowFileDialogOperation][execute] Enter
      [EntrustTruePassApplet.8.1.0.185155] [Mar 18 2014 08:02:32 EDT] [AWT-EventQueue-6] [DEBUG] [ShowFileDialogOperation][run] Enter
      java.lang.NullPointerException
                      at sun.awt.windows.WWindowPeer.getActiveWindowHandles(Unknown Source)
                      at sun.awt.windows.WToolkit.eventLoop(Native Method)
                      at sun.awt.windows.WToolkit.run(Unknown Source)

      [EntrustTruePassApplet.8.1.0.185155] [Mar 18 2014 08:02:40 EDT] [AWT-EventQueue-6] [DEBUG] [ShowFileDialogOperation][run] file selected
      [EntrustTruePassApplet.8.1.0.185155] [Mar 18 2014 08:02:40 EDT] [AWT-EventQueue-6] [DEBUG] [ShowFileDialogOperation][run] disposed
      [EntrustTruePassApplet.8.1.0.185155] [Mar 18 2014 08:02:40 EDT] [AWT-EventQueue-6] [DEBUG] [ShowFileDialogOperation][run] dir[C:\Users\Administrator\Desktop\anesh.txt\]
      [EntrustTruePassApplet.8.1.0.185155] [Mar 18 2014 08:02:40 EDT] [AWT-EventQueue-6] [DEBUG] [ShowFileDialogOperation][run] file[a.txt]
      [EntrustTruePassApplet.8.1.0.185155] [Mar 18 2014 08:02:40 EDT] [AWT-EventQueue-6] [DEBUG] [ShowFileDialogOperation][run] Exit

       <screenshot image.png>

       

        1. image001.png
          image001.png
          16 kB
        2. file.dialog.txt
          3 kB
        3. DialogAppSigned.zip
          7 kB
        4. DialogApp.zip
          6 kB
        5. Console_log-JRE 8u05_b12_TP8.1Patch_185155.log
          1.01 MB

            dtitov Daniil Titov (Inactive)
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: