java.net.UnknownHostException: service.esms.vrinfo.comservice.esms.vrinfo.com存在吗?至少在我电脑访问不了

解决方案 »

  1.   

    ping service.esms.vrinfo.com
    Ping request could not find host service.esms.vrinfo.com. Please check the name
    and try again.
      

  2.   

    我的电脑是通过代理上网的,也能ping 通吗?service.esms.vrinfo.com,由于这是我们公司的一个不对外公开的服务器,所以我把名字改了,不好意思!但是我的机子ping它是ping 不同的!而且
    ping www.sina.com也是ping不通的!
      

  3.   

    java.net.UnknownHostException: service.esms.vrinfo.com
    连接未知的网站 异常
      

  4.   

    If you access the internet via a proxy server, you'll need to set an environment variable so that the Axis tests do the same. Set ANT_OPTS to, for example: 
    -Dhttp.proxyHost=proxy.somewhere.com -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts="localhost"
      

  5.   

    U can also code it.
    Like 
            System.setProperty("proxySet", "true"); 
            System.getProperties().put( "http.proxyHost", "serverName" );
            System.getProperties().put( "http.proxyPort", "8080" );//other way:
    > If you access the Internet via a proxy server you'll need to 
    > set the appropriate system properties. For example:

    > java -Dhttp.proxyHost=proxy.somewhere.com -Dhttp.proxyPort=80 
    > -Dhttp.nonProxyHosts="localhost" clients.DynamicInvoker
      

  6.   

    不明白,请说详细一些java.net.UnknownHostException: service.esms.vrinfo.com
    这句话表明是未知的主机名,是不是主机名写错了?还是主机所传的参数有错,例如用户名或密码不存在之类的,请看这句:faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException请仔细检查一下