本机方法中的FATAL ERROR:JDWP在调试模式下启动hybris服务器时没有传输初始化错误

时间:2015-07-07 09:01:23

标签: hybris

尝试在调试模式下启动hybrisserver时,我收到以下错误消息并且hybrisserver已停止。我尝试但无法解决。请帮忙。

FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)<br/>
ERROR: transport error 202: bind failed: Permission denied<br/>
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)<br/>
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:750]<br/>
JVM exited while loading the application.<br/>
Reloading Wrapper configuration...<br/>
Launching a JVM...<br/>
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)<br/>
ERROR: transport error 202: bind failed: Permission denied<br/>
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)<br/>
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:750]<br/>
JVM exited while loading the application.<br/>

连续5次失败,每次持续不到300秒。
放弃。
  可能存在配置问题:请检查日志。

<-- Wrapper Stopped<br/>

过程中发生错误。

3 个答案:

答案 0 :(得分:8)

@thijsraets is correct. Either you have to check where is the port (8000) has been occupied or you can override the default value to something else in local.properties file.

tomcat.debugjavaoptions=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=8001,suspend=n

Run "ant all". This will configure debug for port 8001.

OR

You can change the JVM parameters in wrapper-debug.conf file...

wrapper.java.additional.23=-Xrunjdwp:transport=dt_socket,server=y,address=8001,suspend=n

答案 1 :(得分:3)

遇到此问题的人似乎已经将其他内容绑定到调试端口,请尝试更改端口:tomcat.debugjavaoptions

答案 2 :(得分:0)

同样的事情发生在我身上并试图杀死服务器并安全地重新启动它。我按照以下步骤操作:

  
    
        
  1. ps aux | grep java。这将帮助我找到PID,进程ID
  2.     
  3. kill -9 PID
  4.        

如果你想杀死你可以做的所有tomcat进程

  
    

pkill -9 -f tomcat

  

这将安全地重启服务器。