android - adding log.e in the catch -


this error log when put log.e in catch,but don't know causes error occur.

try{    ... } catch(ioexception e ){    log.e("my_app_error!", "error!", e); } 

here result of logcat

04-06 09:12:28.698: e/my_app_error!(4825): error! 04-06 09:12:28.698: e/my_app_error!(4825): java.io.eofexception 04-06 09:12:28.698: e/my_app_error!(4825):  @ libcore.io.streams.readasciiline(streams.java:203) 04-06 09:12:28.698: e/my_app_error!(4825):  @ libcore.net.http.httpengine.readresponseheaders(httpengine.java:579) 04-06 09:12:28.698: e/my_app_error!(4825):  @ libcore.net.http.httpengine.readresponse(httpengine.java:827) 04-06 09:12:28.698: e/my_app_error!(4825):  @ libcore.net.http.httpurlconnectionimpl.getresponse(httpurlconnectionimpl.java:283) 04-06 09:12:28.698: e/my_app_error!(4825):  @ libcore.net.http.httpurlconnectionimpl.getinputstream(httpurlconnectionimpl.java:177) 04-06 09:12:28.698: e/my_app_error!(4825):  @ com.example.logintest.adduser$asscrountask.doinbackground(adduser.java:111) 04-06 09:12:28.698: e/my_app_error!(4825):  @ com.example.logintest.adduser$asscrountask.doinbackground(adduser.java:1) 04-06 09:12:28.698: e/my_app_error!(4825):  @ android.os.asynctask$2.call(asynctask.java:287) 04-06 09:12:28.698: e/my_app_error!(4825):  @ java.util.concurrent.futuretask.run(futuretask.java:234) 04-06 09:12:28.698: e/my_app_error!(4825):  @ android.os.asynctask$serialexecutor$1.run(asynctask.java:230) 04-06 09:12:28.698: e/my_app_error!(4825):  @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1080) 04-06 09:12:28.698: e/my_app_error!(4825):  @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:573) 04-06 09:12:28.698: e/my_app_error!(4825):  @ java.lang.thread.run(thread.java:841) 

the exception eofexception (end of file!) throw when reading (from file or stream too) finished.

you can ignore exception if code ok fact finished reading (should, because it's obvious file finish)

public class eofexception extends ioexception

signals end of file or end of stream has been reached unexpectedly during input.

this exception used data input streams signal end of stream. note many other input operations

in specific case, refer fact finished download http request (a web page? more code if need help)


Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -