java.lang.ClassCastException: com.nextgis.maplib.datasource.GeometryRTree$Node cannot be cast to com.nextgis.maplib.datasource.GeometryRTree$Entry

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 GitHub by BishopGIS
, 1 year ago
com.nextgis.maplib.datasource.GeometryRTree$Node cannot be cast to com.nextgis.maplib.datasource.GeometryRTree$Entry
java.lang.ClassCastException: com.nextgis.maplib.datasource.GeometryRTree$Node cannot be cast to com.nextgis.maplib.datasource.GeometryRTree$Entry
at com.nextgis.maplib.datasource.GeometryRTree.search(GeometryRTree.java:288)
at com.nextgis.maplib.datasource.GeometryRTree.search(GeometryRTree.java:301)
at com.nextgis.maplib.datasource.GeometryRTree.search(GeometryRTree.java:257)
at com.nextgis.maplib.map.VectorLayer.checkPointOverlaps(VectorLayer.java:641)
at com.nextgis.maplib.map.VectorLayer.prepareGeometry(VectorLayer.java:657)
at com.nextgis.maplib.map.VectorLayer.insertInternal(VectorLayer.java:1302)
at com.nextgis.maplib.map.NGWVectorLayer.insertInternal(NGWVectorLayer.java:283)
at com.nextgis.maplib.map.VectorLayer.insert(VectorLayer.java:1294)
at com.nextgis.maplib.map.VectorLayer.insert(VectorLayer.java:1398)
at com.nextgis.maplib.datasource.LayerContentProvider.insert(LayerContentProvider.java:167)
at android.content.ContentProvider$Transport.insert(ContentProvider.java:267)
at android.content.ContentResolver.insert(ContentResolver.java:1234)
at com.nextgis.maplibui.activity.ModifyAttributesActivity.saveFeature(ModifyAttributesActivity.java:566)
at com.nextgis.maplibui.activity.FormBuilderModifyAttributesActivity.saveFeature(FormBuilderModifyAttributesActivity.java:312)
at com.nextgis.maplibui.activity.ModifyAttributesActivity.onOptionsItemSelected(ModifyAttributesActivity.java:485)
at android.support.v7.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:188)
at android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:103)
at android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:103)
at android.support.v7.app.ToolbarActionBar$2.onMenuItemClick(ToolbarActionBar.java:69)
at android.support.v7.widget.Toolbar$1.onMenuItemClick(Toolbar.java:202)
at android.support.v7.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:810)
at android.support.v7.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
at android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:957)
at android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:947)
at android.support.v7.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:155)
at android.view.View.performClick(View.java:5213)
at android.view.View$PerformClick.run(View.java:21174)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5498)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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