maps开发遇到的 libcore.io.GaiException: getaddrinfo failed: EAI_NODATA

原创 2012年04月23日 06:54:05
<uses-library android:required="false" android:name="com.google.android.maps" />


 HttpResponse objResponse = client.execute(localHttpPost);
如果将配置文件中的 android:required 设置为true  执行以上代码的时候会报错  ,目前原因未知

02-27 20:43:30.016: W/System.err(574): java.net.UnknownHostException: Unable to resolve host "search.twitter.com": No address associated with hostname
02-27 20:43:30.016: W/System.err(574):  at java.net.InetAddress.lookupHostByName(InetAddress.java:426)
02-27 20:43:30.026: W/System.err(574):  at java.net.InetAddress.getAllByNameImpl(InetAddress.java:242)
02-27 20:43:30.026: W/System.err(574):  at java.net.InetAddress.getAllByName(InetAddress.java:220)
02-27 20:43:30.026: W/System.err(574):  at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:137)
02-27 20:43:30.036: W/System.err(574):  at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
02-27 20:43:30.036: W/System.err(574):  at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
02-27 20:43:30.046: W/System.err(574):  at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)
02-27 20:43:30.046: W/System.err(574):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
02-27 20:43:30.046: W/System.err(574):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
02-27 20:43:30.055: W/System.err(574):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
02-27 20:43:30.055: W/System.err(574):  at com.Prometheus.R1.JsonParsingActivity$DownloadWebPageTask.doInBackground(JsonParsingActivity.java:88)
02-27 20:43:30.055: W/System.err(574):  at com.Prometheus.R1.JsonParsingActivity$DownloadWebPageTask.doInBackground(JsonParsingActivity.java:1)
02-27 20:43:30.055: W/System.err(574):  at android.os.AsyncTask$2.call(AsyncTask.java:264)<br/>
02-27 20:43:30.066: W/System.err(574):  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
02-27 20:43:30.066: W/System.err(574):  at java.util.concurrent.FutureTask.run(FutureTask.java:137)<br/>
02-27 20:43:30.066: W/System.err(574):  at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208)
02-27 20:43:30.076: W/System.err(574):  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
02-27 20:43:30.076: W/System.err(574):  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
02-27 20:43:30.087: W/System.err(574):  at java.lang.Thread.run(Thread.java:856)
02-27 20:43:30.108: W/System.err(574): Caused by: libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostname)
02-27 20:43:30.116: W/System.err(574):  at libcore.io.Posix.getaddrinfo(Native Method)
02-27 20:43:30.116: W/System.err(574):  at libcore.io.ForwardingOs.getaddrinfo(ForwardingOs.java:55)
02-27 20:43:30.126: W/System.err(574):  at java.net.InetAddress.lookupHostByName(InetAddress.java:411)
02-27 20:43:30.126: W/System.err(574):  ... 18 more
02-27 20:43:30.136: I/System.out(574): Except thrown by url http://search.twitter.com/search.json?q=javacodegeeks, .... 
02-27 20:43:30.136: I/System.out(574): response =


版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

android Caused by: libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated wi

Caused by: libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostn...

Caused by: libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostn

Caused by: libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostn...

项目中遇到的 问题及解决方案

1.Caused by: libcore.io.GaiException: getaddrinfo failed: EAI_NODATA 解决方案:1).android设备网络连接没打开,例如...

android java.net.UnknownHostException: Unable to resolve host "...": No address associated 错误

转载地址:http://blog.csdn.net/murongshusheng/article/details/7623188 报错log: 03-07 15:34:38.645: W/Syst...

java.net.UnknownHostException: Unable to resolve host "api1.51zhenghao.cn": No address associated w

java.net.UnknownHostException: Unable to resolve host "api1.51zhenghao.cn": No address associated wi...

Caused by: libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostn

Caused by: libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostn...

greendao3.2的简单使用

1.构建自己的实例 @Entity(indexes = { @Index(value = “name”, unique = true) }) public class User...

EAI二次开发说明用友帮助文档

  • 2009年04月14日 22:33
  • 656KB
  • 下载

activemq报错:Failed to start ActiveMQ JMS Message Broker. Reason: java.io.EOFException: Chunk stream d

2016-10-11 17:16:25,452 | ERROR | Failed to start ActiveMQ JMS Message Broker. Reason: java.io.EOFEx...

nutch-1.2爬取时Exception in thread “main” java.io.IOException: Job failed!

用cygwin运行nutch 1.2爬取提示IOException: $ bin/nutch crawl urls -dir crawl -depth 3 -topN 10 crawl starte...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:maps开发遇到的 libcore.io.GaiException: getaddrinfo failed: EAI_NODATA
举报原因:
原因补充:

(最多只允许输入30个字)