Glassfish服务器提前退出,退出代码为134

时间:2016-10-24 02:02:22

标签: java glassfish glassfish-4.1

我的Glassfish服务器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]

我列出了我机器上的所有开放端口,但无法找到在任何地方使用的调试端口。我试图更改端口,但仍然存在相同的错误。

我使用以下命令列出open ports ::

sockstat -l | grep 9009 
lsof -l | grep 9009
ss -l | grep 9009

我在OpenSuse风滚草上安装了java 1.7(Oracle JDK)。

感谢任何帮助。

1 个答案:

答案 0 :(得分:1)

在搜索其他线索后,似乎问题不在端口中,而是在domain.xml文件中的其他调试选项,特别是以下行

<java-config debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=n,suspend=y,address=9009" system-classpath="" classpath-suffix="">

已更改为

<java-config debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009" system-classpath="" classpath-suffix="">

解决了问题,感谢以下问题的答案:: Impossible to run web application in debug mode with intelliJ on ubuntu with glassfish server