Click here to Skip to main content
15,891,567 members

Error on AsyncTask in Android App

Ravinder Singh Choudhary asked:

Open original thread
I have tow button on one screen one is "GetOrder" and 2nd is "DeleteOrder" when i call getorder then its working good and after this i click on delete order then app showing this error


05-19 11:36:11.176: E/AndroidRuntime(2104): FATAL EXCEPTION: AsyncTask #1
05-19 11:36:11.176: E/AndroidRuntime(2104): java.lang.RuntimeException: An error occured while executing doInBackground()
05-19 11:36:11.176: E/AndroidRuntime(2104): at android.os.AsyncTask$3.done(AsyncTask.java:299)
05-19 11:36:11.176: E/AndroidRuntime(2104): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
05-19 11:36:11.176: E/AndroidRuntime(2104): at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
05-19 11:36:11.176: E/AndroidRuntime(2104): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
05-19 11:36:11.176: E/AndroidRuntime(2104): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
05-19 11:36:11.176: E/AndroidRuntime(2104): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
05-19 11:36:11.176: E/AndroidRuntime(2104): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
05-19 11:36:11.176: E/AndroidRuntime(2104): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
05-19 11:36:11.176: E/AndroidRuntime(2104): at java.lang.Thread.run(Thread.java:856)
05-19 11:36:11.176: E/AndroidRuntime(2104): Caused by: java.lang.NullPointerException
05-19 11:36:11.176: E/AndroidRuntime(2104): at power.flash.system.FullDetail.M_callMethod(FullDetail.java:345)
05-19 11:36:11.176: E/AndroidRuntime(2104): at power.flash.system.FullDetail.access$0(FullDetail.java:302)
05-19 11:36:11.176: E/AndroidRuntime(2104): at power.flash.system.FullDetail$MyTask.doInBackground(FullDetail.java:273)
05-19 11:36:11.176: E/AndroidRuntime(2104): at power.flash.system.FullDetail$MyTask.doInBackground(FullDetail.java:1)
05-19 11:36:11.176: E/AndroidRuntime(2104): at android.os.AsyncTask$2.call(AsyncTask.java:287)
05-19 11:36:11.176: E/AndroidRuntime(2104): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
Tags: Mobile Apps (Android)

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900