java.lang.IllegalArgumentException: Can not set long field com.phillipross.testing.model.Message.id to org.eclipse.persistence.queries.ReportQueryResult Mapping: org.eclipse.persistence.mappings.DirectToFieldMapping[id--> MESSAGE.ID] Descriptor: RelationalDescriptor(com.phillipross.testing.model.Message --> [DatabaseTable(MESSAGE)])

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by 392 Guest, 1 year ago
Can not set long field com.phillipross.testing.model.Message.id to org.eclipse.persistence.queries.ReportQueryResult Mapping: org.eclipse.persistence.mappings.DirectToFieldMapping[id--> MESSAGE.ID] Descriptor: RelationalDescriptor(com.phillipross.testing.model.Message --> [DatabaseTable(MESSAGE)])
via Eclipse Bugzilla by phillip.w.g.ross, 1 year ago
Can not set long field testcase1.Purchase.id to java.lang.Long Mapping: org.eclipse.persistence.mappings.DirectToFieldMapping[id-->PURCHASE.ID] Descriptor: RelationalDescriptor(testcase1.Purchase --> [DatabaseTable(PURCHASE)])
java.lang.IllegalArgumentException: Can not set long field com.phillipross.testing.model.Message.id to org.eclipse.persistence.queries.ReportQueryResult Mapping: org.eclipse.persistence.mappings.DirectToFieldMapping[id--> MESSAGE.ID] Descriptor: RelationalDescriptor(com.phillipross.testing.model.Message --> [DatabaseTable(MESSAGE)])
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:146)
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150)
at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:37)
at sun.reflect.UnsafeLongFieldAccessorImpl.getLong(UnsafeLongFieldAccessorImpl.java:42)
at sun.reflect.UnsafeLongFieldAccessorImpl.get(UnsafeLongFieldAccessorImpl.java:18)
at java.lang.reflect.Field.get(Field.java:358)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
3 times, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

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