【发布时间】:2014-02-04 17:17:47
【问题描述】:
我正在尝试运行留言簿应用程序https://developers.google.com/appengine/docs/java/gettingstarted/creating,但出现错误:
urlhttp://goo.gl/rw0dnR处的错误截图
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
ERROR: transport error 202: connect failed: Connection timed out
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:741]
我在 Eclipse 上试过了。在 Eclipse 中,我单击“运行”菜单,然后单击“调试为”->“Web 应用程序”。错误弹出窗口说:
出现问题:“启动留言簿”遇到了 问题。无法连接到虚拟机。 (无法连接到虚拟机 com.sun.jdi.connect.TransportTimeoutException)
谁能帮我解决问题。
代码是:
package guestbook;
import java.io.IOException;
import javax.servlet.http.*;
public class GuestbookServlet extends HttpServlet {
@Override
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
resp.setContentType("text/plain");
resp.getWriter().println("Hello, world");
}
}
【问题讨论】: