来源附件不包含的文件源ThreadPoolExecutor.class [英] Source Attachment does not contain the source for the file ThreadPoolExecutor.class
问题描述
我的工作,它使用了的Android项目的web服务
我已经建立。此前有工作的罚款几分钟,但它突然开始给下面的错误。
源附件不包含的文件源threadpoolexecutor.class
I am working on an android project which uses the webservice
I have created. It was working fine few minutes earlier but suddenly it started to give below error.
the source attachment does not contain the source for the file threadpoolexecutor.class
logcat的错误是:
Logcat error is :
07-10 11:30:22.844: E/AndroidRuntime(1707): FATAL EXCEPTION: AsyncTask #1
07-10 11:30:22.844: E/AndroidRuntime(1707): java.lang.RuntimeException: An error occured while executing doInBackground()
07-10 11:30:22.844: E/AndroidRuntime(1707): at android.os.AsyncTask$3.done(AsyncTask.java:299)
07-10 11:30:22.844: E/AndroidRuntime(1707): at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:352)
07-10 11:30:22.844: E/AndroidRuntime(1707): at java.util.concurrent.FutureTask.setException(FutureTask.java:219)
07-10 11:30:22.844: E/AndroidRuntime(1707): at java.util.concurrent.FutureTask.run(FutureTask.java:239)
07-10 11:30:22.844: E/AndroidRuntime(1707): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
07-10 11:30:22.844: E/AndroidRuntime(1707): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
07-10 11:30:22.844: E/AndroidRuntime(1707): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
07-10 11:30:22.844: E/AndroidRuntime(1707): at java.lang.Thread.run(Thread.java:856)
07-10 11:30:22.844: E/AndroidRuntime(1707): Caused by: java.lang.NullPointerException
07-10 11:30:22.844: E/AndroidRuntime(1707): at com.example.backgroundTask.BackgroundTask.RegisterUser(BackgroundTask.java:125)
07-10 11:30:22.844: E/AndroidRuntime(1707): at com.example.backgroundTask.BackgroundTask.doInBackground(BackgroundTask.java:65)
07-10 11:30:22.844: E/AndroidRuntime(1707): at com.example.backgroundTask.BackgroundTask.doInBackground(BackgroundTask.java:1)
07-10 11:30:22.844: E/AndroidRuntime(1707): at android.os.AsyncTask$2.call(AsyncTask.java:287)
07-10 11:30:22.844: E/AndroidRuntime(1707): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
07-10 11:30:22.844: E/AndroidRuntime(1707): ... 4 more
07-10 11:30:23.174: W/Trace(1707): Unexpected value from nativeGetEnabledTags: 0
请告诉我什么可能导致此错误还是让我知道,如果需要更多的信息。
感谢和放大器;问候..
Sourabh
Please tell me what may cause this error or let me know if more information required.
Thanks & Regards..
Sourabh
推荐答案
我找到了。我被检查的值,如果一切,如果细它将返回null从Web服务。而空值我试图转换为字符串值,因此歌厅上述错误。
感谢CommonsWare。
I found it. I was checking the value and if everything if fine it will return null from the web service. and that null value I was trying to convert to string value and hence geting the above error.
Thanks CommonsWare.
这篇关于来源附件不包含的文件源ThreadPoolExecutor.class的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!