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 https://bugzilla.redhat.com/bugzilla/ by Gary Hu, 2 years ago
via Hibernate JIRA by Gary Hu, 1 year ago
org.hibernate.PropertyAccessException: could not get a field value by reflection getter of com.michaelrice.data.PrimaryKey.id
via Hibernate JIRA by Gary Hu, 2 years ago
org.hibernate.PropertyAccessException: could not get a field value by reflection getter of com.michaelrice.data.PrimaryKey.id
via Stack Overflow by Fadd
, 2 years ago
org.hibernate.exception.GenericJDBCException: could not execute query
via mysql.com by Unknown author, 1 year ago
org.hibernate.exception.GenericJDBCException: could not execute batch
java.lang.IllegalArgumentException: Can not set java.lang.Long field com.michaelrice.data.PrimaryKey.id to org.hibernate.bytecode.instrumentation.spi.LazyPropertyInitializer$1	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:164)	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:168)	at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:55)	at sun.reflect.UnsafeObjectFieldAccessorImpl.get(UnsafeObjectFieldAccessorImpl.java:36)	at java.lang.reflect.Field.get(Field.java:379)	at org.hibernate.property.DirectPropertyAccessor$DirectGetter.get(DirectPropertyAccessor.java:59)	at org.hibernate.tuple.component.AbstractComponentTuplizer.getPropertyValue(AbstractComponentTuplizer.java:76)	at org.hibernate.type.ComponentType.getPropertyValue(ComponentType.java:413)	at org.hibernate.type.ComponentType.getHashCode(ComponentType.java:254)	at org.hibernate.engine.spi.EntityUniqueKey.generateHashCode(EntityUniqueKey.java:85)	at org.hibernate.engine.spi.EntityUniqueKey.(EntityUniqueKey.java:66)	at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1719)	at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1627)	at org.hibernate.loader.Loader.getRow(Loader.java:1509)	at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:719)	at org.hibernate.loader.Loader.processResultSet(Loader.java:949)	at org.hibernate.loader.Loader.doQuery(Loader.java:917)	at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:348)	at org.hibernate.loader.Loader.doList(Loader.java:2550)	at org.hibernate.loader.Loader.doList(Loader.java:2536)	at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2366)	at org.hibernate.loader.Loader.list(Loader.java:2361)	at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:495)	at org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:357)	at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:198)	at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1194)	at org.hibernate.internal.QueryImpl.list(QueryImpl.java:101)	at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:268)	at com.redhat.gss.hibernate.test.EntityManagerTest.test01225809(EntityManagerTest.java:136)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at junit.framework.TestCase.runTest(TestCase.java:176)	at junit.framework.TestCase.runBare(TestCase.java:141)	at junit.framework.TestResult$1.protect(TestResult.java:122)	at junit.framework.TestResult.runProtected(TestResult.java:142)	at junit.framework.TestResult.run(TestResult.java:125)	at junit.framework.TestCase.run(TestCase.java:129)	at junit.framework.TestSuite.runTest(TestSuite.java:255)	at junit.framework.TestSuite.run(TestSuite.java:250)	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)