本机方法中的致命错误:JDWP 未初始化传输,jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) [英] FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)

查看:44
本文介绍了本机方法中的致命错误:JDWP 未初始化传输,jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你能解释一下这个错误是什么(其次我为什么会得到它)?

Can you explain what this error is (and secondly why I am getting it)?

本机方法中的致命错误:JDWP 未初始化传输,jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)

附注可能与已知的Tomcat 6.0和JDK有关1.7.0_02 问题?,因为我是从 JDK 1.7.0 升级到 1.7.0 更新 2 后才开始得到它,没有其他软件升级.

P.S. It may be related to Known Tomcat 6.0 and JDK 1.7.0_02 issues?, as I only started getting it after upgrading from JDK 1.7.0 to 1.7.0 update 2, with no other upgrades to other software.

我正在跑步:

  • Eclipse 靛蓝 3.7
  • JDK 1.7.0_0u2(JDK 7 更新 2)
  • Tomcat 6.0
  • Windows 7
  • Apache HTTP Server(虽然还没有使用)

当我启动 Tomcat 时,我开始收到此错误,但并非总是如此.刚刚重启就解决了.有些早上我上班时没有重新启动,即使前一天失败了,它也能修复它.它是零星的.要调试这个我需要了解.你能帮忙解释一下吗?

When I start Tomcat I started getting this error, but not all the time. Rebooting just now fixed it. Some mornings I come to work without a reboot and it fixes it even though it failed the day before. It's sporadic. To debug this I need to understand. Can you help explain it?

我有两个 Tomcat 服务器,用于两个不同的项目,位于同一个端口上.另一台(第一台)服务器停止"但保持同步",以防万一.我很快尝试将所有端口更改为一个(8080 到 8081)并且错误重现.但是,这可能不是对更改端口的适当测试.

EDIT : I have two Tomcat servers, for two different projects, on the same port. The other (first) server is "stopped" but remains "synchronized", in case this matters. I've quickly tried changing all the ports up one (8080 to 8081) and the error reproduces. This may not be a proper test of changing ports, however.

编辑 2: 我刚遇到这个问题,重新启动修复"了这个问题.工作站整个周末都在工作,Tomcat 在周五工作,而 Eclipse 在一天结束时关闭.当我遇到它以消除猜测时,我会继续做这样的笔记.

EDIT 2: I just had this problem, and rebooting "fixed" the issue. The workstation was on all weekend and Tomcat worked on Friday and Eclipse was shutdown at the end of the day. I will keep taking notes like this as I run into it to remove guesswork.

编辑 3: 今天它给了我这个错误,来自昨天工作的未重新启动系统,程序昨天关闭并今天重新启动.我重新启动,错误消失了.最值得注意的是,错误总是发生在 23% 的编译时.它达到 23%,稍等片刻,这就是我知道它不会成功的时候,然后弹出一个窗口.下次我会捕捉窗口所说的内容.然后它将上述错误提供给控制台.

EDIT 3: Today it gave me this error from an unrebooted system that worked yesterday, programs shut down yesterday and restarted today. I rebooted, and the error is gone. Most notably is that the error always occurs at 23% compilation. It hits 23%, waits a bit and this is when I know it won't succeed, and then popups a window. I'll capture what the window says next time. Then it gives the above error to the Console.

编辑 4: 我正在运行 Windows 7 和 Apache HTTP Server(虽然还没有使用它).我会将这些添加到上面的列表中.

EDIT 4: I am running Windows 7 and Apache HTTP Server (although not using it yet). I'll add these to the list above.

编辑#3中提到的弹出窗口是(注意我的Tomcat被命名为Server Tomcat v6.0 Server at localhost):

EDIT 5: The popup window mentioned in edit #3 is (and note my Tomcat is named Server Tomcat v6.0 Server at localhost):

Problem Occurred

'Server Tomcat v6.0 Server at localhost' has encountered a problem.

Server Tomcat v6.0 Server at localhost  failed to start.

OK << Details

Server Tomcat v6.0 Server at localhost  failed to start.

EDIT 6:我刚刚遇到一个新问题,即Cannot connect to VM com.sun.jdi.connect.TransportTimeoutException 弹出窗口错误和同样的主错误这个问题在控制台窗口中询问.

EDIT 6: I just got a new problem, which is Cannot connect to VM com.sun.jdi.connect.TransportTimeoutException popup window error and the same main error that this question asks about in the Console window.

编辑 7: 只是重新启动 Eclipse,而不是重新启动整个计算机,今天早上解决了错误.

EDIT 7: Just restarting Eclipse, not rebooting the whole computer, solved the error this morning.

推荐答案

当必要的端口被另一个程序占用时,通常会出现此错误.

This error typically comes up when the necessary port is taken by another program.

您说您已将 HTTP 连接器端口从 8080 更改为 8081,因此两个 Tomcat 不会冲突,但您是否也更改了 <Server port="..."tomcat/conf/server.xml 要在你的 Tomcat 之间有所不同?

You said that you have changed the HTTP connector port from 8080 to 8081 so the two Tomcats do not clash, but have you also changed the <Server port="..." in tomcat/conf/server.xml to be different between your Tomcats?

是否还有其他可能发生冲突的连接器端口?

Are there any other connectors ports which may possibly clash?

这篇关于本机方法中的致命错误:JDWP 未初始化传输,jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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