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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 11
    • 10
    • core-svc
    • b01

    Description

      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.

      Attachments

        Activity

          People

            gadams Gary Adams (Inactive)
            slukyanov Stanislav Lukyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: