potatodevs / cloudit

Manage and access your CloudApp account directly from your Android device.
https://play.google.com/store/apps/details?id=io.invaders.android.cloudit&hl=en_GB
0 stars 0 forks source link

Crashes after logging in - FATAL EXCEPTION: AsyncTask #1 #5

Closed loop closed 11 years ago

loop commented 11 years ago

Obviosuly this is a major bug. It just crashes after I press login, i shows loggin' toast and after that BOOOOOM!

Here is the error log:

03-30 17:03:44.391: E/AndroidRuntime(23314): FATAL EXCEPTION: AsyncTask #1
03-30 17:03:44.391: E/AndroidRuntime(23314): java.lang.RuntimeException: An error occured while executing doInBackground()
03-30 17:03:44.391: E/AndroidRuntime(23314):    at android.os.AsyncTask$3.done(AsyncTask.java:299)
03-30 17:03:44.391: E/AndroidRuntime(23314):    at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
03-30 17:03:44.391: E/AndroidRuntime(23314):    at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
03-30 17:03:44.391: E/AndroidRuntime(23314):    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
03-30 17:03:44.391: E/AndroidRuntime(23314):    at java.util.concurrent.FutureTask.run(FutureTask.java:137)
03-30 17:03:44.391: E/AndroidRuntime(23314):    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
03-30 17:03:44.391: E/AndroidRuntime(23314):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
03-30 17:03:44.391: E/AndroidRuntime(23314):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
03-30 17:03:44.391: E/AndroidRuntime(23314):    at java.lang.Thread.run(Thread.java:856)
03-30 17:03:44.391: E/AndroidRuntime(23314): Caused by: java.lang.NoClassDefFoundError: org.apache.commons.lang3.StringUtils
03-30 17:03:44.391: E/AndroidRuntime(23314):    at com.cloudapp.impl.CloudAppItemsImpl.getItems(CloudAppItemsImpl.java:128)
03-30 17:03:44.391: E/AndroidRuntime(23314):    at com.cloudapp.impl.CloudAppImpl.getItems(CloudAppImpl.java:177)
03-30 17:03:44.391: E/AndroidRuntime(23314):    at com.tomasvitek.android.cloudapp.threads.LoginAsyncTask.doInBackground(LoginAsyncTask.java:77)
03-30 17:03:44.391: E/AndroidRuntime(23314):    at com.tomasvitek.android.cloudapp.threads.LoginAsyncTask.doInBackground(LoginAsyncTask.java:1)
03-30 17:03:44.391: E/AndroidRuntime(23314):    at android.os.AsyncTask$2.call(AsyncTask.java:287)
03-30 17:03:44.391: E/AndroidRuntime(23314):    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
03-30 17:03:44.391: E/AndroidRuntime(23314):    ... 5 more
03-30 17:03:54.491: I/Choreographer(23314): Skipped 603 frames!  The application may be doing too much work on its main thread.
03-30 17:03:55.186: E/WindowManager(23314): Activity com.tomasvitek.android.cloudapp.LoginActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@42824460 that was originally added here
03-30 17:03:55.186: E/WindowManager(23314): android.view.WindowLeaked: Activity com.tomasvitek.android.cloudapp.LoginActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@42824460 that was originally added here
03-30 17:03:55.186: E/WindowManager(23314):     at android.view.ViewRootImpl.<init>(ViewRootImpl.java:403)
03-30 17:03:55.186: E/WindowManager(23314):     at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:311)
03-30 17:03:55.186: E/WindowManager(23314):     at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:224)
03-30 17:03:55.186: E/WindowManager(23314):     at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:149)
03-30 17:03:55.186: E/WindowManager(23314):     at android.view.Window$LocalWindowManager.addView(Window.java:554)
03-30 17:03:55.186: E/WindowManager(23314):     at android.app.Dialog.show(Dialog.java:277)
03-30 17:03:55.186: E/WindowManager(23314):     at android.app.ProgressDialog.show(ProgressDialog.java:116)
03-30 17:03:55.186: E/WindowManager(23314):     at android.app.ProgressDialog.show(ProgressDialog.java:99)
03-30 17:03:55.186: E/WindowManager(23314):     at com.tomasvitek.android.cloudapp.LoginActivity$1.onClick(LoginActivity.java:58)
03-30 17:03:55.186: E/WindowManager(23314):     at android.view.View.performClick(View.java:4232)
03-30 17:03:55.186: E/WindowManager(23314):     at android.view.View$PerformClick.run(View.java:17298)
03-30 17:03:55.186: E/WindowManager(23314):     at android.os.Handler.handleCallback(Handler.java:615)
03-30 17:03:55.186: E/WindowManager(23314):     at android.os.Handler.dispatchMessage(Handler.java:92)
03-30 17:03:55.186: E/WindowManager(23314):     at android.os.Looper.loop(Looper.java:137)
03-30 17:03:55.186: E/WindowManager(23314):     at android.app.ActivityThread.main(ActivityThread.java:4921)
03-30 17:03:55.186: E/WindowManager(23314):     at java.lang.reflect.Method.invokeNative(Native Method)
03-30 17:03:55.186: E/WindowManager(23314):     at java.lang.reflect.Method.invoke(Method.java:511)
03-30 17:03:55.186: E/WindowManager(23314):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1027)
03-30 17:03:55.186: E/WindowManager(23314):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
03-30 17:03:55.186: E/WindowManager(23314):     at dalvik.system.NativeStart.main(Native Method)
tomasvitek commented 11 years ago

Yeah, don't worry about this. At this point there is no checking if the requests return valid response. I will add this, to make sure those kinda things don't happen.

tomasvitek commented 11 years ago

:heart: the tag. :+1:

tomasvitek commented 11 years ago

Actually, that's not the issue, the issue is with StringUtils. Maybe you don't have it properly added to the project? I will test this out once I am done with my project.

loop commented 11 years ago

I think you might be right. I will add it again and see if it works but let me know once your run the project yourself. If it works fine for you then it is my workspace.

loop commented 11 years ago

Which one do I download? - http://commons.apache.org/proper/commons-lang/download_lang.cgi

loop commented 11 years ago

I'm such a B-player. It works now, you were right I didn't even add Commons Lang. :)

tomasvitek commented 11 years ago

:+1: :)