Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalArgumentException Illegal ID value: 0 #820

Closed
joeyzhao1005 opened this issue Jan 23, 2020 · 2 comments
Closed

java.lang.IllegalArgumentException Illegal ID value: 0 #820

joeyzhao1005 opened this issue Jan 23, 2020 · 2 comments

Comments

@joeyzhao1005
Copy link

java.lang.IllegalArgumentException
Illegal ID value: 0

1 io.objectbox.Cursor.nativeDeleteEntity(Native Method)
2 io.objectbox.Cursor.boolean deleteEntity(long)()
3 ##parent##1##parent##
4 ##child## long internalHandle()##child##
5 io.objectbox.Box.long count()()
6 ##parent##5##parent##
7 ##child## java.lang.Object get(long)##child##
8 ##child## void releaseReader(io.objectbox.Cursor)##child##
9 ##child## void remove(java.util.Collection)##child##
10 ##child## boolean remove(java.lang.Object)##child##
11 ##child## void txCommitted(io.objectbox.Transaction)##child##
12 com.zhao.withu.db.DBGroupInfoManager.long count()()
13 ##parent##8##parent##
14 ##child## java.lang.Object deleteSync(com.zhao.withu.launcher.bean.GroupInfo,kotlin.coroutines.Continuation)##child##
15 ##child## com.zhao.withu.launcher.bean.GroupInfo findByGroupNameSync(java.lang.String)##child##
16 ##child## void saveOrUpdate(com.zhao.withu.launcher.bean.GroupInfo,com.kit.app.core.task.DoSomeThing)##child##
17 ##child## void saveOrUpdate$default(com.zhao.withu.launcher.bean.GroupInfo,com.kit.app.core.task.DoSomeThing,int,java.lang.Object)##child##
18 ##child## void saveOrUpdateAll(java.util.List)##child##
19 ##child## void saveOrUpdateAll(java.util.List,com.kit.app.Callback)##child##
20 ##child## void saveOrUpdateSync(com.zhao.withu.launcher.bean.GroupInfo)##child##

@greenrobot-team
Copy link
Member

Hello! My first guess is that the code is trying to delete an entity with ID 0, which is a special ID reserved by ObjectBox.

If that is not it, please provide more details, e.g. code that reproduces this issue. Thanks!

@greenrobot
Copy link
Member

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants