Friday, December 1, 2006

Eclipse+JBoss Error : "transport error 202"

I get the following error when starting JBoss 4.0.5 from Eclipse/JBossIDE :

ERROR: transport error 202: gethostbyname: unknown host ["transport.c",L41]
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) ["debugInit.c",L500]
JDWP exit error JVMTI_ERROR_INTERNAL(113): No transports initializedFATAL ERROR in native method: JDWP No transports initialized, jvmtiError=JVMTI_ERROR_INTERNAL(113)

Since this error only appears when starting JBoss when connected to my home network and not at work, I suspected a DNS/Resolver problem.
To correct the problem, just add the following line to /etc/hosts :

127.0.0.1 localhost

Apparently the problem appears only when launching the Eclipse debugger and is not linked with JBoss.

No comments: