Crash in AutoUpdateApk.java
Closed this issue · 3 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
Run the app with AutoUpdateApk.java. It crashes intermittently
What is the expected output? What do you see instead?
Crash (crash log from ACRA pasted below)
What version of the product are you using? On what operating system?
API: Android 15
Device - OS - API Level: HTC One V-4.0.3-Ice Cream Sandwich-15
Attaching the AutoUpdateApk.java file that I am using.
Please provide any additional information below.
Crash Log:
Date: Wed May 22 01:17:33 MYT 2013
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:278)
at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:864)
Caused by: java.lang.NullPointerException: println needs a message
at android.util.Log.println_native(Native Method)
at android.util.Log.e(Log.java:231)
at com.healint.dontworryapp.AutoUpdateApk.log(AutoUpdateApk.java:499)
at com.healint.dontworryapp.AutoUpdateApk.Log_e(AutoUpdateApk.java:483)
at com.healint.dontworryapp.AutoUpdateApk.Log_e(AutoUpdateApk.java:482)
at com.healint.dontworryapp.AutoUpdateApk$checkUpdateTask.doInBackground(AutoUpdateApk.java:330)
at com.healint.dontworryapp.AutoUpdateApk$checkUpdateTask.doInBackground(AutoUpdateApk.java:1)
at android.os.AsyncTask$2.call(AsyncTask.java:264)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
... 5 more
java.lang.NullPointerException: println needs a message
at android.util.Log.println_native(Native Method)
at android.util.Log.e(Log.java:231)
at com.healint.dontworryapp.AutoUpdateApk.log(AutoUpdateApk.java:499)
at com.healint.dontworryapp.AutoUpdateApk.Log_e(AutoUpdateApk.java:483)
at com.healint.dontworryapp.AutoUpdateApk.Log_e(AutoUpdateApk.java:482)
at com.healint.dontworryapp.AutoUpdateApk$checkUpdateTask.doInBackground(AutoUpdateApk.java:330)
at com.healint.dontworryapp.AutoUpdateApk$checkUpdateTask.doInBackground(AutoUpdateApk.java:1)
at android.os.AsyncTask$2.call(AsyncTask.java:264)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:864)
Original issue reported on code.google.com by saa...@gmail.com
on 27 May 2013 at 7:03
Attachments:
GoogleCodeExporter commented
This has already been reported as the issue #40, basically "println needs a
message" means your project is somehow out of sync in your IDE (Eclipse?) and
you have to do "Project -> Clean" and choose your project from the list.
Original comment by lenik.terenin
on 27 May 2013 at 8:11
- Changed state: WontFix
GoogleCodeExporter commented
Ok, thanks.
Original comment by saa...@gmail.com
on 28 May 2013 at 6:40
GoogleCodeExporter commented
I've got the same crash. I think the problem is that the IOException catch in
doInBackground method (line 330) has a null message. So passing null to log
function generate this Exception.
Original comment by giorgio....@hisolution.it
on 18 Jul 2013 at 7:47