本文介绍了JDWP 退出错误 AGENT_ERROR_TRANSPORT_INIT(197):未初始化传输 [../../../src/share/back/debugInit.c:690]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在尝试使用 JRebel 运行此配置:
I have been trying to run with JRebel this configuration:
这是我的输出:
c:JBOSSjboss-portal-2.7.2in
un.bat -c default
c:JBOSSjboss-portal-2.7.2in>set JAVA_OPTS=-Dhttp.proxyHost=188.173.32.78 -Dhttp.proxyPort=3128 -DproxySet=true
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: c:JBOSSjboss-portal-2.7.2
JAVA: C:Program FilesJavajdk1.6.0_25injava
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 FilesJavajdk1.6.0_25lib ools.jar;c:JBOSSjboss-portal-2.7.2in
un.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
推荐答案
请注意帖子中的以下启动参数.
Notice the following start up parameter in your post.
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
一定有其他进程占用了8787端口.
There must be some other process occupied the 8787 port.
这篇关于JDWP 退出错误 AGENT_ERROR_TRANSPORT_INIT(197):未初始化传输 [../../../src/share/back/debugInit.c:690]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!