JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]
Asked Answered
D

7

22

I have been trying to run with JRebel this configuration:

enter image description here

enter image description here

Here is my output:

c:\JBOSS\jboss-portal-2.7.2\bin\run.bat -c default

c:\JBOSS\jboss-portal-2.7.2\bin>set JAVA_OPTS=-Dhttp.proxyHost=188.173.32.78 -Dhttp.proxyPort=3128 -DproxySet=true 
===============================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: c:\JBOSS\jboss-portal-2.7.2

  JAVA: C:\Program Files\Java\jdk1.6.0_25\bin\java

  JAVA_OPTS: -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n -Dhttp.proxyHost=188.173.32.78 -Dhttp.proxyPort=3128 -DproxySet=true -Dprogram.name=run.bat -server -Xms256m -Xmx512m -XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

  CLASSPATH: C:\Program Files\Java\jdk1.6.0_25\lib\tools.jar;c:\JBOSS\jboss-portal-2.7.2\bin\run.jar

===============================================================================

[2012-07-16 12:32:53,968] Artifact app-ear:ear: Artifact is being deployed, please wait...
[2012-07-16 12:32:53,972] Artifact my-portlet:war: Artifact is being deployed, please wait...
Connected to server
[2012-07-16 12:32:54,007] Artifact app-ear:ear: Artifact is deployed successfully
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
ERROR: transport error 202: bind failed: Address already in use
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]
Disconnected from server
Duel answered 16/7, 2012 at 6:42 Comment(2)
Check that nothing is using port 8787 before you start debugging with TcpView, netstat or similar tool.Martino
I had the same issues after using JRebelRiviera
R
31

Notice the following start up parameter in your post.

-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n 

There must be some other process occupied the 8787 port.

Rowland answered 13/8, 2012 at 8:2 Comment(2)
how and where to change the port number?Emmerich
I know I'm late to this but @Emmerich can open the standalone.bat (or .sh file) in any editor and there you'll find line set DEBUG_PORT=8787. You can edit the port no. thereLoo
B
2

The 8787 port is already in use. If the 8787 port in use by another application, you need to select a different port number in file run.bat For example, 18787

Benildis answered 27/12, 2012 at 12:4 Comment(0)
U
2

ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) from "JAVA_OPTS: address=8787"

You set Address 8787

  1. Find the PID

    netstat -ap | grep 8787
    
  2. If you still see the PID with the above command, then there are child PIDs. To find the child PIDs

    pstree -p 
    

    and

    pstree -p  | grep previousPID
    
  3. Find the groupPID of the PID

    ps x -o "%r %p %y %x %c" 
    
  4. Kill the found PID

    kill -TERM -groupPID 
    
Urey answered 28/5, 2013 at 12:45 Comment(0)
N
2

Usually this error occurs when the port is already in use. Based on my experience, this usually happen when the server didn't started successfully making the server still running in the process. If you're using windows, you can check out your Task Manager (Ctrl+Shift+Esc) and then look for "java.exe" process. Terminate it and try to start your server again.

Neilneila answered 27/2, 2017 at 3:35 Comment(0)
N
0

This problem occurs whenever the port required to run your server is already in use by some other application. Since the port number 8080 which i used for my jetty server was already in use,it gave me this error so I just changed the port from 8080 to 7070 and it worked for me..

Nabataean answered 4/11, 2013 at 7:9 Comment(2)
In My case Nothing is running on port 80 n 8080 still getting error : # tailf /var/lib/tomcat7/instance1/logs/catalina.out JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:750] FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) ERROR: transport error 202: bind failed: Address already in use ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)Kessler
@AshishKarpe Please note that port 80 and 8080 are not the same. See which process is holding the port 8080 in your system.Nabataean
M
0

Check the debug port in your

standalone.sh

It must have been

DEBUG_MODE=true
DEBUG_PORT="8787"

Change the debug mode to false or pass a new debug port from the new sh file which calls this standalone --debug 8788

Mesothelium answered 20/6, 2018 at 7:59 Comment(0)
C
0

In my case, this argument was wrong: address=server4.example.com:8787 I was trying to run from another server, e.g., server3.example.com.

Cerf answered 21/4, 2022 at 13:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.