我有 Glfish 服务器 v4.1 与默认端口配置,调试模式突然停止工作,并显示以下错误消息:
The server exited prematurely with exit code 134.
Before it died, it produced the following output:
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
ERROR: transport error 202: connect failed: Connection refused
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:750]
我列出了我的机器上所有打开的端口,但找不到任何地方使用的调试端口,我试图改变端口,但同样的错误仍然存在。
我使用以下命令列出打开的端口:
sockstat -l | grep 9009
lsof -l | grep 9009
ss -l | grep 9009
我在 OpenSuse 风滚草上安装了 Java 1.7(Oracle JDK)。
感谢任何帮助。
搜索其他线索后,似乎问题不在端口,而是 domain.xml 文件中的其他调试选项,特别是以下行
<java-config debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=n,suspend=y,address=9009" system-clpath="" clpath-suffix="">
更改为
<java-config debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009" system-clpath="" clpath-suffix="">
修复了问题,感谢以下问题的答案::Impossible to run web application in debug mode with intelliJ on ubuntu with glfish server
本站系公益性非盈利分享网址,本文来自用户投稿,不代表码文网立场,如若转载,请注明出处
评论列表(23条)