zoukankan      html  css  js  c++  java
  • 因为本地没有配置 localhost 导致的 eclipse 的奇葩问题

    因为电脑没有配置 127.0.0.1 localhost,已经碰到两次奇葩问题了。

    问题一:

    我的博文http://www.cnblogs.com/sonofelice/p/5143746.html中提到的,debug tomcat 报错:

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

    ERROR: transport error 202: connect failed: Operation 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:750]

     

    问题二:

    在使用 testng 进行单元测试的时候,代码没错,但是运行报错:

    Cannot connect to VM

    Socket closed

    其实看一下 console 里面的日志,仍然是:

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

    ERROR: transport error 202: gethostbyname: unknown host

    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:750]

     

    问题三:

    在使用 mybatis generator生成数据库对应的 entity 和 mapper 文件时,在 debug configuration 中配置好之后开始生成,仍然会报上面的错误。

    但是错误码其实是一样的。

     

    以后碰到这样的问题,可以首先检查下 host 配置,或者看先端口是否被别的进程占用了。

    看 stackoverflow 的解释:http://stackoverflow.com/questions/31264148/fatal-error-in-native-method-jdwp-no-transports-initialized-error-while-startin

  • 相关阅读:
    ASP.NET MVC 学习之路由(URL Routing)
    Linux 部署ASP.NET SQLite 应用 的坎坷之旅 附demo及源码
    linux解压zip文件
    /bin/sh^M:解释器错误:没有那个文件或目录
    mysql查看连接情况
    linux编译qt
    没有可用的软件包 xxx,但是它被其它的软件包引用了
    什么是人月
    qt linux 打包
    linux里安装使用svn
  • 原文地址:https://www.cnblogs.com/sonofelice/p/5274926.html
Copyright © 2011-2022 走看看