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

Can not Save file as a new file(NullPointerException)

XMLWordPrintable

    • kestrel
    • generic, x86, sparc
    • generic, solaris_2.6, windows_nt
    • Verified

      ===============================================================================
      When I tried to save a file as a file with Ichitari Ark, NullPointerException
      happened.

      1. Configration

        OS : Solaris 2.6 and windows95(OSR2)
        JDK ver. : kestrel build-p
        Application : Ichitaro Ark ver. 1.0 (Product ver.)
        note)
          Ichitaro Ark is compiled with jdk1.2.2-002 and includes jre of that version.
          So on default, runtime runs as jdk1.2.2-002.

      2. Reproduction

        (1) Please install Ichitaro Ark on your WS.
        (2) Change directory of Ark installed
            -> You can see the file "ark10.jar"
        (3) Type "java -jar ark10.jar"
            -> A splash window will appear and then the Page image window
               will appear.
        (4) Select "file"-"save as" and specifiy a file out of file and
           directory list in order to hi-light it.
        (5) Specify a file name that has not exist to "File name" Box.
        (6) Click "Save"
           -> You will see the dialog box that has the following message.

      < message >
      java.lang.NullPointerException
              at jp.co.justsystem.ark.io.FileSupport$UI.getfileContext(Unknown Source)
              at jp.co.justsystem.ark.ArkActions.saveFileAs(Unknown Source)
              at jp.co.justsystem.ark.ArkActions.actionFileSaveAs(Unknown Source)
              at jp.co.justsystem.ark.ArkActions._actionPerformed(Unknown Source)

      3. Note

         (1) This issue has not happen on jdk1.2.2-002.
         (2) When using Ichitaro, we need not only ark10.jar but also
             other files under "plugins" directory("pligins" is made when installing
             Ichitaro Ark under the <installed directory> - ark )
         (3) There are two points
             1) A file is selected(hi-lighted) in file list box
             2) Specify a file name that has not exist to "File name" Box.
             

      tbaba@japan 1999-12-20
      ===============================================================================
      This bug is verified on Solaris 2.6(ja) and Win95(ja) with Build-P(FCS) and
      Build-R(RC1). Almost the same error message is got shown below:

      java.lang.NullPointerException
              at jp.co.justsystem.ark.Ark$ActionFileSaveAs.run(Unknown Source)
              at java.lang.Thread.run(Thread.java:484)

      shuna.wu@eng 2000-01-06

            jeff Jeff Dinkins
            tbaba Tadayuki Baba (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: