Maven Eclipse Debug“JDWP Transport dt_socket failed to initialize,TRANSPORT_INIT(510)” [英] Maven Eclipse Debug "JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)"

查看:1055
本文介绍了Maven Eclipse Debug“JDWP Transport dt_socket failed to initialize,TRANSPORT_INIT(510)”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Eclipse中调试Maven测试。当我使用maven选项maven.surefire.debug启动测试时,我得到这个错误:

 错误:传输错误202:绑定失败:地址已在使用
原生方法中的FATAL错误:JDWP没有传输初始化,jvmtiError = AGENT_ERROR_TRANSPORT_INIT(197)
错误:JDWP传输dt_socket无法初始化,TRANSPORT_INIT(510)
JDWP退出错误AGENT_ERROR_TRANSPORT_INIT(197):没有传输初始化[../../../src/share/back/debugInit.c:690]
/ bin / sh:行1:27500中止陷阱

当我在shell中尝试tu启动调试时,相同。



尝试添加maven选项forkMode =永远,并且我得到另一个错误,我的焊接工件,我没有没有maven.surefire.debug选项:

 加载焊接引导错误,检查焊接是否在类路径上





任何想法?

解决方案

要杀死一个侦听端口的进程:



此命令应列出在所有端口上侦听的进程: / p>

  netstat -ano 

-o 选项将显示进程标识。



如果您使用* nix系统,您可以进一步改进:

  netstat -ano | grep< badport> 

当您有进程ID时,可以通过以下方式终止它:



Windows:




  • 打开任务管理器,添加PID列,视图>选择列> PID

  • 查找进程并右键单击以将其杀死



其他:

  kill< PID> 


I'm trying to debug Maven tests in Eclipse. When I launch tests with the maven option maven.surefire.debug, I get this error :

ERROR: transport error 202: bind failed: Address already in use
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
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]
/bin/sh: line 1: 27500 Abort trap        

It is the same when I tried tu launch debug in my shell.

I tried to add the maven option forkMode=never, and I get another error with my weld artifact that I do not have without the maven.surefire.debug option :

Error loading Weld bootstrap, check that Weld is on the classpath

However, Weld is on my classpath.

Any ideas ?

解决方案

To kill a process listening on a port:

This command should list processes listening on all ports:

netstat -ano

The -o option will display the process id.

If you're using a *nix system, you can refine a little further with:

netstat -ano | grep <badport> 

When you have the process id, you can terminate it with:

Windows:

  • Open Task Manager, add the PID column with View > Select Columns > PID
  • Find the process and right-click to kill it

Others:

kill <PID>

这篇关于Maven Eclipse Debug“JDWP Transport dt_socket failed to initialize,TRANSPORT_INIT(510)”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