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

No diagnostic info in IOException from XDesktopPeer.launch

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: client-libs
    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux

      Description

      XDesktopPeer.launch contains:

              boolean result = gnome_url_show(uriByteArray);
              if (!result) {
                  throw new IOException("Failed to show URI:" + uri);
              }

      This tells you what the URI was, but not why it failed to launch:

      java.io.IOException: Failed to show URI:file:/home/jglick/browsefile
              at sun.awt.X11.XDesktopPeer.launch(XDesktopPeer.java:75)
              at sun.awt.X11.XDesktopPeer.open(XDesktopPeer.java:43)
              at java.awt.Desktop.open(Desktop.java:254)

      Thus it is not really possible to diagnose the problem. (In the above case, 'gnome-open file:/home/jglick/browsefile' works fine.)

        Attachments

          Activity

            People

            • Assignee:
              denis Denis Fokin (Inactive)
              Reporter:
              jglick Jesse Glick (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: