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

javapackager throws NullPointerException in Windows Operating System for CLI

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: deploy
    • Environment:
    • Subcomponent:
    • Introduced In Version:
      9
    • OS:
      windows_7

      Description

      steps to reproduce:
      1. enter following command at CLI
      javapackager -deploy -verbose
      -outdir C:\Users\rbgangad.ORADEV\Desktop\rough\temp\ramesh -outfile test -native exe --module-path C
      :\Users\rbgangad.ORADEV\Desktop\rough\temp\jars --module com.greetings/com.greetings.App1 -name Simp
      leTest --strip-native-commands true

      <LOG>
      D:\appbundler_repo\functional\appBundlerTestsJDK9\appBundlerTestsJDK9>javapackager -deploy -verbose
      -outdir C:\Users\rbgangad.ORADEV\Desktop\rough\temp\ramesh -outfile test -native exe --module-path C
      :\Users\rbgangad.ORADEV\Desktop\rough\temp\jars --module com.greetings/com.greetings.App1 -name Simp
      leTest --strip-native-commands true
      com.oracle.tools.packager.ConfigException: java.lang.NullPointerException
              at com.oracle.tools.packager.windows.WinAppBundler.validate(jdk.packager@9-ea/WinAppBundler.
      java:97)
              at com.oracle.tools.packager.windows.WinExeBundler.validate(jdk.packager@9-ea/WinExeBundler.
      java:224)
              at com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(jdk.packager@9-ea/Package
      rLib.java:370)
              at com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(jdk.packager@9-ea/Pa
      ckagerLib.java:329)
              at com.sun.javafx.tools.packager.Main.main(jdk.packager@9-ea/Main.java:483)
      Caused by: java.lang.NullPointerException
              at com.oracle.tools.packager.windows.WinAppBundler.extractFlagsFromRuntime(jdk.packager@9-ea
      /WinAppBundler.java:202)
              at com.oracle.tools.packager.windows.WindowsBundlerParam.lambda$static$8(jdk.packager@9-ea/W
      indowsBundlerParam.java:111)
              at com.oracle.tools.packager.BundlerParamInfo.fetchFrom(jdk.packager@9-ea/BundlerParamInfo.j
      ava:133)
              at com.oracle.tools.packager.windows.WinAppBundler.testRuntimeBitArchitecture(jdk.packager@9
      -ea/WinAppBundler.java:129)
              at com.oracle.tools.packager.windows.WinAppBundler.doValidate(jdk.packager@9-ea/WinAppBundle
      r.java:118)
              at com.oracle.tools.packager.windows.WinAppBundler.validate(jdk.packager@9-ea/WinAppBundler.
      java:92)
              ... 4 more

      Bundler EXE Installer skipped because of a configuration problem: java.lang.NullPointerException

      D:\appbundler_repo\functional\appBundlerTestsJDK9\appBundlerTestsJDK9>java -version
      java version "9-ea"
      Java(TM) SE Runtime Environment (fastdebug build 9-ea+134)
      Java HotSpot(TM) 64-Bit Server VM (fastdebug build 9-ea+134, mixed mode)
      </LOG>

      please find the log as file in attachment.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbensen Chris Bensen (Inactive)
                Reporter:
                rgangadhar Ramesh Gangadhar
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: