SMILEConsortium / smile_teacher_android

The SMILE Teacher Android App
http://www.smileconsortium.org
Apache License 2.0
1 stars 2 forks source link

teacher app crash (randomly?) on save #56

Closed truedat101 closed 10 years ago

truedat101 commented 11 years ago

Seems as if there was a network issue. Will close if we can't reproduce. Seems this might be if the server is not running at all (if it crashes completely).

W/InputMethodManagerService( 525): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@42723290 attribute=null, token = android.os.BinderProxy@424b8418 W/System.err(11530): android.accounts.NetworkErrorException: Unexpected error request: The target server failed to respond W/System.err(11530): at org.smilec.smile.util.HttpUtil.executeMethod(HttpUtil.java:63) W/System.err(11530): at org.smilec.smile.util.HttpUtil.executePut(HttpUtil.java:105) W/System.err(11530): at org.smilec.smile.bu.SmilePlugServerManager.saveQuestionsAsAnIQSet(SmilePlugServerManager.java:109) W/System.err(11530): at org.smilec.smile.ui.fragment.QuestionsFragment$SaveTask.doInBackground(QuestionsFragment.java:512) W/System.err(11530): at org.smilec.smile.ui.fragment.QuestionsFragment$SaveTask.doInBackground(QuestionsFragment.java:492) W/System.err(11530): at android.os.AsyncTask$2.call(AsyncTask.java:287) W/System.err(11530): at java.util.concurrent.FutureTask.run(FutureTask.java:234) W/System.err(11530): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) W/System.err(11530): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) W/System.err(11530): at java.lang.Thread.run(Thread.java:841) W/System.err(11530): Caused by: org.apache.http.NoHttpResponseException: The target server failed to respond W/System.err(11530): at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:85) W/System.err(11530): at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:174) W/System.err(11530): at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:180) W/System.err(11530): at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:235) W/System.err(11530): at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:259) W/System.err(11530): at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:279) W/System.err(11530): at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:121) W/System.err(11530): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:428) W/System.err(11530): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555) W/System.err(11530): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487) W/System.err(11530): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465) W/System.err(11530): at org.smilec.smile.util.HttpUtil.executeMethod(HttpUtil.java:58) W/System.err(11530): ... 9 more D/AndroidRuntime(11530): Shutting down VM W/dalvikvm(11530): threadid=1: thread exiting with uncaught exception (group=0x4156e700) E/AndroidRuntime(11530): FATAL EXCEPTION: main E/AndroidRuntime(11530): java.lang.NullPointerException E/AndroidRuntime(11530): at org.smilec.smile.util.ActivityUtil.showLongToast(ActivityUtil.java:38) E/AndroidRuntime(11530): at org.smilec.smile.ui.fragment.QuestionsFragment$SaveTask.onPostExecute(QuestionsFragment.java:527) E/AndroidRuntime(11530): at org.smilec.smile.ui.fragment.QuestionsFragment$SaveTask.onPostExecute(QuestionsFragment.java:492) E/AndroidRuntime(11530): at android.os.AsyncTask.finish(AsyncTask.java:631) E/AndroidRuntime(11530): at android.os.AsyncTask.access$600(AsyncTask.java:177)

truedat101 commented 10 years ago

Let's explore after we get this release out.

truedat101 commented 10 years ago

Can't reproduce.