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

  1. ,

    Thrown to indicate that a method has been passed an illegal or inappropriate argument. Make sure your getter and setter methods have the same return/parameter types (that is, String for String, Integer for Integer).

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	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)	at org.eclipse.persistence.internal.descriptors.InstanceVariableAttributeAccessor.getAttributeValueFromObject(InstanceVariableAttributeAccessor.java:76)