{"id":201,"date":"2015-12-01T04:40:14","date_gmt":"2015-12-01T04:40:14","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/07\/04\/jpenable-crashes-while-attaching-jprofiler-to-jvm-in-offline-mode-unknown-error-collection-of-common-programming-errors\/"},"modified":"2015-12-01T04:40:14","modified_gmt":"2015-12-01T04:40:14","slug":"jpenable-crashes-while-attaching-jprofiler-to-jvm-in-offline-mode-unknown-error-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/12\/01\/jpenable-crashes-while-attaching-jprofiler-to-jvm-in-offline-mode-unknown-error-collection-of-common-programming-errors\/","title":{"rendered":"jpenable crashes while attaching JProfiler to JVM in offline mode&#8211;UnKnown Error&#8211;Collection of common programming errors"},"content":{"rendered":"<p>I use jprofiler 7.2.2, app server (JBoss) is running java 1.6.0_30. The same user is used to start JBoss and JProfiler.<\/p>\n<p>I execute jpenable, choose offline mode, provide my setting file and then process fails with two different errors:<\/p>\n<pre><code>    Using the single session in the config file.\nERROR: Attaching is not supported: Unable to open socket file: target process not responding or HotSpot VM not loaded\ncom.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded\n        at sun.tools.attach.LinuxVirtualMachine.(LinuxVirtualMachine.java:100)\n        at sun.tools.attach.LinuxAttachProvider.attachVirtualMachine(LinuxAttachProvider.java:63)\n        at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:195)\n        at com.jprofiler.frontend.attach.c.b(ejt:266)\n        at com.jprofiler.frontend.attach.c.a(ejt:253)\n        at com.jprofiler.frontend.attach.c.a(ejt:223)\n        at com.jprofiler.frontend.EnableApplication.b(ejt:157)\n        at com.jprofiler.frontend.EnableApplication.g(ejt:83)\n        at com.jprofiler.frontend.EnableApplication.main(ejt:237)\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)\n        at java.lang.reflect.Method.invoke(Method.java:597)\n        at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)\n        at com.install4j.runtime.launcher.Launcher.main(Unknown Source)\n<\/code><\/pre>\n<p>and<\/p>\n<pre><code>    Using the single session in the config file.\njava.io.IOException: Premature EOF\n        at sun.tools.attach.HotSpotVirtualMachine.readInt(HotSpotVirtualMachine.java:226)\n        at sun.tools.attach.LinuxVirtualMachine.execute(LinuxVirtualMachine.java:193)\n        at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:40)\n        at sun.tools.attach.HotSpotVirtualMachine.loadAgentPath(HotSpotVirtualMachine.java:70)\n        at com.jprofiler.frontend.attach.AgentLoader.a(ejt:26)\n        at com.jprofiler.frontend.attach.c.b(ejt:266)\n        at com.jprofiler.frontend.attach.c.a(ejt:253)\n        at com.jprofiler.frontend.attach.c.a(ejt:223)\n        at com.jprofiler.frontend.EnableApplication.b(ejt:157)\n        at com.jprofiler.frontend.EnableApplication.g(ejt:83)\n        at com.jprofiler.frontend.EnableApplication.main(ejt:237)\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)\n        at java.lang.reflect.Method.invoke(Method.java:597)\n        at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)\n<\/code><\/pre>\n<p>Any ideas? Thanks<\/p>\n<p id=\"rop\"><small>Originally posted 2013-07-04 08:47:20. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I use jprofiler 7.2.2, app server (JBoss) is running java 1.6.0_30. The same user is used to start JBoss and JProfiler. I execute jpenable, choose offline mode, provide my setting file and then process fails with two different errors: Using the single session in the config file. ERROR: Attaching is not supported: Unable to open [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-201","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=201"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/201\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}