i have a problem when i try to use jdk 1.5.0 or 1.5.0.01 with JDI (http://java.sun.com/j2se/1.5.0/docs/guide/jpda/). But only with JDI, swing applications and others classics java programms works fine for me. when i try to use TTY ( alias jdb) this error shows up : java com/sun/tools/example/debug/tty/TTY Test Initializing jdb ... > stop at Test:18 Deferring breakpoint Test:18. It will be set after the class is loaded. > run run Test VM start exception: VM initialization failed for: /opt/sun-jdk-1.5.0/jre/bin/java -Xdebug -Xrunjdwp:transport=dt_socket,address=tux:33861,suspend=y Test ERROR: transport error 202: connect failed: Connection timed out ["transport.c",L41] ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) ["debugInit.c",L497] JDWP exit error JVMTI_ERROR_INTERNAL(113): No transports initializedFATAL ERROR in native method: JDWP No transports initialized, jvmtiError=JVMTI_ERROR_INTERNAL(113) Fatal error: Target VM failed to initialize. Test code works fine, i have tested it on ubunutu linux 4.10 and on mandrake 10.1, jdb do the expected results. CLASSPATH is ok ( contains tools.jar ). Reproducible: Always Steps to Reproduce: 1. java com/sun/tools/example/debug/tty/TTY Test || jdb Test 2. 3. Actual Results: Java Target VM failed to initialize Expected Results: $java com/sun/tools/example/debug/tty/TTY Test > stop at Test:18 > run > print toto toto = 1 >exit $ Test code : import java.util.*; public class Test { long toto; public void affiche(int i ) { System.out.println(i); } Test (long toto) { this.toto = toto; for ( int i=0 ; i<=5 ; i=i+1 ) { affiche(i); try { java.lang.Thread.sleep( toto*500 ); }catch ( Exception exc ) { System.out.println("erreur sleep"); } } } public static void main ( String[] args) { Test t = new Test(1); } }
*** This bug has been marked as a duplicate of 79206 ***