java.lang.IllegalArgumentException: Can not set java.lang.Long field ch.anypos.common.model.User.id to ch.anypos.common.model.User

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 frne
, 1 year ago
Can not set java.lang.Long field ch.anypos.common.model.User.id to ch.anypos.common.model.User
via Stack Overflow by crm86
, 1 year ago
Can not set test.MyType field test.MyContainer.field1 to test.MyType
via GitHub by Joshua-Barclay
, 10 months ago
Can not set f.q.c.n.Class field f.q.c.n.Class$Model.formShell to com.github.bordertech.wcomponents.WPanel$PanelModel
via Stack Overflow by TKG
, 2 years ago
Can not set K field b.f3 to java.lang.Class
via Coderanch by Oliver Bachmann, 1 year ago
Can not set java.lang.String field Categories.name to java.lang.String
via Stack Overflow by badaboum
, 1 year ago
Can not set java.lang.String field dz.bnpparibas.src.modele.Backoffice.code to java.lang.String
java.lang.IllegalArgumentException: Can not set java.lang.Long field ch.anypos.common.model.User.id to ch.anypos.common.model.User
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)
at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:58)
at sun.reflect.UnsafeObjectFieldAccessorImpl.get(UnsafeObjectFieldAccessorImpl.java:36)
at java.lang.reflect.Field.get(Field.java:393)
at org.neo4j.ogm.annotations.FieldWriter.read(FieldWriter.java:53)
at org.neo4j.ogm.annotations.FieldReader.read(FieldReader.java:39)
at org.neo4j.ogm.utils.EntityUtils.identity(EntityUtils.java:38)
at org.neo4j.ogm.context.EntityGraphMapper.mapEntity(EntityGraphMapper.java:218)
at org.neo4j.ogm.context.EntityGraphMapper.map(EntityGraphMapper.java:132)

Users with the same issue

20 times, 8 months ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
64 more bugmates

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