[android-developers] Re: ClassNotFoundException crash reports from Market

2011-01-24 Thread Droider
Hi,

The problem with this is they have to keep uninstalling and re
installing the app over and over.

I reproduced this error by force remvoing my sdcard with out
unmounting it. This left all the apps on my sd card in the app draw
but with blank icons.

java.lang.RuntimeException: Unable to instantiate activity
ComponentInfo{com.mycompany.app/com.mycompany.app.MAINACTIVITY}:
java.lang.ClassNotFoundException: com.mycompany.app.MAINACTIVITY in
loader dalvik.system.PathClassLoader[/mnt/asec/com.mycompany.app-1/
pkg.apk]
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2585)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2679)
at android.app.ActivityThread.access$2300(ActivityThread.java:125)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:
2033)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:876)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException:
com.mycompany.app.MAINACTIVITY in loader
dalvik.system.PathClassLoader[/mnt/asec/com.mycompany.app-1/pkg.apk]
at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2577)
... 11 more

the game worked fine last night now it just forces closed.

Everytime I want to use this app I have to uninstall and reinstall and
start over.

On Jan 6, 11:28 am, Emanuel Moecklin 1gravity...@gmail.com wrote:
 Hi there

 I was finally able to reproduce the problem on one of my phones.
 It threw the exact same exception I'm normally getting as a market
 crash report. The result of my investigation: no app problem but a
 problem during installation.
 Basically the apk was corrupt and therefore the main activity class
 could not be found. This explanation makes sense because the app
 hasn't even been started yet when the exception occurs so how could it
 be the app's fault? Especially considering the fact that the exact
 same app/apk works fine on many identical devices out there. I'm
 thinking that whatever piece of code installs the apk must be blamed
 for this issue. A fresh installation of the app fixes the issue for
 the user.

 Emanuel Moecklin
 1gravity LLC

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ClassNotFoundException crash reports from Market

2011-01-05 Thread Emanuel Moecklin
Hi there

I was finally able to reproduce the problem on one of my phones.
It threw the exact same exception I'm normally getting as a market
crash report. The result of my investigation: no app problem but a
problem during installation.
Basically the apk was corrupt and therefore the main activity class
could not be found. This explanation makes sense because the app
hasn't even been started yet when the exception occurs so how could it
be the app's fault? Especially considering the fact that the exact
same app/apk works fine on many identical devices out there. I'm
thinking that whatever piece of code installs the apk must be blamed
for this issue. A fresh installation of the app fixes the issue for
the user.

Emanuel Moecklin
1gravity LLC

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ClassNotFoundException crash reports from Market

2011-01-04 Thread Technical Support
I started getting ClassNotFoundExceptions for one of the classes in my
application last night.

Oddly enough I also got a report from a user that he has a brand new
EVO and he can not install my widget.  He gets a home screen full
AFTER he gets the configuration screen on a blank home screen.  The
Provider for the BroadcastReceiver is the one that gets the CNFE.  He
sent me a LogCollector but there is no indication of any problem in
there.

I know I have active users using my widget quite extensively and it
has worked on every phone I could test on.  A friend of mine
downloaded and installed it last night on his EVO (purchased about 2
months ago) and it works fine for him.

Is it possible with Android v2.2 that if the user installs the
application to the sdcard there is some runtime problem?  I don't know
if that is the case with this one user.  I'm waiting for him to reply
to my last email.

Anything else anyone can think to check?  This is just bizarre.

