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

[macos]: IOException while codesigning the application

XMLWordPrintable

    • 16
    • x86_64
    • os_x

      ADDITIONAL SYSTEM INFORMATION :
      Mac OS 10.15.7
      Java 16

      A DESCRIPTION OF THE PROBLEM :
      OS X running jpackage and doing developer signing gets an error

      Caused by: java.io.IOException: Command [/usr/bin/codesign, --timestamp, --options, runtime, -s, Developer ID Application: Michael Hall (5X6BXQB3Q7), --prefix, us.hall.hp.common., -vvvv, --entitlements, /var/folders/dh/91wmrk0n6lzfmr4tjhjmcfp40000gn/T/jdk.jpackage17251010229958736190/config/HalfPipe.entitlements, /var/folders/dh/91wmrk0n6lzfmr4tjhjmcfp40000gn/T/jdk.jpackage17251010229958736190/images/image-4370652869331292597/HalfPipe.app/Contents/app/libfscript.dylib] exited with 1 code
      at jdk.jpackage/jdk.jpackage.internal.Executor.executeExpectSuccess(Executor.java:91)
      at jdk.jpackage/jdk.jpackage.internal.IOUtils.exec(IOUtils.java:191)
      at jdk.jpackage/jdk.jpackage.internal.IOUtils.exec(IOUtils.java:152)
      at jdk.jpackage/jdk.jpackage.internal.MacAppImageBuilder.lambda$signAppBundle$34(MacAppImageBuilder.java:688)
      at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
      at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
      at java.base/java.util.stream.ReferencePipeline$15$1.accept(ReferencePipeline.java:541)
      at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
      at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
      at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
      at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
      at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
      at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
      at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
      at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
      at jdk.jpackage/jdk.jpackage.internal.MacAppImageBuilder.signAppBundle(MacAppImageBuilder.java:647)
      at jdk.jpackage/jdk.jpackage.internal.MacAppImageBuilder.sign(MacAppImageBuilder.java:338)
      at jdk.jpackage/jdk.jpackage.internal.MacAppImageBuilder.prepareApplicationFiles(MacAppImageBuilder.java:300)
      at jdk.jpackage/jdk.jpackage.internal.AppImageBundler.createAppBundle(AppImageBundler.java:172)
      at jdk.jpackage/jdk.jpackage.internal.AppImageBundler.execute(AppImageBundler.java:91)
      ... 7 more

      Possibly related
      https://bugs.openjdk.java.net/browse/JDK-8246792?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel&showAll=true
      https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8263156

      REGRESSION : Last worked in version 15.0.2

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      jpackage with developer signing. I'm assuming any time at java 16 but haven't tried to do any additional isolation.
      My command includes...
      --mac-package-identifier "org.mik3hall.halfpipe" \
      --mac-sign \
      --mac-signing-key-user-name "Michael Hall"


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      built and signed application
      ACTUAL -
      The build stops with an Exception thrown on codesign

      ---------- BEGIN SOURCE ----------
      Signing information as above
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      For now I eliminated signing

      FREQUENCY : always


            herrick Andy Herrick (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: