{"action":"created","issue":{"url":"https://api.github.com/repos/alibaba/arthas/issues/196","repository_url":"https://api.github.com/repos/alibaba/arthas","labels_url":"https://api.github.com/repos/alibaba/arthas/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/arthas/issues/196/comments","events_url":"https://api.github.com/repos/alibaba/arthas/issues/196/events","html_url":"https://github.com/alibaba/arthas/issues/196","id":368014720,"node_id":"MDU6SXNzdWUzNjgwMTQ3MjA=","number":196,"title":"本机调试运行LocalDebugTest时 VirtualMachine.attach 失败 求解。","user":{"login":"sanxun0325","id":28588342,"node_id":"MDQ6VXNlcjI4NTg4MzQy","avatar_url":"https://avatars0.githubusercontent.com/u/28588342?v=4","gravatar_id":"","url":"https://api.github.com/users/sanxun0325","html_url":"https://github.com/sanxun0325","followers_url":"https://api.github.com/users/sanxun0325/followers","following_url":"https://api.github.com/users/sanxun0325/following{/other_user}","gists_url":"https://api.github.com/users/sanxun0325/gists{/gist_id}","starred_url":"https://api.github.com/users/sanxun0325/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanxun0325/subscriptions","organizations_url":"https://api.github.com/users/sanxun0325/orgs","repos_url":"https://api.github.com/users/sanxun0325/repos","events_url":"https://api.github.com/users/sanxun0325/events{/privacy}","received_events_url":"https://api.github.com/users/sanxun0325/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-09T02:15:50Z","updated_at":"2018-10-10T06:09:12Z","closed_at":null,"author_association":"NONE","body":"VirtualMachine.attach 失败 发现 AttachProvider.providers() 返回的list size=0\r\n\r\npid:244676\r\n```\r\n[Ljava.lang.String;@42b61c8f244676Start arthas failed, exception stack trace: \r\nDisconnected from the target VM, address: '127.0.0.1:50732', transport: 'socket'\r\njava.lang.NullPointerException\r\n\tat com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:182)\r\n\tat com.taobao.arthas.core.Arthas.attachAgent(Arthas.java:68)\r\n\tat com.taobao.arthas.core.Arthas.<init>(Arthas.java:26)\r\n\tat com.taobao.arthas.core.Arthas.main(Arthas.java:98)\r\n\tat LocalDebugTest$1.run(LocalDebugTest.java:33)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\n\r\nProcess finished with exit code -1\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/alibaba/arthas/issues/comments/428449616","html_url":"https://github.com/alibaba/arthas/issues/196#issuecomment-428449616","issue_url":"https://api.github.com/repos/alibaba/arthas/issues/196","id":428449616,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODQ0OTYxNg==","user":{"login":"Hearen","id":10859176,"node_id":"MDQ6VXNlcjEwODU5MTc2","avatar_url":"https://avatars3.githubusercontent.com/u/10859176?v=4","gravatar_id":"","url":"https://api.github.com/users/Hearen","html_url":"https://github.com/Hearen","followers_url":"https://api.github.com/users/Hearen/followers","following_url":"https://api.github.com/users/Hearen/following{/other_user}","gists_url":"https://api.github.com/users/Hearen/gists{/gist_id}","starred_url":"https://api.github.com/users/Hearen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hearen/subscriptions","organizations_url":"https://api.github.com/users/Hearen/orgs","repos_url":"https://api.github.com/users/Hearen/repos","events_url":"https://api.github.com/users/Hearen/events{/privacy}","received_events_url":"https://api.github.com/users/Hearen/received_events","type":"User","site_admin":false},"created_at":"2018-10-10T06:09:12Z","updated_at":"2018-10-10T06:09:12Z","author_association":"CONTRIBUTOR","body":"Encountered the same issue and details are:\r\n\r\n### Environment\r\n\r\n* Arthas version: 3.0.4\r\n* Operating System version: Linux hearen-OptiPlex-7050 4.15.0-36-generic #39~16.04.1-Ubuntu SMP Tue Sep 25 08:59:23 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux\r\n* Java version of target JVM: jdk1.8.0_144\r\n* Java version of JVM used to attach: jdk1.8.0_144\r\n\r\n### Steps to reproduce this issue\r\n\r\n1. Just run the `**/arthas/core/src/test/java/LocalDebugTest.java` in debug mode;\r\n\r\n### Expected Result\r\n\r\nArthas server started and print out:\r\n\r\n`代码植入成功`\r\n\r\n### Actual Result\r\n\r\nError as:\r\n\r\n```\r\n/opt/jdk1.8.0_144/bin/java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:44829,suspend=y,server=n -Dvisualvm.id=78064397008490 -Dfile.encoding=UTF-8 -classpath /opt/jdk1.8.0_144/jre/lib/charsets.jar:/opt/jdk1.8.0_144/jre/lib/deploy.jar:/opt/jdk1.8.0_144/jre/lib/ext/cldrdata.jar:/opt/jdk1.8.0_144/jre/lib/ext/dnsns.jar:/opt/jdk1.8.0_144/jre/lib/ext/jaccess.jar:/opt/jdk1.8.0_144/jre/lib/ext/jfxrt.jar:/opt/jdk1.8.0_144/jre/lib/ext/localedata.jar:/opt/jdk1.8.0_144/jre/lib/ext/nashorn.jar:/opt/jdk1.8.0_144/jre/lib/ext/sunec.jar:/opt/jdk1.8.0_144/jre/lib/ext/sunjce_provider.jar:/opt/jdk1.8.0_144/jre/lib/ext/sunpkcs11.jar:/opt/jdk1.8.0_144/jre/lib/ext/zipfs.jar:/opt/jdk1.8.0_144/jre/lib/javaws.jar:/opt/jdk1.8.0_144/jre/lib/jce.jar:/opt/jdk1.8.0_144/jre/lib/jfr.jar:/opt/jdk1.8.0_144/jre/lib/jfxswt.jar:/opt/jdk1.8.0_144/jre/lib/jsse.jar:/opt/jdk1.8.0_144/jre/lib/management-agent.jar:/opt/jdk1.8.0_144/jre/lib/plugin.jar:/opt/jdk1.8.0_144/jre/lib/resources.jar:/opt/jdk1.8.0_144/jre/lib/rt.jar:/home/hearen/git/personal/arthas/core/target/test-classes:/home/hearen/git/personal/arthas/core/target/classes:/home/hearen/.m2/repository/org/ow2/asm/asm/6.0/asm-6.0.jar:/home/hearen/.m2/repository/org/ow2/asm/asm-commons/6.0/asm-commons-6.0.jar:/home/hearen/.m2/repository/org/ow2/asm/asm-tree/6.0/asm-tree-6.0.jar:/home/hearen/.m2/repository/com/alibaba/middleware/termd-core/1.1.5/termd-core-1.1.5.jar:/home/hearen/.m2/repository/io/netty/netty-common/4.1.29.Final/netty-common-4.1.29.Final.jar:/home/hearen/.m2/repository/io/netty/netty-buffer/4.1.29.Final/netty-buffer-4.1.29.Final.jar:/home/hearen/.m2/repository/io/netty/netty-transport/4.1.29.Final/netty-transport-4.1.29.Final.jar:/home/hearen/.m2/repository/io/netty/netty-resolver/4.1.29.Final/netty-resolver-4.1.29.Final.jar:/home/hearen/.m2/repository/io/netty/netty-handler/4.1.29.Final/netty-handler-4.1.29.Final.jar:/home/hearen/.m2/repository/io/netty/netty-codec/4.1.29.Final/netty-codec-4.1.29.Final.jar:/home/hearen/.m2/repository/io/netty/netty-codec-http/4.1.29.Final/netty-codec-http-4.1.29.Final.jar:/home/hearen/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.7.4/jackson-core-2.7.4.jar:/home/hearen/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.7.4/jackson-databind-2.7.4.jar:/home/hearen/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.7.0/jackson-annotations-2.7.0.jar:/home/hearen/.m2/repository/com/alibaba/middleware/cli/1.0.1/cli-1.0.1.jar:/home/hearen/.m2/repository/com/taobao/text/text-ui/0.0.2/text-ui-0.0.2.jar:/home/hearen/.m2/repository/com/fifesoft/rsyntaxtextarea/2.5.8/rsyntaxtextarea-2.5.8.jar:/home/hearen/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar:/home/hearen/.m2/repository/ch/qos/logback/logback-classic/1.1.3/logback-classic-1.1.3.jar:/home/hearen/.m2/repository/ch/qos/logback/logback-core/1.1.3/logback-core-1.1.3.jar:/home/hearen/.m2/repository/com/taobao/middleware/logger.api/0.2.6/logger.api-0.2.6.jar:/home/hearen/.m2/repository/com/taobao/middleware/logger.core/0.2.6/logger.core-0.2.6.jar:/home/hearen/.m2/repository/com/taobao/middleware/logger.pandolet/0.2.6/logger.pandolet-0.2.6.jar:/home/hearen/.m2/repository/com/alibaba/fastjson/1.2.33/fastjson-1.2.33.jar:/home/hearen/.m2/repository/ognl/ognl/3.1.12/ognl-3.1.12.jar:/home/hearen/.m2/repository/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar:/home/hearen/.m2/repository/junit/junit/4.11/junit-4.11.jar:/home/hearen/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/home/hearen/.m2/repository/org/benf/cfr/0.132/cfr-0.132.jar:/home/hearen/.m2/repository/org/powermock/powermock-module-javaagent/1.7.4/powermock-module-javaagent-1.7.4.jar:/home/hearen/.m2/repository/org/powermock/powermock-core/1.7.4/powermock-core-1.7.4.jar:/home/hearen/.m2/repository/org/powermock/powermock-reflect/1.7.4/powermock-reflect-1.7.4.jar:/home/hearen/.m2/repository/org/objenesis/objenesis/2.4/objenesis-2.4.jar:/home/hearen/.m2/repository/org/mockito/mockito-core/2.8.9/mockito-core-2.8.9.jar:/home/hearen/.m2/repository/net/bytebuddy/byte-buddy/1.6.14/byte-buddy-1.6.14.jar:/home/hearen/.m2/repository/net/bytebuddy/byte-buddy-agent/1.6.14/byte-buddy-agent-1.6.14.jar:/home/hearen/Downloads/idea-IU-172.4343.14/lib/idea_rt.jar LocalDebugTest\r\nConnected to the target VM, address: '127.0.0.1:44829', transport: 'socket'\r\npid:32218\r\nStart arthas failed, exception stack trace: \r\njava.lang.NullPointerException\r\n\tat com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:182)\r\n\tat com.taobao.arthas.core.Arthas.attachAgent(Arthas.java:67)\r\n\tat com.taobao.arthas.core.Arthas.<init>(Arthas.java:25)Disconnected from the target VM, address: '127.0.0.1:44829', transport: 'socket'\r\n\r\n\tat com.taobao.arthas.core.Arthas.main(Arthas.java:96)\r\n\tat LocalDebugTest$1.run(LocalDebugTest.java:32)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\n\r\nProcess finished with exit code 255\r\n```\r\n"}}
{"actor":{"display_login":"Hearen"}}