java.lang.Error: invalid class for JSON at com.couchbase.cbforest.View.keyAdd(View.java:163) at com.couchbase.cbforest.View.objectToKey(View.java:124) at com.couchbase.cbforest.Indexer.emit(Indexer.java:33) at com.couchbase.lite.store.ForestDBViewStore.emit(ForestDBViewStore.java:336)

Google Groups | Alex Chevrier | 1 year 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

    Cannot put an Object other than of instance String as key of Mapper

    Google Groups | 1 year ago | Alex Chevrier
    java.lang.Error: invalid class for JSON at com.couchbase.cbforest.View.keyAdd(View.java:163) at com.couchbase.cbforest.View.objectToKey(View.java:124) at com.couchbase.cbforest.Indexer.emit(Indexer.java:33) at com.couchbase.lite.store.ForestDBViewStore.emit(ForestDBViewStore.java:336)

    Root Cause Analysis

    1. java.lang.Error

      invalid class for JSON at com.couchbase.cbforest.View.keyAdd(View.java:163) at com.couchbase.cbforest.View.objectToKey(View.java:124) at com.couchbase.cbforest.Indexer.emit(Indexer.java:33) at com.couchbase.lite.store.ForestDBViewStore.emit(ForestDBViewStore.java:336)

      at com.couchbase.lite.store.ForestDBViewStore.updateIndexes()
    2. com.couchbase.lite
      Query.run
      1. com.couchbase.lite.store.ForestDBViewStore.updateIndexes(ForestDBViewStore.java:276)
      2. com.couchbase.lite.View.updateIndexes(View.java:321)
      3. com.couchbase.lite.View.updateIndex(View.java:294)
      4. com.couchbase.lite.Database.queryViewNamed(Database.java:2092)
      5. com.couchbase.lite.Query.run(Query.java:433)
      5 frames
    3. Unknown
      StartApp.main
      1. Client.printQueryToLog(Client.java:285)
      2. Client.createEventsByDateView(Client.java:261)
      3. Client.helloCBL(Client.java:73)
      4. Client.run(Client.java:38)
      5. StartApp.main(StartApp.java:6)
      5 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames