JDWP exit error AGENT_ERROR_TRANSPORT_INIT (197): no transport initialization [../../../src/share/back/debugInit.c:690]

I am trying to run this configuration with JRebel:

enter image description here

enter image description here

Here is my conclusion:

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 
+8
intellij-idea jboss jrebel jdwp
source share
5 answers

Note the following launch option in your post.

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

There must be some other process busy on port 8787.

+18
source share

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

+2
source share

ERROR: transport error 202: communication failure: address already in use ERROR: JDWP Transport dt_socket could not be initialized, TRANSPORT_INIT (510) from "JAVA_OPTS: address = 8787" u set the address 8787

  • find pid

    netstat -ap | grep 8787

kill theFindedPid

if u still gets pid "netstat -ap | grep 8787", there are child pids of theFindedPid 2. pstree -p and also pstree -p | grep theFindedPid to find if there are child pids from the FindedPid file

  • find the group Pid pid ps x -o "% r% p% y% x% c"

  • kill -TERM -groupPid

+2
source share

Usually this error occurs when the port is already in use. Based on my experience, this usually happens when the server has not started to successfully start the server in the process. If you use windows, you can check your task manager (Ctrl + Shift + Esc) and then search for the process "java.exe". Finish it and try starting the server again.

+1
source share

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

0
source share

All Articles