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

[Bundlers] incorrect directory leads to unclear stacktrace-output

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u20
    • Fix Version/s: 8u20
    • Component/s: deploy
    • Labels:
    • Environment:

      ubuntu

      Description

      Consider we mentioned root-owned directory as outDir; then we're getting such an output

      in case of linux.app:
      Exception: java.io.FileNotFoundException: /tmp/testApp/bundles/App1/App1 (No such file or directory)
      java.io.FileNotFoundException: /tmp/testApp/bundles/App1/App1 (No such file or directory)
      at java.io.FileOutputStream.open(Native Method)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:206)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:156)
      at com.sun.javafx.tools.packager.bundlers.IOUtils.copyFromURL(IOUtils.java:60)
      at com.sun.javafx.tools.packager.bundlers.LinuxAppBundler.doBundle(LinuxAppBundler.java:176)
      at com.sun.javafx.tools.packager.bundlers.LinuxAppBundler.execute(LinuxAppBundler.java:326)
              at ............................


      in case of rpm:
      java.io.IOException: Exec failed with code 1 command [[rpmbuild, -bb, /tmp/fxbundler9170257638221806133/images/linux-rpm.image/App1.spec, --define, %_sourcedir /tmp/fxbundler9170257638221806133/images/linux-rpm.image, --define, %_rpmdir /tmp/testApp/bundles, --define, %_topdir /tmp/fxbundler9170257638221806133/rmpbuildroot] in /tmp/fxbundler9170257638221806133/images/linux-rpm.image
      at com.sun.javafx.tools.packager.bundlers.IOUtils.exec(IOUtils.java:165)
      at com.sun.javafx.tools.packager.bundlers.IOUtils.exec(IOUtils.java:138)
      at com.sun.javafx.tools.packager.bundlers.IOUtils.exec(IOUtils.java:132)
      at com.sun.javafx.tools.packager.bundlers.LinuxRPMBundler.buildRPM(LinuxRPMBundler.java:377)
      at com.sun.javafx.tools.packager.bundlers.LinuxRPMBundler.bundle(LinuxRPMBundler.java:184)
      at com.sun.javafx.tools.packager.bundlers.LinuxRPMBundler.execute(LinuxRPMBundler.java:450)
      at ..................................

      In case of deb:
      java.io.IOException: Exec failed with code 2 command [[fakeroot, dpkg-deb, -b, app1-1.0, /tmp/testApp/bundles/app1-1.0.deb] in /tmp/fxbundler6694755598302590076/images/linux-deb.image
      at com.sun.javafx.tools.packager.bundlers.IOUtils.exec(IOUtils.java:165)
      at com.sun.javafx.tools.packager.bundlers.IOUtils.exec(IOUtils.java:138)
      at com.sun.javafx.tools.packager.bundlers.IOUtils.exec(IOUtils.java:132)
      at com.sun.javafx.tools.packager.bundlers.LinuxDebBundler.buildDeb(LinuxDebBundler.java:559)
      at com.sun.javafx.tools.packager.bundlers.LinuxDebBundler.bundle(LinuxDebBundler.java:252)
      at com.sun.javafx.tools.packager.bundlers.LinuxDebBundler.execute(LinuxDebBundler.java:621)
      at .............................................


      By the way, when I pass non-existing directory/subdirectory, it's created and everything's going right.

        Attachments

          Activity

            People

            Assignee:
            shemnon Danno Ferrin (Inactive)
            Reporter:
            dginzbur Dmitry Ginzburg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: