我已經收到這個異常from time to time
Web服務,while accessing the webservice
provided by this site.
無法訪問有時
webservice:
https://int.yumzing.com/index.php?func=sessionCreate。
它適用於有時,然後它沒有。 我已經嘗試ping網站「int.yumzing.com」
,這個工程.... 但more frequently its inaccessible when i am trying to access the web service
通過我的程序,傳遞用戶名和密碼。
If there was some problem with my program, then it wouldnt had been accessible even for
once... but it works from time to time.
我現來襲到這一點,因爲我不能明白,什麼可能是問題的根源。
請參閱下面的異常,What i know is that UnknownHostException will take place when there is a problem in the Intial Connection.
java.net.UnknownHostException: int.yumzing.com
at java.net.InetAddress.lookupHostByName(InetAddress.java:513)
at java.net.InetAddress.getAllByNameImpl(InetAddress.java:278)
at java.net.InetAddress.getAllByName(InetAddress.java:242)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:348)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
at com.yum.zing.APIHandling$1.run(APIHandling.java:415)
at java.lang.Thread.run(Thread.java:1096)
可能上網的問題... – Ketan
什麼你IDE?和服務器是它tomacat – shareef
我正在使用Eclipse。但我不知道是否服務器,無論其tomcat或不 –