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

Javapackager throws NullPointerException for simple CLI hello world test case

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: deploy
    • Labels:
    • Environment:
    • Subcomponent:
    • OS:
      windows_10
    • Verification:
      Verified

      Description

      [Developer Build 01/10/2017]

      Please have a look at environment section for test environment.

      NOTE: There are two Issues in this bug i.e. ISSUE ONE and ISSUE TWO.

      ISSUE ONE:

      Steps to reproduce.

      1. Download the attachment "com.greetings.jar" normal jar to folder "jars".

      2. execute the following command at command line.

      javapackager -deploy -verbose -srcdir jars -srcfiles com.greetings.jar -Bclasspath=com.greetings.jar -BmainJar=com.greetings.jar -appClass com.greetings.App1 -native exe -outdir outdir -name SimpleTest

      Running [C:\Users\gtee\Desktop\ramesh\builds\developerbuild\bin\java.exe, -version]
      Running [C:\Program Files (x86)\Inno Setup 5\iscc.exe, /?]
        Detected [C:\Program Files (x86)\Inno Setup 5\iscc.exe] version [5]
      At least one type of shortcut is required. Enabling menu shortcut.
      Module jdk.crypto.pkcs11 does not exist.
      Module java.httpclient does not exist.
      "Adding modules: [java.rmi, jdk.jdi, jdk.charsets, java.xml, jdk.xml.dom, java.datatransfer, jdk.jstatd, jdk.httpserver, javafx.base, java.desktop, java.security.sasl, jdk.snmp, jdk.zipfs, java.base, jdk.crypto.ec, jdk.javadoc, jdk.jvmstat, jdk.editpad, java.sql.rowset, javafx.swing, jdk.jsobject, jdk.sctp, java.smartcardio, jdk.unsupported, jdk.scripting.nashorn, java.security.jgss, java.compiler, javafx.graphics, javafx.fxml, jdk.dynalink, javafx.media, jdk.accessibility, jdk.security.jgss, java.sql, javafx.web, java.logging, java.xml.crypto, jdk.jfr, jdk.packager.services, jdk.net, java.naming, javafx.controls, jdk.internal.ed, java.prefs, jdk.compiler, jdk.naming.rmi, jdk.jconsole, jdk.attach, jdk.desktop, java.management, jdk.jdwp.agent, java.instrument, jdk.management, jdk.security.auth, java.scripting, jdk.vm.ci, jdk.naming.dns, jdk.localedata] to runtime image."
      Using default package resource [icon] (add package/windows/SimpleTest.ico to the class path to customize)
      Using default package resource [Template for creating executable properties file.] (add package/windows\SimpleTest.properties to the class path to customize)
      Config files are saved to C:\Users\gtee\AppData\Local\Temp\fxbundler10348486821456115400\windows. Use them to customize package.
      Exception: java.lang.NullPointerException
        Config files are saved to C:\Users\gtee\AppData\Local\Temp\fxbundler10348486821456115400\windows. Use them to customize package.
      Exception in thread "main" com.sun.javafx.tools.packager.PackagerException: Error: Bundler "EXE Installer" (exe) failed to produce a bundle.
              at jdk.packager/com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(PackagerLib.java:373)
              at jdk.packager/com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(PackagerLib.java:348)
              at jdk.packager/com.sun.javafx.tools.packager.Main.main(Main.java:496)


      ISSUE TWO:

      looks like some error while launcher is executing in windows 7. this is not windows 10 issue. some unhandled exception in native.

      please find the attachments popup1.png, popup2.png, popup3.png in sequence.

        Attachments

        1. com.greetings.jar
          3 kB
        2. pop1.png
          pop1.png
          216 kB
        3. popup2.png
          popup2.png
          99 kB
        4. popup3.png
          popup3.png
          104 kB

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: