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

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

问题描述



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



PS它可能与已知的Tomcat 6.0和JDK有关1.7.0_02问题?,因为我从JDK 1.7.0升级到1.7.0更新2后才开始获取它,而没有其他升级到其他软件。



我正在运行:




  • Eclipse Indigo 3.7

  • JDK 1.7。 0_0u2(JDK 7更新2)

  • Tomcat 6.0

  • Windows 7

  • Apache HTTP Server使用它)



当我启动Tomcat时,我开始收到这个错误,但并不是所有的时间。重新启动刚刚修复它。有些早晨,我没有重新启动就工作,即使在前一天失败了,它也修复了它。它是零星的。要调试这个我需要了解。你可以帮忙解释一下吗?



编辑:我在同一个端口上有两个不同的项目的Tomcat服务器。其他(第一)服务器是停止,但是保持同步,以防万一这样重要。我已经很快尝试将所有端口更改为一个(8080到8081),并且错误重现。这可能不是更改端口的正确测试。



编辑2:我刚刚遇到此问题,并重新启动修复问题。工作站在周末,Tomcat星期五工作,Eclipse在一天结束时关闭。我会继续这样做的笔记,因为我遇到它以消除猜测。



编辑3:今天它给了我这个错误从未启动昨天工作的方案昨天关闭,今天重启。我重新启动,错误消失了。最值得注意的是,错误总是发生在23%的编译。它打23%,等待一下,这是当我知道它不会成功,然后弹出一个窗口。我会捕捉下一次窗口的内容。然后它给控制台上面的错误。



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



编辑5:编辑#3中提到的弹出窗口是(注意我的Tomcat是命名为服务器Tomcat v6.0服务器在本地主机):

 发生问题

'服务器Tomcat v6.0服务器在本地主机'遇到问题。

服务器Tomcat v6.0服务器在localhost无法启动。

OK<<详细信息

服务器Tomcat v6.0本地主机服务器无法启动。

编辑6:我刚刚遇到一个新问题,这是无法连接到虚拟机com.sun.jdi.connect.TransportTimeoutException 弹出窗口错误,并且这个问题在控制台窗口中询问相同的主要错误。



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

解决方案

当需要的端口被另一个程序占用时,这个错误通常出现。



你说你已将HTTP连接器端口从8080到8081,所以两个Tomcats没有冲突,但是你也更改了 tomcat / conf / 中的< Server port =... server.xml 在您的Tomcat之间有所不同?



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


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

FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)

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.

I am running:

  • Eclipse Indigo 3.7
  • JDK 1.7.0_0u2 (JDK 7 update 2)
  • Tomcat 6.0
  • Windows 7
  • Apache HTTP Server (although not using it yet)

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?

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.

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.

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.

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

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: 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.

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.

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?

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

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