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

OSX jfxpackager fails when creating DMG headlessly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • 8u5, 8u11
    • deploy
    • OSX 10.9.4

      If the user tries to package a JavaFX application using the ANT javafx packager targets. The resulting build will fail with the error IF the build is invoked on a mac by a user NOT logged into the GUI (but logged into the machine via SSH):

      Building DMG package for APPNAME
        Using default package resource [Bundle config file] (add package/macosx/Info.plist to the class path to customize)
        Using custom package resource [icon] (loaded from package/macosx/APPNAME.icns on class path)
      security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.
        Config files are saved to /var/folders/sx/q8hf7jt14f75wwh1mqmsn16w0000gq/T/fxbundler3977831362691447410/macosx. Use them to customize package.
        Using default package resource [dmg background] (add package/macosx/APPNAME-background.png to the class path to customize)
        Using default package resource [volume icon] (add package/macosx/APPNAME-volume.icns to the class path to customize)
      Using default package resource [script to run after application image is populated] (add package/macosx/APPNAME-post-image.sh to the class path to customize)
        Using default package resource [DMG setup script] (add package/macosx/APPNAME-dmg-setup.scpt to the class path to customize)
      _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
      /var/folders/sx/q8hf7jt14f75wwh1mqmsn16w0000gq/T/fxbundler3977831362691447410/macosx/APPNAME-dmg-setup.scpt:56:60: execution error: An error of type -10810 has occurred. (-10810)
        Config files are saved to /var/folders/sx/q8hf7jt14f75wwh1mqmsn16w0000gq/T/fxbundler3977831362691447410/macosx. Use them to customize package.

      This is happening when a mac machine is used as a slave node in Jenkins, but seems like a general enough issue where there's an underlying assumption that the user who is running the build is also actively logged into the GUI on that particular machine.

      For even more information please see: http://stackoverflow.com/questions/26223496/javafx-packager-fails-when-creating-dmg

            shemnon Danno Ferrin (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: