New issue 387 by peli0...@googlemail.com: OI Shopping List:
ClassNotFoundException in PathClassLoader.findClass()
http://code.google.com/p/openintents/issues/detail?id=387
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
Comment #1 on issue 387 by peli0...@gmail.com: OI Shopping List:
ClassNotFoundException in PathClassLoader.findClass()
http://code.google.com/p/openintents/issues/detail?id=387
Google Code-in task:
http://www.google-melange.com/gci/task/view/google/gci2011/7139264
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/4237a56b2f9179f2).
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?
> 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.)
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?
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.
Comment #6 on issue 387 by peli0...@gmail.com: OI Shopping List:
ClassNotFoundException in PathClassLoader.findClass()
http://code.google.com/p/openintents/issues/detail?id=387
Google Code-in ended.