<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Exception while attaching to running java process with javaagent.j in DevNet Sandbox</title>
    <link>https://community.cisco.com/t5/devnet-sandbox/exception-while-attaching-to-running-java-process-with-javaagent/m-p/4902490#M8433</link>
    <description>&lt;P&gt;Can you provide some details: which sandbox, which Cisco product/API (AppDynamics?)...what are you attempting to accomplish when the error occurs?&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2023 17:13:40 GMT</pubDate>
    <dc:creator>dstaudt</dc:creator>
    <dc:date>2023-08-09T17:13:40Z</dc:date>
    <item>
      <title>Exception while attaching to running java process with javaagent.jar</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/exception-while-attaching-to-running-java-process-with-javaagent/m-p/4902096#M8431</link>
      <description>&lt;P&gt;I need to attach to the&amp;nbsp; running java process id 1395 and is issuing below cmd for the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;$&amp;gt;sudo java -Xbootclasspath/a:/usr/local/java/amazon-corretto-8.252.09.1-linux-x64/lib/tools.jar -jar&amp;nbsp; /home/centos/JavaAgentDownoad/agentapp/javaagent.jar 1395&lt;/P&gt;
&lt;P&gt;Getting below exception.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Attaching to VM [1395]&lt;BR /&gt;java.lang.reflect.InvocationTargetException&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:498)&lt;BR /&gt;at com.singularity.ee.agent.appagent.AgentEntryPoint.main(AgentEntryPoint.java:1176)&lt;BR /&gt;Caused by: com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded&lt;BR /&gt;at sun.tools.attach.LinuxVirtualMachine.&amp;lt;init&amp;gt;(LinuxVirtualMachine.java:106)&lt;BR /&gt;at sun.tools.attach.LinuxAttachProvider.attachVirtualMachine(LinuxAttachProvider.java:63)&lt;BR /&gt;at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:208)&lt;BR /&gt;... 5 more&lt;BR /&gt;Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException&lt;BR /&gt;at com.singularity.ee.agent.appagent.AgentEntryPoint.main(AgentEntryPoint.java:1190)&lt;BR /&gt;Caused by: java.lang.reflect.InvocationTargetException&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:498)&lt;BR /&gt;at com.singularity.ee.agent.appagent.AgentEntryPoint.main(AgentEntryPoint.java:1176)&lt;BR /&gt;Caused by: com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded&lt;BR /&gt;at sun.tools.attach.LinuxVirtualMachine.&amp;lt;init&amp;gt;(LinuxVirtualMachine.java:106)&lt;BR /&gt;at sun.tools.attach.LinuxAttachProvider.attachVirtualMachine(LinuxAttachProvider.java:63)&lt;BR /&gt;at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:208)&lt;BR /&gt;... 5 more&lt;/P&gt;
&lt;P&gt;Kindly update on how to resolve the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 08:41:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/exception-while-attaching-to-running-java-process-with-javaagent/m-p/4902096#M8431</guid>
      <dc:creator>krkothan</dc:creator>
      <dc:date>2023-08-09T08:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while attaching to running java process with javaagent.j</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/exception-while-attaching-to-running-java-process-with-javaagent/m-p/4902490#M8433</link>
      <description>&lt;P&gt;Can you provide some details: which sandbox, which Cisco product/API (AppDynamics?)...what are you attempting to accomplish when the error occurs?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 17:13:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/exception-while-attaching-to-running-java-process-with-javaagent/m-p/4902490#M8433</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2023-08-09T17:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while attaching to running java process with javaagent.j</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/exception-while-attaching-to-running-java-process-with-javaagent/m-p/4902712#M8436</link>
      <description>&lt;P&gt;Thanks.&lt;BR /&gt;I am learning from &lt;A href="https://developer.cisco.com/learning/modules/appdynamics-fundamentals" target="_blank"&gt;https://developer.cisco.com/learning/modules/appdynamics-fundamentals&lt;/A&gt; and is working on &lt;BR /&gt;"Java Application Montoring Fundamentals"---&amp;gt;Completed Step 1 . Download the AppDynamics Java APM Agent and is in Step 2. Install the AppDynamics Java APM Agent where I was facing the issue.&amp;nbsp; I have installed&amp;nbsp; the javaagent in a different path and had not executed "chown ".&amp;nbsp;&amp;nbsp; Now seems to be working.&lt;BR /&gt;&lt;BR /&gt;But now the tomcat manager URL is not accessible and tomcat server is not running on 8080. &lt;BR /&gt;&amp;nbsp;url: &lt;A href="http://10.10.20.10:8080/manager/html" target="_blank"&gt;http://10.10.20.10:8080/manager/html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This was accessible yesterday. Server is accessible via ssh otherwise. &lt;BR /&gt;Can you share support link where vm issue ticket can be raised or suggest how to resolve this.?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 06:11:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/exception-while-attaching-to-running-java-process-with-javaagent/m-p/4902712#M8436</guid>
      <dc:creator>krkothan</dc:creator>
      <dc:date>2023-08-10T06:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while attaching to running java process with javaagent.j</title>
      <link>https://community.cisco.com/t5/devnet-sandbox/exception-while-attaching-to-running-java-process-with-javaagent/m-p/4902800#M8440</link>
      <description>&lt;P&gt;Thanks, Its resolved now by updating the path for CATALINA_OPTS env variable.&lt;/P&gt;
&lt;P&gt;Actually, I referred earlier “Getting Started Wizard -Java” and had configured env variable “CATALINA_OPTS” in “catalina.sh” file considering base path as “/usr/local”.&lt;/P&gt;
&lt;P&gt;Later I referred the “&lt;A href="https://developer.cisco.com/learning/modules/appdynamics-fundamentals/fnd-01-appd-apm-java/install-the-appdynamics-java-apm-agent/" target="_blank"&gt;https://developer.cisco.com/learning/modules/appdynamics-fundamentals/fnd-01-appd-apm-java/install-the-appdynamics-java-apm-agent/&lt;/A&gt;” &amp;nbsp;and as per this, added another env variable “CATALINA_OPTS” with base path as “/opt/”.&lt;/P&gt;
&lt;P&gt;Though the appagent files were relocated w.r.t the path referred in above 2 cases, the duplicate entries for CATALINA_OPTS variable &amp;nbsp;with different path was causing the issue.&lt;/P&gt;
&lt;P&gt;Later after removing duplicate env variable entry with incorrect path entry, it is working fine now.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 09:55:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-sandbox/exception-while-attaching-to-running-java-process-with-javaagent/m-p/4902800#M8440</guid>
      <dc:creator>krkothan</dc:creator>
      <dc:date>2023-08-11T09:55:20Z</dc:date>
    </item>
  </channel>
</rss>

