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

GitHub | BishopGIS | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Insert point failed

    GitHub | 5 months ago | BishopGIS
    java.lang.ClassCastException: com.nextgis.maplib.datasource.GeometryRTree$Node cannot be cast to com.nextgis.maplib.datasource.GeometryRTree$Entry

    Root Cause Analysis

    1. 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()
    2. com.nextgis.maplib
      LayerContentProvider.insert
      1. com.nextgis.maplib.datasource.GeometryRTree.search(GeometryRTree.java:288)
      2. com.nextgis.maplib.datasource.GeometryRTree.search(GeometryRTree.java:301)
      3. com.nextgis.maplib.datasource.GeometryRTree.search(GeometryRTree.java:257)
      4. com.nextgis.maplib.map.VectorLayer.checkPointOverlaps(VectorLayer.java:641)
      5. com.nextgis.maplib.map.VectorLayer.prepareGeometry(VectorLayer.java:657)
      6. com.nextgis.maplib.map.VectorLayer.insertInternal(VectorLayer.java:1302)
      7. com.nextgis.maplib.map.NGWVectorLayer.insertInternal(NGWVectorLayer.java:283)
      8. com.nextgis.maplib.map.VectorLayer.insert(VectorLayer.java:1294)
      9. com.nextgis.maplib.map.VectorLayer.insert(VectorLayer.java:1398)
      10. com.nextgis.maplib.datasource.LayerContentProvider.insert(LayerContentProvider.java:167)
      10 frames
    3. Android Platform
      ContentResolver.insert
      1. android.content.ContentProvider$Transport.insert(ContentProvider.java:267)
      2. android.content.ContentResolver.insert(ContentResolver.java:1234)
      2 frames
    4. com.nextgis.maplibui
      ModifyAttributesActivity.onOptionsItemSelected
      1. com.nextgis.maplibui.activity.ModifyAttributesActivity.saveFeature(ModifyAttributesActivity.java:566)
      2. com.nextgis.maplibui.activity.FormBuilderModifyAttributesActivity.saveFeature(FormBuilderModifyAttributesActivity.java:312)
      3. com.nextgis.maplibui.activity.ModifyAttributesActivity.onOptionsItemSelected(ModifyAttributesActivity.java:485)
      3 frames
    5. Android Platform
      Activity.onMenuItemSelected
      1. android.app.Activity.onMenuItemSelected(Activity.java:2948)
      1 frame
    6. Android Support v4
      FragmentActivity.onMenuItemSelected
      1. android.support.v4.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:421)
      1 frame
    7. Android v7
      ActionMenuView$MenuBuilderCallback.onMenuItemSelected
      1. android.support.v7.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:188)
      2. android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:103)
      3. android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:103)
      4. android.support.v7.app.ToolbarActionBar$2.onMenuItemClick(ToolbarActionBar.java:69)
      5. android.support.v7.widget.Toolbar$1.onMenuItemClick(Toolbar.java:202)
      6. android.support.v7.widget.ActionMenuView$MenuBuilderCallback.onMenuItemSelected(ActionMenuView.java:761)
      6 frames
    8. android.support.v7
      MenuBuilder.performItemAction
      1. android.support.v7.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:810)
      2. android.support.v7.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
      3. android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:957)
      4. android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:947)
      4 frames
    9. Android v7
      ActionMenuView.invokeItem
      1. android.support.v7.widget.ActionMenuView.invokeItem(ActionMenuView.java:618)
      1 frame
    10. android.support.v7
      ActionMenuItemView.onClick
      1. android.support.v7.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:155)
      1 frame
    11. Android Platform
      ActivityThread.main
      1. android.view.View.performClick(View.java:5213)
      2. android.view.View$PerformClick.run(View.java:21174)
      3. android.os.Handler.handleCallback(Handler.java:739)
      4. android.os.Handler.dispatchMessage(Handler.java:95)
      5. android.os.Looper.loop(Looper.java:148)
      6. android.app.ActivityThread.main(ActivityThread.java:5498)
      6 frames
    12. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    13. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames