Crash report: NoSuchFieldError

by Markus » Thu, 21 Oct 2010 15:41:58 GMT


Sponsored Links
 Hi all,

Yesterday I noticed this awkward crash report on the Android Market
Home:

java.lang.ExceptionInInitializerError
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1429)
at android.app.Instrumentation.newApplication(Instrumentation.java:
957)
at android.app.Instrumentation.newApplication(Instrumentation.java:
942)
at android.app.ActivityThread
$PackageInfo.makeApplication(ActivityThread.java:644)
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.NoSuchFieldError:
at com.xxx.yyy.Application.<clinit>(Application.java:30)
... 16 more

The device was a Nexus One and apparently this happened twice (but
only to one user).

Any idea what might be the cause of this?

Markus

--



Crash report: NoSuchFieldError

by TreKing » Thu, 21 Oct 2010 22:53:18 GMT


 




First Google hit:
 http://download.oracle.com/javase/1.4.2/docs/api/java/lang/ExceptionInInitializerError.html 

"...thrown to indicate that an exception occurred during evaluation of a
static initializer or the initializer for a static variable."

So look at how your statics are being initialize. Or, if it's only happening
to this one person, ignore it. That's what I do :-P

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

--


Sponsored Links


Other Threads

1. Is it possible to make an alias resource for a whole translation?

Dear clever Android coders,

I'm in the process of making one of my applications more localization aware, and basically I know how I *CAN* make it work, but it seems somewhat suboptimal. What I'm after is really to make an alias from one values-xxx/strings.xml to another values-yyy/strings.xml - doing this for drawables and layouts is no problem, but for "simple" values it doesn't work the same as far as I can tell. (Yes, I've googled these groups too, but didn't come up with anything useful.) For my scenario I need to have a base language (values/strings.xml) that works for many places, but a handful of the others need to be the same (both actual languages and mccXXX depending on the device and the SIM etc) in several groups (per country basically). Obviously I can simply symlink (though it may confuse Eclipse) or even copy the files, but they are reasonably large (a few 100 strings each) so I'd prefer to store them only once in the APK if possible. To my understanding there is fair optimization going on at runtime, but I still suspect copied files will also eat memory at that stage compared to a true alias. I suspect going for just mccXXX would work for 90+% of the users, but I'd really want to do better than that - especially since I consider mccXXX somewhat of a hack while waiting for "true local" phones to arrive to most smaller countries. Advice appreciated / Jonas --

2. Attach debugger to a process running in the emulator via eclipse.

Hi,

Is there some way to attach de{*filter*} to a process running in the
emulator via eclipse?

I am trying to debug the following scenario.

1.) Kill a process via pressing the red terminate button from Debug
perspective in eclipse.
2.) Relaunch the app in emulator.

When the app is relaunched in step 2.), I want to step through the
de{*filter*}.
I am unable to figure out a way to attach de{*filter*} to a process
running in the emulator.

I would really appreciate any pointers regarding this.

Thanks a lot,

--MB.

-- 

3. LK2.08 for original firmware

4. Android market hiding apps with bluetooth permissions from Android 1.5 and 1.6

5. resolution visibilty on Android Market

6. Easy and fast XML Parser?

7. Android for newbie