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. WebView -- preventing pages from being cached

Does WebView.setCacheMode(LOAD_NO_CACHE) also stop pages from being
written to cache? Should I also disable (or enable?) the Application
Caches API using setAppCacheEnabled? Any other steps?

Thanks,

Jacob

-- 

2. RSS viewer app problem

Hi,

ive developed a RSS viewer app. The problem is sometimes i get
truncated titles and sometimes when i refresh it i get the complete
titles. is this a memory leak thing?

i get my data thru rss and place it in an array.

private ArrayList<String> readRSSFromFile(){
                ArrayList<String> rssArr = null;
                Properties prop;
                try{
                        rssArr = new ArrayList<String>();
                        prop = readPropertiesFromFile();
                        if(prop!=null){
                                for(int i=0;i<prop.size();i++){
                                        
rssArr.add((String)prop.getProperty("feed"+i));
                                }
                        }
                }catch(Exception e){
                        e.printStackTrace();
                }
                return rssArr;
        }

if its memory leak how can i fix this?

thanks

-- 

3. 802.11e Support available in android ?

4. I can't configure my google account on Android.

5. Making an app backward compatible.

6. I require Code for profile changing

7. Service is not started automatically at app startup