java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getAbsolutePath()' on a null object reference

couchbase.com | 2 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Couchbase Lite Android: CBLReplication customProperties alternative in Android - Couchbase Lite - Couchbase Forums

    couchbase.com | 2 months ago
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getAbsolutePath()' on a null object reference
  2. 0

    GitHub comment 1044#279946121

    GitHub | 2 months ago | mtrakal
    java.lang.UnsatisfiedLinkError: No implementation found for long com.couchbase.cbforest.Database._open(java.lang.String, int, int, byte[]) (tried Java_com_couchbase_cbforest_Database__1open and Java_com_couchbase_cbforest_Database__1open__Ljava_lang_String_2II_3B)
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 909#232815709

    GitHub | 9 months ago | hideki
    com.couchbase.cbforest.ForestException: Forestdb Handle is being used by another thread

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'java.lang.String java.io.File.getAbsolutePath()' on a null object reference

      at com.couchbase.lite.util.NativeLibUtils.loadLibrary()
    2. com.couchbase.lite
      ForestDBStore.<init>
      1. com.couchbase.lite.util.NativeLibUtils.loadLibrary(NativeLibUtils.java:45)
      2. com.couchbase.lite.store.ForestDBStore.<init>(ForestDBStore.java:75)
      2 frames
    3. Java RT
      Class.forName
      1. java.lang.Class.classForName(Native Method)
      2. java.lang.Class.forName(Class.java:309)
      3. java.lang.Class.forName(Class.java:273)
      3 frames
    4. com.couchbase.lite
      Manager.openDatabase
      1. com.couchbase.lite.Database.createStoreInstance(Database.java:1236)
      2. com.couchbase.lite.Database.open(Database.java:1292)
      3. com.couchbase.lite.Manager.openDatabase(Manager.java:334)
      3 frames
    5. com.happyfall.kamero
      KameroApp.onCreate
      1. com.happyfall.kamero.couchbase.database.CouchDatabase.getDatabase(CouchDatabase.java:42)
      2. com.happyfall.kamero.couchbase.CouchApp.<init>(CouchApp.java:27)
      3. com.happyfall.kamero.couchbase.CouchApp.<init>(CouchApp.java:20)
      4. com.happyfall.kamero.couchbase.replication.ContinuousReplication.<init>(ContinuousReplication.java:24)
      5. com.happyfall.kamero.couchbase.replication.ContinuousReplication.<init>(ContinuousReplication.java:19)
      6. com.happyfall.kamero.login.facebook.LoginManager.userLoggedIn(LoginManager.java:191)
      7. com.happyfall.kamero.login.facebook.LoginManager.<init>(LoginManager.java:78)
      8. com.happyfall.kamero.login.facebook.LoginManager.<init>(LoginManager.java:31)
      9. com.happyfall.kamero.init.KameroApp.onCreate(KameroApp.java:49)
      9 frames
    6. com.android.tools
      BootstrapApplication.onCreate
      1. com.android.tools.fd.runtime.BootstrapApplication.onCreate(BootstrapApplication.java:370)
      1 frame
    7. Android Platform
      ActivityThread.main
      1. android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1035)
      2. android.app.ActivityThread.handleBindApplication(ActivityThread.java:4638)
      3. android.app.ActivityThread.access$1500(ActivityThread.java:155)
      4. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1378)
      5. android.os.Handler.dispatchMessage(Handler.java:102)
      6. android.os.Looper.loop(Looper.java:135)
      7. android.app.ActivityThread.main(ActivityThread.java:5343)
      7 frames
    8. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    9. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
      2 frames