java.lang.IllegalStateException: Illegal State: Table is closed, and no longer valid to operate on.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Mark Andrachek, Jr., 10 months ago
Illegal State: Table is closed, and no longer valid to operate on.
via GitHub by dotgc
, 1 year ago
Illegal State: Table is closed, and no longer valid to operate on.
java.lang.IllegalStateException: Illegal State: Table is closed, and no longer valid to operate on.
at io.realm.internal.TableView.nativeSize(Native Method)
at io.realm.internal.TableView.size(TableView.java:129)
at io.realm.RealmResults.size(RealmResults.java:305)
at io.realm.RealmBaseAdapter.getCount(RealmBaseAdapter.java:65)
at com.myapp.MyAdapter.getItemCount(MyAdapter.java:58)
at android.support.v7.widget.RecyclerView$LayoutManager.getRowCountForAccessibility(RecyclerView.java:7469)
at android.support.v7.widget.RecyclerView$LayoutManager.onInitializeAccessibilityNodeInfo(RecyclerView.java:7344)
at android.support.v7.widget.RecyclerView$LayoutManager.onInitializeAccessibilityNodeInfo(RecyclerView.java:7304)
at android.support.v4.view.AccessibilityDelegateCompat$AccessibilityDelegateJellyBeanImpl$1.onInitializeAccessibilityNodeInfo(AccessibilityDelegateCompat.java:233)
at android.view.View.onInitializeAccessibilityNodeInfo(View.java:5525)
at android.view.View.createAccessibilityNodeInfoInternal(View.java:5488)
at android.view.View$AccessibilityDelegate.createAccessibilityNodeInfo(View.java:20854)
at android.view.View.createAccessibilityNodeInfo(View.java:5473)
at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfRealNode(AccessibilityInteractionController.java:1064)
at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchAccessibilityNodeInfos(AccessibilityInteractionController.java:888)
at android.view.AccessibilityInteractionController.findAccessibilityNodeInfoByAccessibilityIdUiThread(AccessibilityInteractionController.java:155)
at android.view.AccessibilityInteractionController.access$400(AccessibilityInteractionController.java:53)
at android.view.AccessibilityInteractionController$PrivateHandler.handleMessage(AccessibilityInteractionController.java:1236)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago

Know the solutions? Share your knowledge to help other developers to debug faster.