-
Bug
-
Resolution: Incomplete
-
P4
-
None
-
9.0.1
-
x86
-
os_x
FULL PRODUCT VERSION :
java version "9.0.1"
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
MacOSX Sierra 10.12
EXTRA RELEVANT SYSTEM CONFIGURATION :
ProductName: Mac OS X
ProductVersion: 10.12.5
BuildVersion: 16F73
Darwin administrators-Mac-mini.local 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64
A DESCRIPTION OF THE PROBLEM :
When javapackager is used to build a DMG installer using the below command:
```
javapackager -deploy -native ${PACKAGE_TYPE} \
-BmainJar=${CENSUM_JAR} -BjvmOptions=-Xmx2G \
-BsystemWide=true \
-srcdir ${CENSUM_JAR_SRC_FOLDER} -srcfiles ${CENSUM_JAR} \
-srcdir ${CENSUM_JAR_SRC_FOLDER} -srcfiles license.txt \
-outdir . -outfile ${DMG_ARCHIVE_NAME} \
-appclass ${APP_CLASS_NAME} -name ${EXE_NAME} \
-Bicon=${MAC_ICON} \
-title "${PACKAGE_DESCRIPTION}" \
-Bmac.CFBundleName=${EXE_NAME} -Bmac.CFBundleVersion=${NUM_VERSION} \
-Bmac.category=${MAC_CATEGORY} -BlicenseFile=license.txt \
"${CODESIGNING_FLAGS}" \
-verbose
```
We get an error described in https://jacobsalmela.com/2014/08/04/infamous-execution-error-error-type-10810-occurred-10810/.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Build using the command snippet provided.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Builds DMG with background image on the DMG window and Application sym-link icon in the DMG container
ACTUAL -
Error message in the console, failed build
ERROR MESSAGES/STACK TRACES THAT OCCUR :
*** Creating censum.dmg from censum ***
Building DMG package for censum
"Adding modules: [java.rmi, java.sql, javafx.web, jdk.charsets, java.logging, java.xml.crypto, java.xml, jdk.xml.dom, jdk.jfr, java.datatransfer, jdk.packager.services, jdk.httpserver, javafx.base, jdk.net, java.desktop, java.naming, javafx.controls, java.prefs, java.security.sasl, jdk.naming.rmi, jdk.zipfs, java.base, jdk.crypto.ec, jdk.management.agent, java.management, java.sql.rowset, javafx.swing, jdk.jsobject, jdk.sctp, java.smartcardio, jdk.unsupported, jdk.jdwp.agent, jdk.scripting.nashorn, java.instrument, java.security.jgss, jdk.management, java.compiler, javafx.graphics, jdk.security.auth, java.scripting, javafx.fxml, jdk.dynalink, javafx.media, jdk.accessibility, java.management.rmi, jdk.naming.dns, jdk.security.jgss, jdk.localedata] to runtime image."
outputDir = /var/folders/dq/2cxk89353dq4tfwy5sp596dh0000gq/T/fxbundler4836060658132782051/images/image-6373553712421388950/censum.app/Contents/PlugIns/Java.runtime/Contents/Home
modulePath = [/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home/jmods]
addModules = [java.rmi, java.sql, javafx.web, jdk.charsets, java.logging, java.xml.crypto, java.xml, jdk.xml.dom, jdk.jfr, java.datatransfer, jdk.packager.services, jdk.httpserver, javafx.base, jdk.net, java.desktop, java.naming, javafx.controls, java.prefs, java.security.sasl, jdk.naming.rmi, jdk.zipfs, java.base, jdk.crypto.ec, jdk.management.agent, java.management, java.sql.rowset, javafx.swing, jdk.jsobject, jdk.sctp, java.smartcardio, jdk.unsupported, jdk.jdwp.agent, jdk.scripting.nashorn, java.instrument, java.security.jgss, jdk.management, java.compiler, javafx.graphics, jdk.security.auth, java.scripting, javafx.fxml, jdk.dynalink, javafx.media, jdk.accessibility, java.management.rmi, jdk.naming.dns, jdk.security.jgss, jdk.localedata]
limitModules = []
excludeFileList = .*\.diz
stripNativeCommands = true
userArguments = {}
Using custom package resource [icon] (loaded from file <http://ci.jclarity.com:8080/job/create-censum-macosx-installers/ws/jlink-javapackager-scripts/osx/../resources/censum-volume.icns)>
Preparing Info.plist: /var/folders/dq/2cxk89353dq4tfwy5sp596dh0000gq/T/fxbundler4836060658132782051/images/image-6373553712421388950/censum.app/Contents/Info.plist
Using default package resource [Application Info.plist] (add package/macosx/Info.plist to the class path to customize)
Using default package resource [Java Runtime Info.plist] (add package/macosx/Runtime-Info.plist to the class path to customize)
Running [security, find-certificate, -c, Developer ID Application: , -a]
Did not find a key matching 'Developer ID Application: '
Using default package resource [dmg background] (add package/macosx/censum-background.png to the class path to customize)
Using custom package resource [volume icon] (loaded from file <http://ci.jclarity.com:8080/job/create-censum-macosx-installers/ws/jlink-javapackager-scripts/osx/../resources/censum-volume.icns)>
Using default package resource [script to run after application image is populated] (add package/macosx/censum-post-image.sh to the class path to customize)
Preparing dmg setup: /var/folders/dq/2cxk89353dq4tfwy5sp596dh0000gq/T/fxbundler4836060658132782051/macosx/censum-dmg-setup.scpt
Using default package resource [DMG setup script] (add package/macosx/censum-dmg-setup.scpt to the class path to customize)
Creating DMG file: <http://ci.jclarity.com:8080/job/create-censum-macosx-installers/ws/jlink-javapackager-scripts/osx/./censum-1.0.dmg>
Running [/usr/bin/hdiutil, create, -quiet, -srcfolder, /var/folders/dq/2cxk89353dq4tfwy5sp596dh0000gq/T/fxbundler4836060658132782051/images/image-6373553712421388950, -volname, censum, -ov, /var/folders/dq/2cxk89353dq4tfwy5sp596dh0000gq/T/fxbundler4836060658132782051/images/censum-tmp.dmg, -format, UDRW]
Running [/usr/bin/hdiutil, attach, /var/folders/dq/2cxk89353dq4tfwy5sp596dh0000gq/T/fxbundler4836060658132782051/images/censum-tmp.dmg, -quiet, -mountroot, /var/folders/dq/2cxk89353dq4tfwy5sp596dh0000gq/T/fxbundler4836060658132782051/images]
Running [osascript, /var/folders/dq/2cxk89353dq4tfwy5sp596dh0000gq/T/fxbundler4836060658132782051/macosx/censum-dmg-setup.scpt]
/var/folders/dq/2cxk89353dq4tfwy5sp596dh0000gq/T/fxbundler4836060658132782051/macosx/censum-dmg-setup.scpt:51:55: execution error: An error of type -10810 has occurred. (-10810)
java.io.IOException: Exec failed with code 1 command [[osascript, /var/folders/dq/2cxk89353dq4tfwy5sp596dh0000gq/T/fxbundler4836060658132782051/macosx/censum-dmg-setup.scpt] in unspecified directory
at jdk.packager/com.oracle.tools.packager.IOUtils.exec(IOUtils.java:169)
at jdk.packager/com.oracle.tools.packager.IOUtils.exec(IOUtils.java:142)
at jdk.packager/com.oracle.tools.packager.IOUtils.exec(IOUtils.java:136)
at jdk.packager/com.oracle.tools.packager.mac.MacDmgBundler.buildDMG(MacDmgBundler.java:375)
at jdk.packager/com.oracle.tools.packager.mac.MacDmgBundler.bundle(MacDmgBundler.java:92)
at jdk.packager/com.oracle.tools.packager.mac.MacDmgBundler.execute(MacDmgBundler.java:549)
at jdk.packager/com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(PackagerLib.java:371)
at jdk.packager/com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(PackagerLib.java:348)
at jdk.packager/com.sun.javafx.tools.packager.Main.main(Main.java:496)
Config files are saved to /var/folders/dq/2cxk89353dq4tfwy5sp596dh0000gq/T/fxbundler4836060658132782051/macosx. Use them to customize package.
Exception in thread "main" com.sun.javafx.tools.packager.PackagerException: Error: Bundler "DMG Installer" (dmg) failed to produce a bundle.
at jdk.packager/com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(PackagerLib.java:374)
at jdk.packager/com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(PackagerLib.java:348)
at jdk.packager/com.sun.javafx.tools.packager.Main.main(Main.java:496)
real 0m41.903s
user 0m13.553s
sys 0m0.821s
Build step 'Execute shell' marked build as failure
FATAL: Remote call on macosx-follower failed
Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to channel
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1693)
at hudson.remoting.Request.call(Request.java:192)
at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:284)
at com.sun.proxy.$Proxy6.fetch3(Unknown Source)
at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:197)
at java.lang.ClassLoader.loadClass(ClassLoader.java:563)
at java.lang.ClassLoader.loadClass(ClassLoader.java:496)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:292)
at hudson.util.ProcessTree$UnixReflection.<clinit>(ProcessTree.java:699)
at hudson.util.ProcessTree$UnixProcess.kill(ProcessTree.java:647)
at hudson.util.ProcessTree$UnixProcess.killRecursively(ProcessTree.java:668)
at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:589)
at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1091)
at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1082)
at hudson.remoting.UserRequest.perform(UserRequest.java:207)
at hudson.remoting.UserRequest.perform(UserRequest.java:53)
at hudson.remoting.Request$2.run(Request.java:358)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:844)
java.lang.ClassNotFoundException: Classloading from system classloader disabled
at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch4(RemoteClassLoader.java:842)
at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch3(RemoteClassLoader.java:875)
at sun.reflect.GeneratedMethodAccessor1110.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:922)
at hudson.remoting.Request$2.run(Request.java:358)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at org.jenkinsci.remoting.CallableDecorator.call(CallableDecorator.java:19)
at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21)
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to macosx-follower
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1693)
at hudson.remoting.UserResponse.retrieve(UserRequest.java:310)
at hudson.remoting.Channel.call(Channel.java:908)
at hudson.Launcher$RemoteLauncher.kill(Launcher.java:1079)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:510)
at hudson.model.Run.execute(Run.java:1724)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:421)
Caused: java.lang.LinkageError
at hudson.util.ProcessTree$UnixReflection.<clinit>(ProcessTree.java:710)
at hudson.util.ProcessTree$UnixProcess.kill(ProcessTree.java:647)
at hudson.util.ProcessTree$UnixProcess.killRecursively(ProcessTree.java:668)
at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:589)
at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1091)
at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1082)
at hudson.remoting.UserRequest.perform(UserRequest.java:207)
at hudson.remoting.UserRequest.perform(UserRequest.java:53)
at hudson.remoting.Request$2.run(Request.java:358)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:844)
Caused: java.io.IOException: Remote call on macosx-follower failed
at hudson.remoting.Channel.call(Channel.java:916)
at hudson.Launcher$RemoteLauncher.kill(Launcher.java:1079)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:510)
at hudson.model.Run.execute(Run.java:1724)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:421)
Skipped archiving because build is not successful
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Used -Bmac.dmg.simple=true but this does NOT do the expected either, it does not do as described in the documentation:
Flag that indicates if DMG customization steps that depend on executing AppleScript code are skipped. Set to true to skip the steps. When set to true, the disk window does not have a background image, and the icons are not moved into place. If the systemWide argument is also set to true, then a symbolic link to the root Applications folder is added to the DMG file. If the systemWide argument is set to false, then only the application is added to the DMG file, no link to the desktop is added.
This is fairly important that at least the workaround worked - let me know if this needs to be reported separately.
java version "9.0.1"
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
MacOSX Sierra 10.12
EXTRA RELEVANT SYSTEM CONFIGURATION :
ProductName: Mac OS X
ProductVersion: 10.12.5
BuildVersion: 16F73
Darwin administrators-Mac-mini.local 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64
A DESCRIPTION OF THE PROBLEM :
When javapackager is used to build a DMG installer using the below command:
```
javapackager -deploy -native ${PACKAGE_TYPE} \
-BmainJar=${CENSUM_JAR} -BjvmOptions=-Xmx2G \
-BsystemWide=true \
-srcdir ${CENSUM_JAR_SRC_FOLDER} -srcfiles ${CENSUM_JAR} \
-srcdir ${CENSUM_JAR_SRC_FOLDER} -srcfiles license.txt \
-outdir . -outfile ${DMG_ARCHIVE_NAME} \
-appclass ${APP_CLASS_NAME} -name ${EXE_NAME} \
-Bicon=${MAC_ICON} \
-title "${PACKAGE_DESCRIPTION}" \
-Bmac.CFBundleName=${EXE_NAME} -Bmac.CFBundleVersion=${NUM_VERSION} \
-Bmac.category=${MAC_CATEGORY} -BlicenseFile=license.txt \
"${CODESIGNING_FLAGS}" \
-verbose
```
We get an error described in https://jacobsalmela.com/2014/08/04/infamous-execution-error-error-type-10810-occurred-10810/.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Build using the command snippet provided.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Builds DMG with background image on the DMG window and Application sym-link icon in the DMG container
ACTUAL -
Error message in the console, failed build
ERROR MESSAGES/STACK TRACES THAT OCCUR :
*** Creating censum.dmg from censum ***
Building DMG package for censum
"Adding modules: [java.rmi, java.sql, javafx.web, jdk.charsets, java.logging, java.xml.crypto, java.xml, jdk.xml.dom, jdk.jfr, java.datatransfer, jdk.packager.services, jdk.httpserver, javafx.base, jdk.net, java.desktop, java.naming, javafx.controls, java.prefs, java.security.sasl, jdk.naming.rmi, jdk.zipfs, java.base, jdk.crypto.ec, jdk.management.agent, java.management, java.sql.rowset, javafx.swing, jdk.jsobject, jdk.sctp, java.smartcardio, jdk.unsupported, jdk.jdwp.agent, jdk.scripting.nashorn, java.instrument, java.security.jgss, jdk.management, java.compiler, javafx.graphics, jdk.security.auth, java.scripting, javafx.fxml, jdk.dynalink, javafx.media, jdk.accessibility, java.management.rmi, jdk.naming.dns, jdk.security.jgss, jdk.localedata] to runtime image."
outputDir = /var/folders/dq/2cxk89353dq4tfwy5sp596dh0000gq/T/fxbundler4836060658132782051/images/image-6373553712421388950/censum.app/Contents/PlugIns/Java.runtime/Contents/Home
modulePath = [/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home/jmods]
addModules = [java.rmi, java.sql, javafx.web, jdk.charsets, java.logging, java.xml.crypto, java.xml, jdk.xml.dom, jdk.jfr, java.datatransfer, jdk.packager.services, jdk.httpserver, javafx.base, jdk.net, java.desktop, java.naming, javafx.controls, java.prefs, java.security.sasl, jdk.naming.rmi, jdk.zipfs, java.base, jdk.crypto.ec, jdk.management.agent, java.management, java.sql.rowset, javafx.swing, jdk.jsobject, jdk.sctp, java.smartcardio, jdk.unsupported, jdk.jdwp.agent, jdk.scripting.nashorn, java.instrument, java.security.jgss, jdk.management, java.compiler, javafx.graphics, jdk.security.auth, java.scripting, javafx.fxml, jdk.dynalink, javafx.media, jdk.accessibility, java.management.rmi, jdk.naming.dns, jdk.security.jgss, jdk.localedata]
limitModules = []
excludeFileList = .*\.diz
stripNativeCommands = true
userArguments = {}
Using custom package resource [icon] (loaded from file <http://ci.jclarity.com:8080/job/create-censum-macosx-installers/ws/jlink-javapackager-scripts/osx/../resources/censum-volume.icns)>
Preparing Info.plist: /var/folders/dq/2cxk89353dq4tfwy5sp596dh0000gq/T/fxbundler4836060658132782051/images/image-6373553712421388950/censum.app/Contents/Info.plist
Using default package resource [Application Info.plist] (add package/macosx/Info.plist to the class path to customize)
Using default package resource [Java Runtime Info.plist] (add package/macosx/Runtime-Info.plist to the class path to customize)
Running [security, find-certificate, -c, Developer ID Application: , -a]
Did not find a key matching 'Developer ID Application: '
Using default package resource [dmg background] (add package/macosx/censum-background.png to the class path to customize)
Using custom package resource [volume icon] (loaded from file <http://ci.jclarity.com:8080/job/create-censum-macosx-installers/ws/jlink-javapackager-scripts/osx/../resources/censum-volume.icns)>
Using default package resource [script to run after application image is populated] (add package/macosx/censum-post-image.sh to the class path to customize)
Preparing dmg setup: /var/folders/dq/2cxk89353dq4tfwy5sp596dh0000gq/T/fxbundler4836060658132782051/macosx/censum-dmg-setup.scpt
Using default package resource [DMG setup script] (add package/macosx/censum-dmg-setup.scpt to the class path to customize)
Creating DMG file: <http://ci.jclarity.com:8080/job/create-censum-macosx-installers/ws/jlink-javapackager-scripts/osx/./censum-1.0.dmg>
Running [/usr/bin/hdiutil, create, -quiet, -srcfolder, /var/folders/dq/2cxk89353dq4tfwy5sp596dh0000gq/T/fxbundler4836060658132782051/images/image-6373553712421388950, -volname, censum, -ov, /var/folders/dq/2cxk89353dq4tfwy5sp596dh0000gq/T/fxbundler4836060658132782051/images/censum-tmp.dmg, -format, UDRW]
Running [/usr/bin/hdiutil, attach, /var/folders/dq/2cxk89353dq4tfwy5sp596dh0000gq/T/fxbundler4836060658132782051/images/censum-tmp.dmg, -quiet, -mountroot, /var/folders/dq/2cxk89353dq4tfwy5sp596dh0000gq/T/fxbundler4836060658132782051/images]
Running [osascript, /var/folders/dq/2cxk89353dq4tfwy5sp596dh0000gq/T/fxbundler4836060658132782051/macosx/censum-dmg-setup.scpt]
/var/folders/dq/2cxk89353dq4tfwy5sp596dh0000gq/T/fxbundler4836060658132782051/macosx/censum-dmg-setup.scpt:51:55: execution error: An error of type -10810 has occurred. (-10810)
java.io.IOException: Exec failed with code 1 command [[osascript, /var/folders/dq/2cxk89353dq4tfwy5sp596dh0000gq/T/fxbundler4836060658132782051/macosx/censum-dmg-setup.scpt] in unspecified directory
at jdk.packager/com.oracle.tools.packager.IOUtils.exec(IOUtils.java:169)
at jdk.packager/com.oracle.tools.packager.IOUtils.exec(IOUtils.java:142)
at jdk.packager/com.oracle.tools.packager.IOUtils.exec(IOUtils.java:136)
at jdk.packager/com.oracle.tools.packager.mac.MacDmgBundler.buildDMG(MacDmgBundler.java:375)
at jdk.packager/com.oracle.tools.packager.mac.MacDmgBundler.bundle(MacDmgBundler.java:92)
at jdk.packager/com.oracle.tools.packager.mac.MacDmgBundler.execute(MacDmgBundler.java:549)
at jdk.packager/com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(PackagerLib.java:371)
at jdk.packager/com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(PackagerLib.java:348)
at jdk.packager/com.sun.javafx.tools.packager.Main.main(Main.java:496)
Config files are saved to /var/folders/dq/2cxk89353dq4tfwy5sp596dh0000gq/T/fxbundler4836060658132782051/macosx. Use them to customize package.
Exception in thread "main" com.sun.javafx.tools.packager.PackagerException: Error: Bundler "DMG Installer" (dmg) failed to produce a bundle.
at jdk.packager/com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(PackagerLib.java:374)
at jdk.packager/com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(PackagerLib.java:348)
at jdk.packager/com.sun.javafx.tools.packager.Main.main(Main.java:496)
real 0m41.903s
user 0m13.553s
sys 0m0.821s
Build step 'Execute shell' marked build as failure
FATAL: Remote call on macosx-follower failed
Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to channel
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1693)
at hudson.remoting.Request.call(Request.java:192)
at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:284)
at com.sun.proxy.$Proxy6.fetch3(Unknown Source)
at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:197)
at java.lang.ClassLoader.loadClass(ClassLoader.java:563)
at java.lang.ClassLoader.loadClass(ClassLoader.java:496)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:292)
at hudson.util.ProcessTree$UnixReflection.<clinit>(ProcessTree.java:699)
at hudson.util.ProcessTree$UnixProcess.kill(ProcessTree.java:647)
at hudson.util.ProcessTree$UnixProcess.killRecursively(ProcessTree.java:668)
at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:589)
at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1091)
at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1082)
at hudson.remoting.UserRequest.perform(UserRequest.java:207)
at hudson.remoting.UserRequest.perform(UserRequest.java:53)
at hudson.remoting.Request$2.run(Request.java:358)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:844)
java.lang.ClassNotFoundException: Classloading from system classloader disabled
at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch4(RemoteClassLoader.java:842)
at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch3(RemoteClassLoader.java:875)
at sun.reflect.GeneratedMethodAccessor1110.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:922)
at hudson.remoting.Request$2.run(Request.java:358)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at org.jenkinsci.remoting.CallableDecorator.call(CallableDecorator.java:19)
at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21)
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to macosx-follower
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1693)
at hudson.remoting.UserResponse.retrieve(UserRequest.java:310)
at hudson.remoting.Channel.call(Channel.java:908)
at hudson.Launcher$RemoteLauncher.kill(Launcher.java:1079)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:510)
at hudson.model.Run.execute(Run.java:1724)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:421)
Caused: java.lang.LinkageError
at hudson.util.ProcessTree$UnixReflection.<clinit>(ProcessTree.java:710)
at hudson.util.ProcessTree$UnixProcess.kill(ProcessTree.java:647)
at hudson.util.ProcessTree$UnixProcess.killRecursively(ProcessTree.java:668)
at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:589)
at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1091)
at hudson.Launcher$RemoteLauncher$KillTask.call(Launcher.java:1082)
at hudson.remoting.UserRequest.perform(UserRequest.java:207)
at hudson.remoting.UserRequest.perform(UserRequest.java:53)
at hudson.remoting.Request$2.run(Request.java:358)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:844)
Caused: java.io.IOException: Remote call on macosx-follower failed
at hudson.remoting.Channel.call(Channel.java:916)
at hudson.Launcher$RemoteLauncher.kill(Launcher.java:1079)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:510)
at hudson.model.Run.execute(Run.java:1724)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:421)
Skipped archiving because build is not successful
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Used -Bmac.dmg.simple=true but this does NOT do the expected either, it does not do as described in the documentation:
Flag that indicates if DMG customization steps that depend on executing AppleScript code are skipped. Set to true to skip the steps. When set to true, the disk window does not have a background image, and the icons are not moved into place. If the systemWide argument is also set to true, then a symbolic link to the root Applications folder is added to the DMG file. If the systemWide argument is set to false, then only the application is added to the DMG file, no link to the desktop is added.
This is fairly important that at least the workaround worked - let me know if this needs to be reported separately.