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

test/jdk/tools/jpackage/share/ServiceTest.java test fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 23
    • tools
    • b25
    • generic
    • windows

      When running test/jdk/tools/jpackage/share/ServiceTest.java in full test mode including installation of the msi the test fails:

      [22:09:20.347] TRACE: assertFalse(): Check [C:\Program Files\UpdateServiceTest\foo.ico] path doesn't exist
      [22:09:20.375] [ FAILED ] ServiceTest.testUpdate; checks=60
      java.lang.ExceptionInInitializerError
              at jdk.jpackage.test.LauncherIconVerifier.applyTo(LauncherIconVerifier.java:70)
              at jdk.jpackage.test.AdditionalLauncher.verifyIcon(AdditionalLauncher.java:298)
              at jdk.jpackage.test.AdditionalLauncher.verify(AdditionalLauncher.java:363)
              at jdk.jpackage.test.LauncherAsServiceVerifier$1.verify(LauncherAsServiceVerifier.java:261)
              at jdk.jpackage.test.Functional$ThrowingConsumer.lambda$toConsumer$0(Functional.java:41)
              at jdk.jpackage.test.PackageTest$Handler.lambda$verifyPackageInstalled$6(PackageTest.java:660)
              at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
              at jdk.jpackage.test.PackageTest$Handler.verifyPackageInstalled(PackageTest.java:660)
              at jdk.jpackage.test.PackageTest$Handler.accept(PackageTest.java:594)
              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$Group.lambda$runAction$0(PackageTest.java:364)
              at java.base/java.lang.Iterable.forEach(Iterable.java:75)
              at jdk.jpackage.test.PackageTest$Group.runAction(PackageTest.java:364)
              at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
              at jdk.jpackage.test.RunnablePackageTest.runActions(RunnablePackageTest.java:66)
              at jdk.jpackage.test.RunnablePackageTest.run(RunnablePackageTest.java:58)
              at ServiceTest.testUpdate(ServiceTest.java:132)
              at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
              at java.base/java.lang.reflect.Method.invoke(Method.java:580)
              at jdk.jpackage.test.MethodCall.accept(MethodCall.java:145)
              at jdk.jpackage.test.TestInstance.run(TestInstance.java:230)
              at jdk.jpackage.test.TKit.lambda$ignoreExceptions$5(TKit.java:141)
              at jdk.jpackage.test.TKit.lambda$runTests$3(TKit.java:126)
              at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1709)
              at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:807)
              at jdk.jpackage.test.TKit.lambda$runTests$4(TKit.java:123)
              at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
              at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:105)
              at jdk.jpackage.test.TKit.runTests(TKit.java:122)
              at jdk.jpackage.test.Main.runTests(Main.java:79)
              at jdk.jpackage.test.Main.lambda$main$2(Main.java:75)
              at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
              at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:109)
              at jdk.jpackage.test.Main.main(Main.java:75)
              at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
              at java.base/java.lang.reflect.Method.invoke(Method.java:580)
              at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
              at java.base/java.lang.Thread.run(Thread.java:1575)
      Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make private static native long jdk.jpackage.internal.ExecutableRebrander.lockResource(java.lang.String) accessible: module jdk.jpackage does not "opens jdk.jpackage.internal" to unnamed module @3761e16e
              at java.base/java.lang.reflect.AccessibleObject.throwInaccessibleObjectException(AccessibleObject.java:388)
              at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:364)

      You need to set "jpackage.test.ServiceTest.service-installer" property to reproduce the issue.

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

              Created:
              Updated:
              Resolved: