facebook

ERROR: transport error 202: connect failed: Connection refused

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #544288 Reply

    g_man1990
    Participant

    code here: https://github.com/ihaolin/java-benchmark/issues/1

    v: macos high sierra 10.13.1 17B1003
    v: myeclipse 2017 ci8
    main debug:

    # JMH version: 1.19
    # VM version: JDK 1.8.0_112, VM 25.112-b16
    # VM invoker: /Applications/Genuitec/MyEclipse 2017 CI/MyEclipse 2017 CI.app/Contents/Profile/binary/com.sun.java.jdk8.macosx.x86_64_1.8.0.v112/jre/bin/java
    # VM options: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:52221 -Xms512M -Dfile.encoding=UTF-8
    # Warmup: 20 iterations, 1 s each
    # Measurement: 20 iterations, 1 s each
    # Timeout: 10 min per iteration
    # Threads: 1 thread, will synchronize iterations
    # Benchmark mode: Throughput, ops/time
    # Benchmark: me.hao0.benchmark.JMHSample_01_HelloWorld.wellHelloThere
    
    # Run progress: 0.00% complete, ETA 00:00:40
    # Fork: 1 of 1
    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 [debugInit.c:750]
    <forked VM failed with exit code 2>
    <stdout last='20 lines'>
    </stdout>
    <stderr last='20 lines'>
    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 [debugInit.c:750]
    </stderr>
    
    # Run complete. Total time: 00:00:00
    
    Benchmark  Mode  Cnt  Score   Error  Units
    • This topic was modified 6 years, 3 months ago by g_man1990.
    #544438 Reply

    g_man1990
    Participant
    #544439 Reply

    support-swapna
    Moderator

    g_man1990,

    Sorry that you are seeing this issue.

    Can you please check if any of the suggestions discussed in these threads help?
    https://stackoverflow.com/questions/18612986/eclipse-jdwp-error-when-trying-to-debug
    https://stackoverflow.com/questions/7487526/unable-to-debug-in-java-with-eclipse

    If you are still seeing issues, then please share with us the exact steps you followed to debug the application to help us replicate the problem at our end.

    Please note that we released 2017 CI 9 last week. If you haven’t yet updated, then please go to Help > Check for Updates and update to CI 9.

    Apologies for inconvenience caused.

    –Swapna
    MyEclipse Support

    #544491 Reply

    g_man1990
    Participant

    just debug:

    https://github.com/ihaolin/java-benchmark/blob/master/src/main/java/me/hao0/benchmark/JMHSample_01_HelloWorld.java

    • This reply was modified 6 years, 3 months ago by g_man1990.
    #544642 Reply

    support-tony
    Keymaster

    g_man1990,

    It looks as though the JMH benchmarks are not easy to debug:

    https://stackoverflow.com/questions/42698583/jmh-forks-threads-and-debug

    It appears that the benchmark code is trying to launch a process similar to the java debugger (presumably so that it can obtain the information it needs). If you place a breakpoint at the new Runner(opt).run() line in the java program, you will be able to debug and step through the code until the benchmark tries to run that process. But this will conflict with the debug process already launched.

    So, this isn’t a MyEclipse issue and you will have to seek assistance in other forums (like StackOverflow).

    Sorry for the inconvenience.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: ERROR: transport error 202: connect failed: Connection refused

You must be logged in to post in the forum log in