loadAgentLibrary fails to load JDWP agent

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 6u14
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: