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

4 views
Skip to first unread message

openi...@googlecode.com

unread,
Aug 25, 2011, 8:19:02 AM8/25/11
to openinten...@googlegroups.com
Status: New
Owner: ----
Labels: Type-DefectMarket Priority-Medium Market Stack-Shopping

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


openi...@googlecode.com

unread,
Nov 24, 2011, 6:17:48 PM11/24/11
to openinten...@googlegroups.com
Updates:
Status: Started
Labels: GoogleCodeIn

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

openi...@googlecode.com

unread,
Nov 24, 2011, 7:22:04 PM11/24/11
to openinten...@googlegroups.com

Comment #2 on issue 387 by ken...@gmail.com: OI Shopping List:
ClassNotFoundException in PathClassLoader.findClass()
http://code.google.com/p/openintents/issues/detail?id=387

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?

openi...@googlecode.com

unread,
Nov 24, 2011, 7:30:05 PM11/24/11
to openinten...@googlegroups.com

Comment #3 on issue 387 by peli0...@gmail.com: OI Shopping List:
ClassNotFoundException in PathClassLoader.findClass()
http://code.google.com/p/openintents/issues/detail?id=387

> 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.)

openi...@googlecode.com

unread,
Nov 25, 2011, 1:58:52 PM11/25/11
to openinten...@googlegroups.com

Comment #4 on issue 387 by ken...@gmail.com: OI Shopping List:
ClassNotFoundException in PathClassLoader.findClass()
http://code.google.com/p/openintents/issues/detail?id=387

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?

openi...@googlecode.com

unread,
Nov 25, 2011, 7:44:16 PM11/25/11
to openinten...@googlegroups.com

Comment #5 on issue 387 by peli0...@gmail.com: OI Shopping List:
ClassNotFoundException in PathClassLoader.findClass()
http://code.google.com/p/openintents/issues/detail?id=387

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.

openi...@googlecode.com

unread,
Jan 21, 2012, 7:56:28 PM1/21/12
to openinten...@googlegroups.com
Updates:
Status: Accepted
Labels: -GoogleCodeIn

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.

openi...@googlecode.com

unread,
Jan 12, 2015, 1:57:31 AM1/12/15
to openinten...@googlegroups.com

Comment #7 on issue 387 by fastshop...@gmail.com: OI Shopping List:
ClassNotFoundException in PathClassLoader.findClass()
https://code.google.com/p/openintents/issues/detail?id=387

like this

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages