Incorrect file path in an exception message when .java_pid is not accessible on Unix

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 11
    • Affects Version/s: 10
    • Component/s: core-svc
    • b01

        When connecting to a VM via Attach API, if the client can't access the .java_pid file an AttachNotSupportedException will be thrown:
            com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file /proc/<PID>/cwd/.attach_pid<PID>: target process 14870 doesn't respond within 10500ms or HotSpot VM not loaded

        The message says that /proc/<PID>/cwd/.attach_pid<PID> can't be opened, but .attach_pid is created by the client itself; what the client waits for is the /tmp/.java_pid<PID> socket file.
        The message should be changed to mention the .java_pid instead of the .attach_pid.

              Assignee:
              Gary Adams (Inactive)
              Reporter:
              Stanislav Lukyanov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: