08-27 14:43:59.169: W/System.err(9998): at java.net.InetAddress.lookupHostByName(InetAddress.java:424)
08-27 14:43:59.169: W/System.err(9998): at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
08-27 14:43:59.169: W/System.err(9998): at java.net.InetAddress.getAllByName(InetAddress.java:214)
08-27 14:43:59.169: W/System.err(9998): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:137)
08-27 14:43:59.169: W/System.err(9998): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
08-27 14:43:59.169: W/System.err(9998): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
08-27 14:43:59.169: W/System.err(9998): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)
08-27 14:43:59.169: W/System.err(9998): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
08-27 14:43:59.169: W/System.err(9998): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
08-27 14:43:59.169: W/System.err(9998): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
08-27 14:43:59.169: W/System.err(9998): at drink.app.music.InterfaceCall.call(InterfaceCall.java:49)
08-27 14:43:59.169: W/System.err(9998): at drink.app.music.UserServiceHelper.getMusic(UserServiceHelper.java:102)
08-27 14:43:59.169: W/System.err(9998): at drink.app.HorizontalActivity$MusicTask.doInBackground(HorizontalActivity.java:292)
08-27 14:43:59.169: W/System.err(9998): at drink.app.HorizontalActivity$MusicTask.doInBackground(HorizontalActivity.java:1)
08-27 14:43:59.169: W/System.err(9998): at android.os.AsyncTask$2.call(AsyncTask.java:287)
08-27 14:43:59.169: W/System.err(9998): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
08-27 14:43:59.169: W/System.err(9998): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
08-27 14:43:59.169: W/System.err(9998): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
08-27 14:43:59.169: W/System.err(9998): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
08-27 14:43:59.169: W/System.err(9998): at java.lang.Thread.run(Thread.java:856)
08-27 14:43:59.169: W/System.err(9998): Caused by: libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostname)
08-27 14:43:59.179: W/System.err(9998): at libcore.io.Posix.getaddrinfo(Native Method)
08-27 14:43:59.179: W/System.err(9998): at libcore.io.ForwardingOs.getaddrinfo(ForwardingOs.java:59)
08-27 14:43:59.179: W/System.err(9998): at java.net.InetAddress.lookupHostByName(InetAddress.java:405)
08-27 14:43:59.179: W/System.err(9998): ... 19 more
08-27 14:43:59.179: W/System.err(9998): Caused by: libcore.io.ErrnoException: getaddrinfo failed: ENETUNREACH (Network is unreachable)
08-27 14:43:59.179: W/System.err(9998): ... 22 more
08-27 14:43:59.179: W/dalvikvm(9998): threadid=1: thread exiting with uncaught exception (group=0x40e30a80)
看网上其他其他的回复都说是网络权限和网络连接问题 可是我的网络权限都有,网络连接也是正常 就是运行的时候中途总是会突然报出这种错误 求解决方法
2 个解决方案
#1
服务器不稳定?捕获下异常就好.
或者在进行request时进行网络是否正常的判断。
或者在进行request时进行网络是否正常的判断。
#2
服务器的问题吧
#1
服务器不稳定?捕获下异常就好.
或者在进行request时进行网络是否正常的判断。
或者在进行request时进行网络是否正常的判断。
#2
服务器的问题吧