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

javapackager throws NullPointerException when bundling ModularJar for Exe Extension

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2
    • 9
    • 9
    • deploy
    • None
    • C:\Users\rbgangad.ORADEV>java -version
      java version "9-ea"
      Java(TM) SE Runtime Environment (build 9-ea+138)
      Java HotSpot(TM) 64-Bit Server VM (build 9-ea+138, mixed mode)

    • 9
    • windows

    Description

      Please find the attachment for modular jars
      steps to reproduce
      try the following command at command line

      1. C:\PROGRA~1\Java\jdk-9\bin\javapackager -deploy -verbose -outdir D:\TEMP\testBundlerWorkDir1060412094374121155\bundles -outfile test -native exe -BjvmProperties="sqe.aba.caba=dabacaba" -name JvmOptionsModuleTestCheckWithNoStripNativeCommands -BjvmOptions="-Dsqe.foo.bar=baz -
      Dsqe.qux.corge=grault -Djavafx.verbose=true -Dprism.verbose=true" --module com.greetings/com.greetin
      gs.App1 --module-path C:\Users\rbgangad.ORADEV\Desktop\rough\temp\modjars

      2. please find the attachment for logs.

      3. here is the snippet of log

      <SNIPPET>
      Bundler EXE Installer failed because of java.lang.NullPointerException
      java.lang.NullPointerException
              at com.oracle.tools.packager.windows.WinExeBundler.getAppIdentifier(jdk.packager@9-ea/WinExe
      Bundler.java:419)
              at com.oracle.tools.packager.windows.WinExeBundler.prepareMainProjectFile(jdk.packager@9-ea/
      WinExeBundler.java:452)
              at com.oracle.tools.packager.windows.WinExeBundler.prepareProjectConfig(jdk.packager@9-ea/Wi
      nExeBundler.java:655)
              at com.oracle.tools.packager.windows.WinExeBundler.bundle(jdk.packager@9-ea/WinExeBundler.ja
      va:360)
              at com.oracle.tools.packager.windows.WinExeBundler.execute(jdk.packager@9-ea/WinExeBundler.j
      ava:173)
      </SNIPPET>

      Attachments

        Issue Links

          Activity

            People

              cbensen Chris Bensen (Inactive)
              rgangadhar Ramesh Gangadhar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: