question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ExceptionInInitializerError / java.lang.IllegalArgumentException

See original GitHub issue

from play store stats: (244 occurrences, 12 users as of today)

Bug description

java.lang.ExceptionInInitializerError: 
  at cgeo.geocaching.storage.ContentStorage.get (ContentStorage.java:62)
  at cgeo.geocaching.utils.Log.<clinit> (Log.java:65)
  at cgeo.geocaching.utils.Log.setDebug (Log.java:102)
  at cgeo.geocaching.settings.Settings.<clinit> (Settings.java:119)
  at cgeo.geocaching.CgeoApplication.initApplicationLocale (CgeoApplication.java:116)
  at cgeo.geocaching.CgeoApplication.onCreate (CgeoApplication.java:52)
  at android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1202)
  at android.app.ActivityThread.handleBindApplication (ActivityThread.java:7393)
  at android.app.ActivityThread.access$2400 (ActivityThread.java:251)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2284)
  at android.os.Handler.dispatchMessage (Handler.java:110)
  at android.os.Looper.loop (Looper.java:219)
  at android.app.ActivityThread.main (ActivityThread.java:8393)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:513)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1055)
Caused by: java.lang.IllegalArgumentException: 
  at android.database.DatabaseUtils.readExceptionFromParcel (DatabaseUtils.java:170)
  at android.database.DatabaseUtils.readExceptionFromParcel (DatabaseUtils.java:140)
  at android.content.ContentProviderProxy.call (ContentProviderNative.java:658)
  at android.content.ContentResolver.call (ContentResolver.java:2080)
  at android.provider.DocumentsContract.createDocument (DocumentsContract.java:1327)
  at cgeo.geocaching.storage.DocumentContentAccessor.findCreateSubdirectory (DocumentContentAccessor.java:353)
  at cgeo.geocaching.storage.DocumentContentAccessor.getSubdirUri (DocumentContentAccessor.java:323)
  at cgeo.geocaching.storage.DocumentContentAccessor.getFolderUri (DocumentContentAccessor.java:290)
  at cgeo.geocaching.storage.DocumentContentAccessor.ensureFolder (DocumentContentAccessor.java:231)
  at cgeo.geocaching.storage.ContentStorage.ensureFolder (ContentStorage.java:137)
  at cgeo.geocaching.storage.ContentStorage.ensureFolder (ContentStorage.java:127)
  at cgeo.geocaching.storage.ContentStorage.reevaluateFolderDefaults (ContentStorage.java:112)
  at cgeo.geocaching.storage.ContentStorage.<init> (ContentStorage.java:103)
  at cgeo.geocaching.storage.ContentStorage.<clinit> (ContentStorage.java:59)

c:geo version

release 2021.06.23

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
eddiemuccommented, Jul 19, 2021

Unable to tell what really goes on there in the depth’s of this disturbing SAF framework…

I added two guards in PR #11260, including log creating, in the hope to find out more about these errors through them. It is a shame that google does not include the exception message in their reports.

0reactions
eddiemuccommented, Jul 19, 2021

It is part of the commit message as well as PR. I am just too impatient to wait for merge to master (want to see my ToDo list get shorter 😃)

Read more comments on GitHub >

github_iconTop Results From Across the Web

When Does Java Throw the ExceptionInInitializerError?
In this quick tutorial, we're going to see what causes Java to throw an instance of the ExceptionInInitializerError exception.
Read more >
How to Resolve Java.lang.ExceptionInInitializerError In Java?
ExceptionInInitializerError is the child class of the Error class and hence it is an unchecked exception.
Read more >
java.lang.IllegalStateException: The path to the driver ...
ExceptionInInitializerError Caused by: java. lang. IllegalStateException: The path to the driver executable must be set with Selenium and Java ...
Read more >
How to handle Exception Initializer Error - Examples Java ...
The ExceptionInInitializerError is thrown when the JVM attempts to load a new class. During the class loading procedure, all static variables ...
Read more >
ExceptionInInitializerError (Java Platform SE 8 )
An ExceptionInInitializerError is thrown to indicate that an exception occurred during evaluation of a static ... Methods inherited from class java.lang.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found