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

RuntimePackageTest.testUsrInstallDir test fails on Linux

XMLWordPrintable

    • b26
    • linux

        When running the test with the installation of .deb and .rpm packages produced by jpackage the test throws an exception:

        ---
        java.lang.NullPointerException: Cannot invoke "java.nio.file.Path.equals(Object)" because the return value of "java.nio.file.Path.getFileName()" is null
        at jdk.jpackage.test.JPackageCommand.lambda$assertFileInAppImage$37(JPackageCommand.java:900)
        at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:178)
        at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
        at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
        at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1709)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:517)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:507)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:583)
        at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:252)
        at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616)
        at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622)
        at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627)
        at jdk.jpackage.test.JPackageCommand.assertFileInAppImage(JPackageCommand.java:901)
        at jdk.jpackage.test.JPackageCommand.assertFileInAppImage(JPackageCommand.java:884)
        at jdk.jpackage.test.JPackageCommand.assertAppImageFile(JPackageCommand.java:834)
        at jdk.jpackage.test.JPackageCommand.assertAppLayout(JPackageCommand.java:808)
        at jdk.jpackage.test.PackageTest$Handler.verifyPackageInstalled(PackageTest.java:656)
        at jdk.jpackage.test.PackageTest$Handler.accept(PackageTest.java:592)
        at jdk.jpackage.test.PackageTest$2.accept(PackageTest.java:504)
        at jdk.jpackage.test.PackageTest$2.accept(PackageTest.java:411)
        at jdk.jpackage.test.Functional$ThrowingConsumer.lambda$toConsumer$0(Functional.java:41)
        at java.base/java.lang.Iterable.forEach(Iterable.java:75)
        at jdk.jpackage.test.PackageTest.lambda$runActions$24(PackageTest.java:381)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
        at jdk.jpackage.test.PackageTest.lambda$runActions$25(PackageTest.java:380)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
        at jdk.jpackage.test.PackageTest.runActions(PackageTest.java:379)
        at jdk.jpackage.test.RunnablePackageTest.run(RunnablePackageTest.java:58)
        at RuntimePackageTest.testUsrInstallDir(RuntimePackageTest.java:91)
        ---

              asemenyuk Alexey Semenyuk
              asemenyuk Alexey Semenyuk
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: