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

javafxpackager signjar task: output is incorrect in case of wrong args

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7u15
    • Fix Version/s: 8
    • Component/s: deploy
    • Environment:

      Ubuntu 12.04, x64
      java version "1.7.0_21"
      Java(TM) SE Runtime Environment (build 1.7.0_21-b05)
      Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)

      Description

      When I'm trying to use srcfiles argument without srcdir argument I get this result:
      dmitry.ginzburg@oracle-ginzburg:/local/work/packagerTestsSuite/apps/HelloWorld$ javafxpackager -signJar -v -srcfiles dist/HelloWorld.jar -keyStore pkg-tests-keystore -outdir dist -alias pkgtests -storePass pkgtests -keyPass pkgtests
      Exception in thread "main" java.lang.NullPointerException
      at com.sun.javafx.tools.resource.PackagerResource.createFile(PackagerResource.java:133)
      at com.sun.javafx.tools.resource.PackagerResource.<init>(PackagerResource.java:28)
      at com.sun.javafx.tools.packager.SignJarParams.addResource(SignJarParams.java:50)
      at com.sun.javafx.tools.packager.Main.addResources(Main.java:84)
      at com.sun.javafx.tools.packager.Main.main(Main.java:358)

      Without verbose argument:
      dmitry.ginzburg@oracle-ginzburg:/local/work/packagerTestsSuite/apps/HelloWorld$ javafxpackager -signJar -srcfiles dist/HelloWorld.jar -keyStore pkg-tests-keystore -outdir dist -alias pkgtests -storePass pkgtests -keyPass pkgtests
      null

      I attach this HelloWorld project: to see this result you should firstly call ant -f simple-build.xml jar, then use one of the commands above.

        Attachments

          Activity

            People

            Assignee:
            janvalenta Jan Valenta (Inactive)
            Reporter:
            dginzbur Dmitry Ginzburg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: