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

帅比萌擦擦* 提交于 2019-11-30 17:41:58

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.

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

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 " u set Address 8787

  1. find the pid

    netstat -ap | grep 8787

kill theFindedPid

if u still get the pid by " netstat -ap | grep 8787 " there are child pids of the theFindedPid 2. pstree -p and pstree -p | grep theFindedPid to find if there are child pids of the theFindedPid

  1. find the groupPid of the pid ps x -o "%r %p %y %x %c"

  2. kill -TERM -groupPid

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.

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..

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!