Closed ibalashov closed 11 years ago
what were you running? tomcat?
No, just a plain Java app. I believe here might be some issue with hostname configuration, however the failure to connect to localhost remains unexplained...
2013/3/7 Vojtěch Krása notifications@github.com
what were you running? tomcat?
— Reply to this email directly or view it on GitHubhttps://github.com/krasa/VisualVMLauncher/issues/6#issuecomment-14525075 .
Does the problem persist? I just tried OSX and it works ok for me.
Thanks, but the issue still persists. Here is the full command:
/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Home/bin/java -Dvisualvm.id=1362921478022184000 -ea -Xmx1g -Xdebug -Xrunjdwp:transport=dt_socket,address=xman-wire.iponweb.lan:56164,suspend=y,server=n -Dvisualvm.id=1362921475022065000 -Didea.launcher.port=7536 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 12.app/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA 12.app/plugins/testng/lib/testng-plugin.jar:/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Home/lib/deploy.jar:/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Home/lib/javaws.jar:/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Home/lib/jce.jar:/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Home/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Home/lib/plugin.jar:/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Classes/charsets.jar:/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Classes/classes.jar:/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Classes/jsse.jar:/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Classes/ui.jar:/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Home/lib/ext/apple_provider.jar:/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Home/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Home/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Home/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Home/lib/ext/sunpkcs11.jar:/Users/xman/Documents/work/audience/scripts/target/test-classes:/Users/xman/Documents/work/audience/scripts/target/classes:/Users/xman/Documents/work/audience/core/hbase-audience/target/classes:/Users/xman/.m2/repository/org/apache/hbase/hbase/0.90.6-cdh3u5/hbase-0.90.6-cdh3u5.jar:/Users/xman/.m2/repository/com/google/guava/guava/11.0.2/guava-11.0.2.jar:/Users/xman/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar:/Users/xman/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar:/Users/xman/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar:/Users/xman/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/Users/xman/.m2/repository/commons-lang/commons-lang/2.5/commons-lang-2.5.jar:/Users/xman/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar:/Users/xman/.m2/repository/org/apache/avro/avro/1.6.1/avro-1.6.1.jar:/Users/xman/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.5.2/jackson-mapper-asl-1.5.2.jar:/Users/xman/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.5.2/jackson-core-asl-1.5.2.jar:/Users/xman/.m2/repository/org/xerial/snappy/snappy-java/1.0.4.1/snappy-java-1.0.4.1.jar:/Users/xman/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar:/Users/xman/.m2/repository/org/apache/hadoop/hadoop-core/0.20.2-cdh3u5/hadoop-core-0.20.2-cdh3u5.jar:/Users/xman/.m2/repository/xmlenc/xmlenc/0.52/xmlenc-0.52.jar:/Users/xman/.m2/repository/org/apache/hadoop/thirdparty/guava/guava/r09-jarjar/guava-r09-jarjar.jar:/Users/xman/.m2/repository/commons-net/commons-net/1.4.1/commons-net-1.4.1.jar:/Users/xman/.m2/repository/commons-io/commons-io/2.0.1/commons-io-2.0.1.jar:/Users/xman/.m2/repository/org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26.jar:/Users/xman/.m2/repository/org/mortbay/jetty/jetty-util/6.1.26/jetty-util-6.1.26.jar:/Users/xman/.m2/repository/asm/asm/3.2/asm-3.2.jar:/Users/xman/.m2/repository/com/sun/jersey/jersey-server/1.8/jersey-server-1.8.jar:/Users/xman/.m2/repository/javax/servlet/jsp/jsp-api/2.1/jsp-api-2.1.jar:/Users/xman/.m2/repository/commons-el/commons-el/1.0/commons-el-1.0.jar:/Users/xman/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/Users/xman/.m2/repository/org/apache/avro/avro-ipc/1.5.4/avro-ipc-1.5.4.jar:/Users/xman/.m2/repository/org/jboss/netty/netty/3.2.4.Final/netty-3.2.4.Final.jar:/Users/xman/.m2/repository/org/apache/velocity/velocity/1.7/velocity-1.7.jar:/Users/xman/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar:/Users/xman/.m2/repository/org/apache/zookeeper/zookeeper/3.3.5-cdh3u5/zookeeper-3.3.5-cdh3u5.jar:/Users/xman/.m2/repository/org/apache/thrift/thrift/0.2.0/thrift-0.2.0.jar:/Users/xman/.m2/repository/org/mortbay/jetty/jsp-2.1/6.1.14/jsp-2.1-6.1.14.jar:/Users/xman/.m2/repository/org/eclipse/jdt/core/3.1.1/core-3.1.1.jar:/Users/xman/.m2/repository/org/mortbay/jetty/jsp-api-2.1/6.1.14/jsp-api-2.1-6.1.14.jar:/Users/xman/.m2/repository/org/mortbay/jetty/servlet-api-2.5/6.1.14/servlet-api-2.5-6.1.14.jar:/Users/xman/.m2/repository/org/codehaus/jackson/jackson-jaxrs/1.8.8/jackson-jaxrs-1.8.8.jar:/Users/xman/.m2/repository/org/codehaus/jackson/jackson-xc/1.8.8/jackson-xc-1.8.8.jar:/Users/xman/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar:/Users/xman/.m2/repository/org/jamon/jamon-runtime/2.3.1/jamon-runtime-2.3.1.jar:/Users/xman/.m2/repository/com/google/protobuf/protobuf-java/2.3.0/protobuf-java-2.3.0.jar:/Users/xman/.m2/repository/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar:/Users/xman/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar:/Users/xman/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/Users/xman/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar:/Users/xman/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar:/Users/xman/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar:/Users/xman/.m2/repository/org/apache/hadoop/hadoop-test/0.20.2-cdh3u5/hadoop-test-0.20.2-cdh3u5.jar:/Users/xman/.m2/repository/org/apache/ftpserver/ftplet-api/1.0.0/ftplet-api-1.0.0.jar:/Users/xman/.m2/repository/org/apache/mina/mina-core/2.0.0-M5/mina-core-2.0.0-M5.jar:/Users/xman/.m2/repository/org/apache/ftpserver/ftpserver-deprecated/1.0.0-M2/ftpserver-deprecated-1.0.0-M2.jar:/Users/xman/.m2/repository/net/iponweb/hbase/hbase-filter-proxy/1.1/hbase-filter-proxy-1.1.jar:/Users/xman/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar:/Users/xman/.m2/repository/tomcat/jasper-runtime/5.5.23/jasper-runtime-5.5.23.jar:/Users/xman/.m2/repository/tomcat/jasper-compiler/5.5.23/jasper-compiler-5.5.23.jar:/Users/xman/.m2/repository/javax/servlet/jsp-api/2.0/jsp-api-2.0.jar:/Users/xman/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar:/Users/xman/.m2/repository/com/sun/jersey/jersey-core/1.8/jersey-core-1.8.jar:/Users/xman/.m2/repository/com/sun/jersey/jersey-json/1.8/jersey-json-1.8.jar:/Users/xman/.m2/repository/org/codehaus/jettison/jettison/1.1/jettison-1.1.jar:/Users/xman/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.3-1/jaxb-impl-2.2.3-1.jar:/Users/xman/.m2/repository/net/java/dev/jets3t/jets3t/0.6.1/jets3t-0.6.1.jar:/Users/xman/.m2/repository/hsqldb/hsqldb/1.8.0.7/hsqldb-1.8.0.7.jar:/Users/xman/.m2/repository/org/springframework/spring-beans/3.0.5.RELEASE/spring-beans-3.0.5.RELEASE.jar:/Users/xman/.m2/repository/org/springframework/spring-core/3.0.5.RELEASE/spring-core-3.0.5.RELEASE.jar:/Users/xman/.m2/repository/org/springframework/spring-asm/3.0.5.RELEASE/spring-asm-3.0.5.RELEASE.jar:/Users/xman/.m2/repository/org/springframework/spring-webmvc/3.0.5.RELEASE/spring-webmvc-3.0.5.RELEASE.jar:/Users/xman/.m2/repository/org/springframework/spring-context/3.0.5.RELEASE/spring-context-3.0.5.RELEASE.jar:/Users/xman/.m2/repository/org/springframework/spring-aop/3.0.5.RELEASE/spring-aop-3.0.5.RELEASE.jar:/Users/xman/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar:/Users/xman/.m2/repository/org/springframework/spring-expression/3.0.5.RELEASE/spring-expression-3.0.5.RELEASE.jar:/Users/xman/.m2/repository/org/springframework/spring-context-support/3.0.5.RELEASE/spring-context-support-3.0.5.RELEASE.jar:/Users/xman/.m2/repository/org/springframework/spring-web/3.0.5.RELEASE/spring-web-3.0.5.RELEASE.jar:/Users/xman/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar:/Users/xman/.m2/repository/com/beust/jcommander/1.17/jcommander-1.17.jar:/Users/xman/.m2/repository/com/google/code/atinject/atinject/1.0.0-rev3/atinject-1.0.0-rev3.jar:/Users/xman/.m2/repository/com/hadoop/compression/hadoop-gpl-compression/0.1.0/hadoop-gpl-compression-0.1.0.jar:/Users/xman/.m2/repository/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar:/Users/xman/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/Users/xman/.m2/repository/joda-time/joda-time/2.1/joda-time-2.1.jar:/Users/xman/Documents/work/audience/core/util/target/classes:/Users/xman/Documents/work/audience/core/data-lib/target/classes:/Users/xman/.m2/repository/org/antlr/antlr-runtime/3.5/antlr-runtime-3.5.jar:/Users/xman/.m2/repository/org/antlr/stringtemplate/3.2.1/stringtemplate-3.2.1.jar:/Users/xman/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar:/Users/xman/.m2/repository/com/fasterxml/uuid/java-uuid-generator/3.1.3/java-uuid-generator-3.1.3.jar:/Users/xman/.m2/repository/com/google/http-client/google-http-client/1.11.0-beta/google-http-client-1.11.0-beta.jar:/Users/xman/.m2/repository/org/apache/httpcomponents/httpclient/4.0.3/httpclient-4.0.3.jar:/Users/xman/.m2/repository/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar:/Users/xman/.m2/repository/xpp3/xpp3/1.1.4c/xpp3-1.1.4c.jar:/Users/xman/.m2/repository/org/testng/testng/6.1.1/testng-6.1.1.jar:/Users/xman/.m2/repository/org/beanshell/bsh/2.0b4/bsh-2.0b4.jar:/Users/xman/.m2/repository/org/yaml/snakeyaml/1.6/snakeyaml-1.6.jar:/Users/xman/.m2/repository/net/sf/trove4j/trove4j/3.0.3/trove4j-3.0.3.jar:/Users/xman/.m2/repository/org/easymock/easymock/3.1/easymock-3.1.jar:/Users/xman/.m2/repository/cglib/cglib-nodep/2.2.2/cglib-nodep-2.2.2.jar:/Users/xman/.m2/repository/org/objenesis/objenesis/1.2/objenesis-1.2.jar:/Users/xman/.m2/repository/org/powermock/powermock-module-testng/1.5/powermock-module-testng-1.5.jar:/Users/xman/.m2/repository/org/powermock/powermock-core/1.5/powermock-core-1.5.jar:/Users/xman/.m2/repository/org/powermock/powermock-reflect/1.5/powermock-reflect-1.5.jar:/Users/xman/.m2/repository/org/javassist/javassist/3.17.1-GA/javassist-3.17.1-GA.jar:/Users/xman/.m2/repository/org/powermock/powermock-module-testng-common/1.5/powermock-module-testng-common-1.5.jar:/Users/xman/.m2/repository/org/powermock/powermock-api-easymock/1.5/powermock-api-easymock-1.5.jar:/Users/xman/.m2/repository/org/powermock/powermock-api-support/1.5/powermock-api-support-1.5.jar:/Applications/IntelliJ IDEA 12.app/plugins/testng/lib/testng.jar:/Applications/IntelliJ IDEA 12.app/lib/idea_rt.jar" com.intellij.rt.execution.application.AppMain org.testng.RemoteTestNGStarter -port 60556 -usedefaultlisteners false -socket60557 -temp /private/var/folders/m7/4rfb29gs5zg4nvzmssfbr8280000gn/T/idea_testng5592984471056003066.tmp ERROR: transport error 202: connect failed: Connection refused ERROR: JDWP: Failed to initialize transport via xman-wire.iponweb.lan:56164, trying localhost via 127.0.0.1:56164 ERROR: transport error 202: connect failed: Connection refused ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690] FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
And does it happen only if you run it with VisualVM?
Yes, it works fine if I just run or debug the app.
2013/3/10 Vojtěch Krása notifications@github.com
And does it happen only if you run it with VisualVM?
— Reply to this email directly or view it on GitHubhttps://github.com/krasa/VisualVMLauncher/issues/6#issuecomment-14681890 .
I will ask on IntelliJ forum, because I have no idea how it could happen.
Could you please try this new version? https://www.dropbox.com/s/lqzjsvm2mzg3wnk/VisualVMLauncher.jar
Thanks, I've uninstalled VisualVMLauncher plugin from the idea plugins menu, and dropped this jar into plugins. Unfortunately, the problem didn't go away. However, I must say, that the error exists in TestNG running configuration (I was wrong about plain java app previously, sorry for the confusion). When I run plain java class, it seems to working fine.
Good news, I was able to reproduce it.
Fixed version is uploaded and waiting for approval. Thank you.
It works now, thanks a lot
Off-topic: Is there any possibly to run VisualVM with Sampler and/or Profiler started?
Good.
Unfortunately it is not possible. No such thing is implemented in VisualVM, as far as I know.
Get an error upon 'Run with VisualVM':
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) ERROR: transport error 202: connect failed: Connection refused ERROR: JDWP: Failed to initialize transport via barcelona-2.local:56164, trying localhost via 127.0.0.1:56164 ERROR: transport error 202: connect failed: Connection refused ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]