On Dec 27, 3:27 pm, Mark Wyszomierski mar...@gmail.com wrote:
 Anyone word on this from google?

 I am distributing a pretty popular app and this error has popped up a
 few hundred times now in the marketplace crash report. I can't really
 do anything for these users except ask them to run something like Log
 Collector but it's a slim chance they'll do that (no takers yet).
 Looks like something related to google maps missing or some such
 thing?:

 java.lang.RuntimeException: Unable to instantiate application
 com.me.test.ActivityMain: java.lang.ClassNotFoundException:
 com.me.test.ActivityMain in loader dalvik.system.PathClassLoader[/
 system/framework/com.google.android.maps.jar:/data/app/
 com.me.test-1.apk]
 Caused by: java.lang.ClassNotFoundException: com.me.test.ActivityMain
 in loader dalvik.system.PathClassLoader[/system/framework/
 com.google.android.maps.jar:/data/app/com.me.test-1.apk]

 Thanks

 On Nov 27, 10:10 am, Emanuel Moecklin 1gravity...@gmail.com wrote:







  Hi Moss

  The com.package.app is just an obfuscated package name (much like
  your com.package.app).
  In reality I'm using a unique name or that's what I hope I do ;-).

  Thanks for your post anyway.
  I really appreciate your support!

  Cheers
  Emanuel

  On Nov 24, 2:01 pm, Moss b.thax@gmail.com wrote:

   Could it be that the class loader is failing to find the right
   package? I just saw that you are using 'com.company.app' as your
   package name. Googling a bit I found that there are many apps that use
   the same schema. Normally I use my domain to identify my packages in a
   unique way like 'com.myweb.myapp'.

   I just tried to reproduce your error and creating 2 apps that use the
   same base package name I just get the error when launching them. I
   think that the class loader will pickup the first listed package and
   then try to load the class (which is not there :P):
    - com.package.app.ActivityA
    - com.package.app.ActivityB

   If I load com.package.app.ActivityB I'm getting the same error.

   Hope this can help you a bit.

   Cheers,
   Moss

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ClassNotFoundException crash reports from Market

2010-12-27 Thread Mark Wyszomierski
Anyone word on this from google?

I am distributing a pretty popular app and this error has popped up a
few hundred times now in the marketplace crash report. I can't really
do anything for these users except ask them to run something like Log
Collector but it's a slim chance they'll do that (no takers yet).
Looks like something related to google maps missing or some such
thing?:

java.lang.RuntimeException: Unable to instantiate application
com.me.test.ActivityMain: java.lang.ClassNotFoundException:
com.me.test.ActivityMain in loader dalvik.system.PathClassLoader[/
system/framework/com.google.android.maps.jar:/data/app/
com.me.test-1.apk]
Caused by: java.lang.ClassNotFoundException: com.me.test.ActivityMain
in loader dalvik.system.PathClassLoader[/system/framework/
com.google.android.maps.jar:/data/app/com.me.test-1.apk]

Thanks


On Nov 27, 10:10 am, Emanuel Moecklin 1gravity...@gmail.com wrote:
 Hi Moss

 The com.package.app is just an obfuscated package name (much like
 your com.package.app).
 In reality I'm using a unique name or that's what I hope I do ;-).

 Thanks for your post anyway.
 I really appreciate your support!

 Cheers
 Emanuel

 On Nov 24, 2:01 pm, Moss b.thax@gmail.com wrote:







  Could it be that the class loader is failing to find the right
  package? I just saw that you are using 'com.company.app' as your
  package name. Googling a bit I found that there are many apps that use
  the same schema. Normally I use my domain to identify my packages in a
  unique way like 'com.myweb.myapp'.

  I just tried to reproduce your error and creating 2 apps that use the
  same base package name I just get the error when launching them. I
  think that the class loader will pickup the first listed package and
  then try to load the class (which is not there :P):
   - com.package.app.ActivityA
   - com.package.app.ActivityB

  If I load com.package.app.ActivityB I'm getting the same error.

  Hope this can help you a bit.

  Cheers,
  Moss

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ClassNotFoundException crash reports from Market

2010-11-29 Thread Emanuel Moecklin
Hi Moss

com.company.app is just the obfuscated package name (much like your
'com.myweb.myapp').
Of course I'm using a unique package name or at least I hope it is
unique ;-).
Thanks for your post anyway, I really appreciate any help!

Cheers
Emanuel

On Nov 24, 2:01 pm, Moss b.thax@gmail.com wrote:
 Could it be that the class loader is failing to find the right
 package? I just saw that you are using 'com.company.app' as your
 package name. Googling a bit I found that there are many apps that use
 the same schema. Normally I use my domain to identify my packages in a
 unique way like 'com.myweb.myapp'.

 I just tried to reproduce your error and creating 2 apps that use the
 same base package name I just get the error when launching them. I
 think that the class loader will pickup the first listed package and
 then try to load the class (which is not there :P):
  - com.package.app.ActivityA
  - com.package.app.ActivityB

 If I load com.package.app.ActivityB I'm getting the same error.

 Hope this can help you a bit.

 Cheers,
 Moss

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ClassNotFoundException crash reports from Market

2010-11-29 Thread Emanuel Moecklin
On Nov 24, 2:01 pm, Moss b.thax@gmail.com wrote:
 Could it be that the class loader is failing to find the right
 package? I just saw that you are using 'com.company.app' as your
 package name. Googling a bit I found that there are many apps that use
 the same schema. Normally I use my domain to identify my packages in a
 unique way like 'com.myweb.myapp'.

Hi Moss

Unfortunately that's not the solution.
The com.company.app is just an obfuscated package name like the one
in Tauno Talimaa's original post (or like your example
com.myweb.myapp).
In reality I do use a unique package name (I hope so at least ;-).

Thanks for your reply anyway, I really appreciate it!

Emanuel

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ClassNotFoundException crash reports from Market

2010-11-29 Thread Emanuel Moecklin
Hi Moss

The com.package.app is just an obfuscated package name (much like
your com.package.app).
In reality I'm using a unique name or that's what I hope I do ;-).

Thanks for your post anyway.
I really appreciate your support!

Cheers
Emanuel

On Nov 24, 2:01 pm, Moss b.thax@gmail.com wrote:
 Could it be that the class loader is failing to find the right
 package? I just saw that you are using 'com.company.app' as your
 package name. Googling a bit I found that there are many apps that use
 the same schema. Normally I use my domain to identify my packages in a
 unique way like 'com.myweb.myapp'.

 I just tried to reproduce your error and creating 2 apps that use the
 same base package name I just get the error when launching them. I
 think that the class loader will pickup the first listed package and
 then try to load the class (which is not there :P):
  - com.package.app.ActivityA
  - com.package.app.ActivityB

 If I load com.package.app.ActivityB I'm getting the same error.

 Hope this can help you a bit.

 Cheers,
 Moss

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ClassNotFoundException crash reports from Market

2010-11-29 Thread Emanuel Moecklin
Hi Moss

The com.package.app is just an obfuscated package name (much like
your com.package.app).
In reality I'm using a unique name or that's what I hope I do ;-).

Thanks for your post anyway.
I really appreciate your support!

Cheers
Emanuel

On Nov 24, 2:01 pm, Moss b.thax@gmail.com wrote:
 Could it be that the class loader is failing to find the right
 package? I just saw that you are using 'com.company.app' as your
 package name. Googling a bit I found that there are many apps that use
 the same schema. Normally I use my domain to identify my packages in a
 unique way like 'com.myweb.myapp'.

 I just tried to reproduce your error and creating 2 apps that use the
 same base package name I just get the error when launching them. I
 think that the class loader will pickup the first listed package and
 then try to load the class (which is not there :P):
  - com.package.app.ActivityA
  - com.package.app.ActivityB

 If I load com.package.app.ActivityB I'm getting the same error.

 Hope this can help you a bit.

 Cheers,
 Moss

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ClassNotFoundException crash reports from Market

2010-11-24 Thread Moss
Could it be that the class loader is failing to find the right
package? I just saw that you are using 'com.company.app' as your
package name. Googling a bit I found that there are many apps that use
the same schema. Normally I use my domain to identify my packages in a
unique way like 'com.myweb.myapp'.

I just tried to reproduce your error and creating 2 apps that use the
same base package name I just get the error when launching them. I
think that the class loader will pickup the first listed package and
then try to load the class (which is not there :P):
 - com.package.app.ActivityA
 - com.package.app.ActivityB

If I load com.package.app.ActivityB I'm getting the same error.

Hope this can help you a bit.

Cheers,
Moss

On Nov 23, 5:58 pm, Emanuel Moecklin emanuel.moeck...@1gravity.com
wrote:
 Tauno Talimaa tauntz at gmail.com writes:



    Hi all,

  I'm seeing some strange crash reports in Android Market and I can't
  really tell how this could be caused by our application. The reason is
  always ClassNotFoundException or NoClassDefFoundError.
  The exact traces come in various flavors and they have happened for a
  total of ~100 times - here's one (reported 37 times):

  java.lang.RuntimeException: Unable to instantiate application
  com.company.product.MyApplication: java.lang.ClassNotFoundException:
  com.company.product.MyApplication in loader
  dalvik.system.PathClassLoader[/data/app-private/com.company.product-1.apk]
  at

 android.app.ActivityThread$PackageInfo.makeApplication(ActivityThread.java:649)
  at
  android.app.ActivityThread.handleBindApplication(ActivityThread.java:4232)
  at android.app.ActivityThread.access$3000(ActivityThread.java:125)
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2071)
  at android.os.Handler.dispatchMessage(Handler.java:99)
  at android.os.Looper.loop(Looper.java:123)
  at android.app.ActivityThread.main(ActivityThread.java:4627)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:521)
  at

 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  at dalvik.system.NativeStart.main(Native Method)
  Caused by: java.lang.ClassNotFoundException:
  com.company.product.MyApplication in loader
  dalvik.system.PathClassLoader[/data/app-private/com.company.product-1.apk]
  at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
  at android.app.Instrumentation.newApplication(Instrumentation.java:942)
  at

 android.app.ActivityThread$PackageInfo.makeApplication(ActivityThread.java:644)

  ... 11 more

  We've tested the same .apk on a number of devices and we've never
  encountered issues like this - what could cause such issues in the first
  place - custom ROMs / broken devices / something that we're doing wrong? :/

  Tauno

 Hi Tauno

 I'm getting the same error reports in my developer console:

 java.lang.RuntimeException: Unable to instantiate activity
 ComponentInfo{com.company.app/com.company.app.InitializeActivity}:
 java.lang.ClassNotFoundException: com.company.app.InitializeActivity in loader
 dalvik.system.PathClassLoader[/mnt/asec/com.company.app-1/pkg.apk]
 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
 at android.app.ActivityThread.access$2300(ActivityThread.java:125)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:123)
 at android.app.ActivityThread.main(ActivityThread.java:4627)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:521)
 at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:876)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634)
 at dalvik.system.NativeStart.main(Native Method)
 Caused by: java.lang.ClassNotFoundException: 
 com.company.app.InitializeActivity
 in loader dalvik.system.PathClassLoader[/mnt/asec/com.company.app-1/pkg.apk]
 at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
 at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
 ... 11 more

 This one has been reported ~20 times. I'm not using any static initializers,
 don't use code that is non-compliant with Android 1.5 (app is tested on 1.5
 devices) and I already spent quite some time to fix this but without success 
 so
 far. If you have a solution by now I'd very much appreciate if you could let 
 me
 know.

 Emanuel

-- 
You received 

[android-developers] Re: ClassNotFoundException crash reports from Market

2010-11-23 Thread Emanuel Moecklin
Tauno Talimaa tauntz at gmail.com writes:

 
   Hi all,
 
 I'm seeing some strange crash reports in Android Market and I can't 
 really tell how this could be caused by our application. The reason is 
 always ClassNotFoundException or NoClassDefFoundError.
 The exact traces come in various flavors and they have happened for a 
 total of ~100 times - here's one (reported 37 times):
 
 java.lang.RuntimeException: Unable to instantiate application 
 com.company.product.MyApplication: java.lang.ClassNotFoundException: 
 com.company.product.MyApplication in loader 
 dalvik.system.PathClassLoader[/data/app-private/com.company.product-1.apk]
 at 
 
android.app.ActivityThread$PackageInfo.makeApplication(ActivityThread.java:649)
 at 
 android.app.ActivityThread.handleBindApplication(ActivityThread.java:4232)
 at android.app.ActivityThread.access$3000(ActivityThread.java:125)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2071)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:123)
 at android.app.ActivityThread.main(ActivityThread.java:4627)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:521)
 at 
 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
 at dalvik.system.NativeStart.main(Native Method)
 Caused by: java.lang.ClassNotFoundException: 
 com.company.product.MyApplication in loader 
 dalvik.system.PathClassLoader[/data/app-private/com.company.product-1.apk]
 at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
 at android.app.Instrumentation.newApplication(Instrumentation.java:942)
 at 
 
android.app.ActivityThread$PackageInfo.makeApplication(ActivityThread.java:644)
 ... 11 more
 
 We've tested the same .apk on a number of devices and we've never 
 encountered issues like this - what could cause such issues in the first 
 place - custom ROMs / broken devices / something that we're doing wrong? :/
 
 Tauno
 


Hi Tauno

I'm getting the same error reports in my developer console:

java.lang.RuntimeException: Unable to instantiate activity 
ComponentInfo{com.company.app/com.company.app.InitializeActivity}: 
java.lang.ClassNotFoundException: com.company.app.InitializeActivity in loader 
dalvik.system.PathClassLoader[/mnt/asec/com.company.app-1/pkg.apk]
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
at android.app.ActivityThread.access$2300(ActivityThread.java:125)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:876)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: com.company.app.InitializeActivity 
in loader dalvik.system.PathClassLoader[/mnt/asec/com.company.app-1/pkg.apk]
at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
... 11 more

This one has been reported ~20 times. I'm not using any static initializers, 
don't use code that is non-compliant with Android 1.5 (app is tested on 1.5 
devices) and I already spent quite some time to fix this but without success so 
far. If you have a solution by now I'd very much appreciate if you could let me 
know.

Emanuel

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ClassNotFoundException crash reports from Market

2010-09-10 Thread Irene
I've been getting reports of ClassNotFoundException as well. I'm also
not using any of the Maps APIs and compiling against the 1.5
framework. No one knows what can cause this?

On Sep 7, 9:10 am, TreKing treking...@gmail.com wrote:
 On Tue, Sep 7, 2010 at 10:42 AM, Yahel kaye...@gmail.com wrote:
  I had both theses errors : ClassNotFound and  VerifyError.

  Turns out I was using a class and/or a function that was not available
  in the 1.5 framework.

 The one Activity for which the VerifyError is thrown in my bug report does
 not use any new APIs. I did what you suggested anyway and found no errors.
 Next idea? =)

 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ClassNotFoundException crash reports from Market

2010-09-10 Thread DanH
Keep in mind that you can get those errors if an exception is thrown
in the class's static initializer.  Eg, if you say:

static ClassX x = new ClassX();

and the ClassX() constructor throws an exception, the current class
will fail to initialize and it can report (in some cases) as a
NotFound error.  (It can report as any of 5-6 different errors
depending on the phase of the moon.)

On Sep 6, 6:28 am, Tauno Talimaa tau...@gmail.com wrote:
   Hi all,

 I'm seeing some strange crash reports in Android Market and I can't
 really tell how this could be caused by our application. The reason is
 always ClassNotFoundException or NoClassDefFoundError.
 The exact traces come in various flavors and they have happened for a
 total of ~100 times - here's one (reported 37 times):

 java.lang.RuntimeException: Unable to instantiate application
 com.company.product.MyApplication: java.lang.ClassNotFoundException:
 com.company.product.MyApplication in loader
 dalvik.system.PathClassLoader[/data/app-private/com.company.product-1.apk]
 at
 android.app.ActivityThread$PackageInfo.makeApplication(ActivityThread.java:649)
 at
 android.app.ActivityThread.handleBindApplication(ActivityThread.java:4232)
 at android.app.ActivityThread.access$3000(ActivityThread.java:125)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2071)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:123)
 at android.app.ActivityThread.main(ActivityThread.java:4627)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:521)
 at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
 at dalvik.system.NativeStart.main(Native Method)
 Caused by: java.lang.ClassNotFoundException:
 com.company.product.MyApplication in loader
 dalvik.system.PathClassLoader[/data/app-private/com.company.product-1.apk]
 at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
 at android.app.Instrumentation.newApplication(Instrumentation.java:942)
 at
 android.app.ActivityThread$PackageInfo.makeApplication(ActivityThread.java:644)
 ... 11 more

 We've tested the same .apk on a number of devices and we've never
 encountered issues like this - what could cause such issues in the first
 place - custom ROMs / broken devices / something that we're doing wrong? :/

 Tauno

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ClassNotFoundException crash reports from Market

2010-09-07 Thread Pent
 I also have one that failed to find the GeoPoint class that's in the Google
 Maps library.

Maybe that's related to one that puzzled me too.

A knowledgable user informed me that some ROMs just use a stub for the
maps package,
there isn't actually a library there.

Hence your app loads OK but crashes when you try to use map classes
apparently.

Pent

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: ClassNotFoundException crash reports from Market

2010-09-07 Thread Tauno Talimaa
yeah, that sounds reasonable for GeoPoint - but in my case I'm not
using the MapsAPIs at all - Android just can't find my Application
class for some reason :/

On Tue, Sep 7, 2010 at 12:36 PM, Pent tas...@dinglisch.net wrote:
 I also have one that failed to find the GeoPoint class that's in the Google
 Maps library.

 Maybe that's related to one that puzzled me too.

 A knowledgable user informed me that some ROMs just use a stub for the
 maps package,
 there isn't actually a library there.

 Hence your app loads OK but crashes when you try to use map classes
 apparently.

 Pent

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ClassNotFoundException crash reports from Market

2010-09-07 Thread Yahel
Hi all,

I had both theses errors : ClassNotFound and  VerifyError.

Turns out I was using a class and/or a function that was not available
in the 1.5 framework.

In my manifest I have :

uses-sdk android:minSdkVersion=3 android:targetSdkVersion=4/
uses-sdk

And in my project properties I have checked the 1.6 framework.

With both of these it did not trigger compiler error since the
function existed in the 1.6 framework.
I just went in the properties, checked the 1.5 framework. Errors were
detected by the compiler, I found a way around them, then checked back
1.6 in the properties. It did the trick.

Good luck.

Yahel

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: ClassNotFoundException crash reports from Market

2010-09-07 Thread Tauno Talimaa
That can't be the problem in my case because people have reported it
on Droid but we've tested it on Droid from the day it came out till
the 2.2 update - and never seen a problem. Also there are a LOT of
Droid users of the app and it apparently happens just for 0.X% of
them :/


On Tue, Sep 7, 2010 at 6:42 PM, Yahel kaye...@gmail.com wrote:
 Hi all,

 I had both theses errors : ClassNotFound and  VerifyError.

 Turns out I was using a class and/or a function that was not available
 in the 1.5 framework.

 In my manifest I have :

 uses-sdk android:minSdkVersion=3 android:targetSdkVersion=4/
 uses-sdk

 And in my project properties I have checked the 1.6 framework.

 With both of these it did not trigger compiler error since the
 function existed in the 1.6 framework.
 I just went in the properties, checked the 1.5 framework. Errors were
 detected by the compiler, I found a way around them, then checked back
 1.6 in the properties. It did the trick.

 Good luck.

 Yahel

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: ClassNotFoundException crash reports from Market

2010-09-07 Thread TreKing
On Tue, Sep 7, 2010 at 10:42 AM, Yahel kaye...@gmail.com wrote:

 I had both theses errors : ClassNotFound and  VerifyError.

 Turns out I was using a class and/or a function that was not available
 in the 1.5 framework.


The one Activity for which the VerifyError is thrown in my bug report does
not use any new APIs. I did what you suggested anyway and found no errors.
Next idea? =)

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en