mazhenhit / openintents

Automatically exported from code.google.com/p/openintents
0 stars 0 forks source link

OI Shopping List: ClassNotFoundException in PathClassLoader.findClass() #387

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Crash:
java.lang.ClassNotFoundException in PathClassLoader.findClass()

Platforms:
Nexus One, Droid, Others

Stack traces:
v1.4
25.08.2011 17:21:18

java.lang.RuntimeException: Unable to get provider 
org.openintents.shopping.backup.MyBackupPro: java.lang.ClassNotFoundException: 
org.openintents.shopping.backup.MyBackupPro in loader 
dalvik.system.PathClassLoader[/mnt/asec/org.openintents.shopping-1/pkg.apk]
 at android.app.ActivityThread.installProvider(ActivityThread.java:4060)
 at android.app.ActivityThread.installContentProviders(ActivityThread.java:3767)
 at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3723)
 at android.app.ActivityThread.access$2200(ActivityThread.java:132)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1077)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:143)
 at android.app.ActivityThread.main(ActivityThread.java:4196)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:507)
 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
 at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: 
org.openintents.shopping.backup.MyBackupPro in loader 
dalvik.system.PathClassLoader[/mnt/asec/org.openintents.shopping-1/pkg.apk]
 at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
 at android.app.ActivityThread.installProvider(ActivityThread.java:4045)
 ... 12 more

Original issue reported on code.google.com by peli0...@googlemail.com on 25 Aug 2011 at 12:18

GoogleCodeExporter commented 8 years ago
Google Code-in task:
http://www.google-melange.com/gci/task/view/google/gci2011/7139264

Original comment by peli0...@googlemail.com on 24 Nov 2011 at 11:16

GoogleCodeExporter commented 8 years ago
Taking a quick glance, this seems to result from the installation process of 
Android apps in general becoming corrupted, which can lead to odd errors. ( 
http://nolanlawson.com/2011/04/06/army-of-testers/ from 
http://groups.google.com/group/android-developers/browse_thread/thread/4237a56b2
f9179f2).

If this is the issue, perhaps the solution would be to simply catch the 
exception, then prompt the user to uninstall and then re-install the 
application? 

To figure out if this is something that is repeatable, I'm planning to try to 
recreate the error either on my development hardware (Optimus V, 2.2.1) and 
then on an emulator running Froyo, and then Gingerbread.

Also, is where discussion on the issue should go? Or should it go with the 
Google Groups discussion page?

Original comment by ken...@gmail.com on 25 Nov 2011 at 12:21

GoogleCodeExporter commented 8 years ago
> catch the exception, then prompt the user to uninstall and then re-install 
the application

This sounds like a great solution!

(if it helps advance the issue, like the two links you listed, you can comment 
here. For more general discussions use the discussion page.)

Original comment by peli0...@googlemail.com on 25 Nov 2011 at 12:29

GoogleCodeExporter commented 8 years ago
In version 1.5 of OI Shopping List, org.openintents.shopping.backup.MyBackupPro 
is referenced in the manifest, but doesn't actually exist (hence this might 
have triggered the exception, although it may have been present previously in 
v1.4).

Has the MyBackupPro functionality been taken out? If so, it seems the fix is to 
simply remove the org.openintents.shopping.backup.MyBackupPro reference from 
the Manifest. 

Else, the functionality should be reinstated. How is MyBackupPro integrated 
into OI Shopping List?

Original comment by ken...@gmail.com on 25 Nov 2011 at 6:58

GoogleCodeExporter commented 8 years ago
The class org.openintents.shopping.backup.MyBackupPro exists in 
libs/OIShoppingListMyBackupPro.jar.

In principle this should have been included in the final apk file, but maybe 
there is some problem with the ant script that is used to create the final apk 
file? One could study the latest stable apk from the download section.

Original comment by peli0...@googlemail.com on 26 Nov 2011 at 12:40

GoogleCodeExporter commented 8 years ago
Google Code-in ended.

Original comment by peli0...@googlemail.com on 22 Jan 2012 at 12:52

GoogleCodeExporter commented 8 years ago
like this 

Original comment by fastshop...@gmail.com on 12 Jan 2015 at 6:57