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

loadAgentLibrary fails to load JDWP agent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 6u14
    • core-svc
    • None
    • generic
    • generic

      My attempt at loading a JDWP service agent through the attach API results in the following exception:

      Exception in thread "main" com.sun.tools.attach.AgentLoadException: Failed to load agent library
      at sun.tools.attach.LinuxVirtualMachine.execute(LinuxVirtualMachine.java:198)
      at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:40)
      at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:61)

      My invocation is:

          vm.loadAgentLibrary("jdwp","transport=dt_socket,server=y,suspend=n,address=9999")

      Passing completely bogus values to either parameter doesn't change the error message, so it's possible that I'm doing something stupid, but I can't tell.

      No visible output is observed in the console of the target JVM.

            Unassigned Unassigned
            kkawagucsunw Kohsuke Kawaguchi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: