Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3Update1
    • Fix Version/s: 2.4-build-unknown
    • Component/s: bootstrap
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      2,168
    • Tags:

      Description

      Mirror issue for:

      https://glassfish.dev.java.net/issues/show_bug.cgi?id=12157

      Quote:

      With GlassFish 3.0.1 promoted build 19 on Solaris x86 with 'pkg' already installed :
      ______________
      -bash-3.2$ bin/updatetool

      The software needed for this command (updatetool) is not installed.

      If you choose to install Update Tool, your system will be automatically
      configured to periodically check for software updates. If you would like
      to configure the tool to not check for updates, you can override the
      default behavior via the tool's Preferences facility.

      When this tool interacts with package repositories, some system information
      such as your system's IP address and operating system type and version
      is sent to the repository server. For more information please see:

      http://wiki.updatecenter.java.net/Wiki.jsp?page=UsageMetricsUC2

      Once installation is complete you may re-run this command.

      Would you like to install Update Tool now (y/n): y

      Proxy: Using system proxy settings.
      Install image: /home/am74686/testUpdatebn19/glassfishv3
      Installing pkg packages.
      Unrecognized exception: null
      java.lang.NullPointerException
      at com.sun.pkg.client.Fmri.<init>(Fmri.java:76)
      at com.sun.pkg.client.Image.makeInstallPlan(Image.java:1582)
      at com.sun.pkg.client.Image.installPackages(Image.java:1655)
      at com.sun.pkg.bootstrap.Bootstrap._main(Bootstrap.java:231)
      at com.sun.pkg.bootstrap.Bootstrap._main(Bootstrap.java:156)
      at com.sun.pkg.bootstrap.Bootstrap.main(Bootstrap.java:106)
      ______________
      workaround:
      bin/pkg install updatetool

      And, Tom's initial evaluation:

      There is a bug at line 314 of the Bootstrap.java file:

      return new_pkg_list.toArray(new String[1]);

      Here, the 1 should be a 0, or the method should be rewritten to not use a
      Vector. The Vector.toArray method will put a null into the array if
      new_pkg_list.size() == 0. And if the "pkg" package is already installed, the
      size of new_pkg_list will be 0.

      Adding Joe to the cc list; I'm not sure why the trimPackageList method was added
      since installPackages already deals with that.

        Activity

        Hide
        Joe Di Pol added a comment -
            • Issue 2164 has been marked as a duplicate of this issue. ***
        Show
        Joe Di Pol added a comment - Issue 2164 has been marked as a duplicate of this issue. ***
        Hide
        Joe Di Pol added a comment -

        Fixed in 2.3u3 in r2808. Not forward ported to 2.4 yet.

        Show
        Joe Di Pol added a comment - Fixed in 2.3u3 in r2808. Not forward ported to 2.4 yet.

          People

          • Assignee:
            Joe Di Pol
            Reporter:
            Snjezana Sevo-Zenzerovic
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: