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

SigningOptionsTest fails without Xcode with command line developer tools after JDK-8341443

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 24
    • 24
    • tools
    • b22
    • generic
    • os_x

      On some macOS test systems we run into errors like these after JDK-8341443 ; reason is that while developer laptops have Xcode installed , test systems sometimes do not have it installed .

      tools/jpackage/macosx/SigningOptionsTest.java#id1

      java.lang.AssertionError: Unexpected null value: Check output contains ["codesign" failed and additional application content was supplied via the "--app-content" parameter.] string
      at jdk.jpackage.test.TKit.error(TKit.java:273)
      at jdk.jpackage.test.TKit.assertNotNull(TKit.java:633)
      at jdk.jpackage.test.TKit$TextStreamVerifier.apply(TKit.java:853)
      at SigningOptionsTest.test(SigningOptionsTest.java:130)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:573)
      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$0(TKit.java:141)
      at jdk.jpackage.test.TKit.lambda$runTests$1(TKit.java:126)
      at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1716)
      at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:807)
      at jdk.jpackage.test.TKit.lambda$runTests$0(TKit.java:123)
      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.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:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:573)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1576)
      java.lang.RuntimeException: 1 FAILED TEST
      at jdk.jpackage.test.Main.reportSummary(Main.java:130)
      at jdk.jpackage.test.Main.runTests(Main.java:90)
      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:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:573)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1576)


      stdout contains also this :


      [20:50:32.823] jdk.jpackage.internal.ConfigException: Xcode with command line developer tools is required for signing
      at jdk.jpackage/jdk.jpackage.internal.MacAppBundler.doValidate(MacAppBundler.java:160)
      at jdk.jpackage/jdk.jpackage.internal.AppImageBundler.validate(AppImageBundler.java:72)
      at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:713)
      at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Arguments.java:561)
      at jdk.jpackage/jdk.jpackage.main.Main.execute(Main.java:92)
      at jdk.jpackage/jdk.jpackage.internal.JPackageToolProvider.run(JPackageToolProvider.java:51)
      at java.base/java.util.spi.ToolProvider.run(ToolProvider.java:162)
      at jdk.jpackage.test.Executor.runToolProvider(Executor.java:396)
      at jdk.jpackage.test.Executor.runToolProvider(Executor.java:420)
      at jdk.jpackage.test.Executor.lambda$executeWithoutExitCodeCheck$0(Executor.java:212)
      at jdk.jpackage.test.Functional$ThrowingSupplier.lambda$toSupplier$0(Functional.java:71)
      at jdk.jpackage.test.Executor.executeWithoutExitCodeCheck(Executor.java:220)
      at jdk.jpackage.test.Executor.execute(Executor.java:224)
      at jdk.jpackage.test.JPackageCommand.execute(JPackageCommand.java:792)
      at SigningOptionsTest.test(SigningOptionsTest.java:128)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:573)
      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$0(TKit.java:141)
      at jdk.jpackage.test.TKit.lambda$runTests$1(TKit.java:126)
      at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1716)
      at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:807)
      at jdk.jpackage.test.TKit.lambda$runTests$0(TKit.java:123)
      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.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:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:573)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1576)
      [20:50:32.941] jdk.jpackage.internal.PackagerException: Bundler Mac Application Image skipped because of a configuration problem: Xcode with command line developer tools is required for signing
      Advice to fix: Install Xcode with command line developer tools.
      at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:726)
      at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Arguments.java:561)
      at jdk.jpackage/jdk.jpackage.main.Main.execute(Main.java:92)
      at jdk.jpackage/jdk.jpackage.internal.JPackageToolProvider.run(JPackageToolProvider.java:51)
      at java.base/java.util.spi.ToolProvider.run(ToolProvider.java:162)
      at jdk.jpackage.test.Executor.runToolProvider(Executor.java:396)
      at jdk.jpackage.test.Executor.runToolProvider(Executor.java:420)
      at jdk.jpackage.test.Executor.lambda$executeWithoutExitCodeCheck$0(Executor.java:212)
      at jdk.jpackage.test.Functional$ThrowingSupplier.lambda$toSupplier$0(Functional.java:71)
      at jdk.jpackage.test.Executor.executeWithoutExitCodeCheck(Executor.java:220)
      at jdk.jpackage.test.Executor.execute(Executor.java:224)
      at jdk.jpackage.test.JPackageCommand.execute(JPackageCommand.java:792)
      at SigningOptionsTest.test(SigningOptionsTest.java:128)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:573)
      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$0(TKit.java:141)
      at jdk.jpackage.test.TKit.lambda$runTests$1(TKit.java:126)
      at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1716)
      at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:807)
      at jdk.jpackage.test.TKit.lambda$runTests$0(TKit.java:123)
      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.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:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:573)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1576)
      Caused by: jdk.jpackage.internal.ConfigException: Xcode with command line developer tools is required for signing
      at jdk.jpackage/jdk.jpackage.internal.MacAppBundler.doValidate(MacAppBundler.java:160)
      at jdk.jpackage/jdk.jpackage.internal.AppImageBundler.validate(AppImageBundler.java:72)
      at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:713)

            almatvee Alexander Matveev
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: