Skip to content

`ExceptionInInitializerError` on opening app

  • Device OS and version: Android 15
  • Device model/manufacturer: Google Pixel 6a
  • F-Droid version (in the About screen): 1.22.0
  • F-Droid privileged extension version (if installed): n/a

What did you do? (clear steps if possible)

I opened the app.

What did you expect to see?

I expected to see the open app.

What did you see instead?

I received an error message, which provided the following log file: ACRA-report.stacktrace.json.

For convenience, I have reproduced the stack trace below:

java.lang.ExceptionInInitializerError
        at org.fdroid.fdroid.FDroidApp.getRepoManager(FDroidApp.java:556)
        at org.fdroid.fdroid.AppUpdateStatusManager.<init>(AppUpdateStatusManager.java:223)
        at org.fdroid.fdroid.AppUpdateStatusManager.getInstance(AppUpdateStatusManager.java:115)
        at org.fdroid.fdroid.views.main.MainActivity.onCreate(MainActivity.java:143)
        at android.app.Activity.performCreate(Activity.java:9079)
        at android.app.Activity.performCreate(Activity.java:9057)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1531)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4188)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4393)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:222)
        at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:133)
        at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:103)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:80)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2773)
        at android.os.Handler.dispatchMessage(Handler.java:109)
        at android.os.Looper.loopOnce(Looper.java:232)
        at android.os.Looper.loop(Looper.java:317)
        at android.app.ActivityThread.main(ActivityThread.java:8934)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:591)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)
Caused by: java.lang.NumberFormatException: For input string: "	https://breezy-weather.github.io/fdroid-repo/fdroid/repo"
        at java.lang.Integer.parseInt(Integer.java:776)
        at java.lang.Integer.valueOf(Integer.java:1121)
        at org.fdroid.fdroid.Preferences.stringToIntMap(Preferences.java:633)
        at org.fdroid.fdroid.Preferences.getMirrorErrorData(Preferences.java:656)
        at org.fdroid.fdroid.net.FDroidMirrorParameterManager.<init>(FDroidMirrorParameterManager.java:36)
        at org.fdroid.fdroid.net.DownloaderFactory.<clinit>(DownloaderFactory.java:39)
        ... 21 more

There are two things to note about the stack trace:

  • The input string (" https://breezy-weather.github.io/fdroid-repo/fdroid/repo") starts with a tab.
  • The stack trace is different from #2923 (closed) because it was caused by the input string "I".

I don't know where the leading tab came from, but I wouldn't be surprised if I accidentally included it when copying and pasting the URL of the repo when I added it.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information