Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82886 - JDI (jpda) doesn't seems to work with sun-jdk-1.5.0.01 or sun-jdk-1.5.0
Summary: JDI (jpda) doesn't seems to work with sun-jdk-1.5.0.01 or sun-jdk-1.5.0
Status: RESOLVED DUPLICATE of bug 79206
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Java team
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-21 15:23 UTC by dyurne
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dyurne 2005-02-21 15:23:08 UTC
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);
    }

}
Comment 1 Jan Brinkmann (RETIRED) gentoo-dev 2005-03-25 16:25:31 UTC

*** This bug has been marked as a duplicate of 79206 ***