首页 新闻 会员 周边 捐助

Android Webservice,请求不到数据库

0
悬赏园豆:5 [待解决问题]

android 客户端webservice请求出现 09-09 13:49:41.568: W/System.err(29814): java.io.EOFException
09-09 13:49:41.568: W/System.err(29814): at libcore.io.Streams.readAsciiLine(Streams.java:203)
09-09 13:49:41.568: W/System.err(29814): at libcore.net.http.HttpEngine.readResponseHeaders(HttpEngine.java:560)
09-09 13:49:41.568: W/System.err(29814): at libcore.net.http.HttpEngine.readResponse(HttpEngine.java:813)
09-09 13:49:41.568: W/System.err(29814): at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:274)
09-09 13:49:41.568: W/System.err(29814): at libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:486)
09-09 13:49:41.568: W/System.err(29814): at org.ksoap2.transport.ServiceConnectionSE.getResponseCode(ServiceConnectionSE.java:103)
09-09 13:49:41.568: W/System.err(29814): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:197)
09-09 13:49:41.568: W/System.err(29814): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:118)
09-09 13:49:41.568: W/System.err(29814): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:113)
09-09 13:49:41.598: W/System.err(29814): at com.eim.util.Webservice.getWebservice(Webservice.java:25)
09-09 13:49:41.608: W/System.err(29814): at com.eim.task.LoginTask.login(LoginTask.java:167)
09-09 13:49:41.618: W/System.err(29814): at com.eim.task.LoginTask.doInBackground(LoginTask.java:80)
09-09 13:49:41.628: W/System.err(29814): at com.eim.task.LoginTask.doInBackground(LoginTask.java:1)
09-09 13:49:41.628: W/System.err(29814): at android.os.AsyncTask$2.call(AsyncTask.java:287)
09-09 13:49:41.648: W/System.err(29814): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
09-09 13:49:41.648: W/System.err(29814): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
09-09 13:49:41.658: W/System.err(29814): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
09-09 13:49:41.668: W/System.err(29814): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
09-09 13:49:41.668: W/System.err(29814): at java.lang.Thread.run(Thread.java:856)
09-09 13:49:44.688: I/System.out(29814): 01:49:44 下午 SENT (1093294544):

加梅伦的主页 加梅伦 | 初学一级 | 园豆:199
提问于:2015-09-09 13:54
< >
分享
所有回答(1)
0

可能是倒入的jar包版本高或低了,我的经验是ksoap2-android-assembly-2.6.4-jar-with-dependencies.jar,

设置请求超时时间HttpTransportSE transport = new HttpTransportSE(endPoint, 20000);20秒

加梅伦 | 园豆:199 (初学一级) | 2015-09-11 21:17
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册