org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of cat.cis.portal.supplier.CWSHelp.persistence.EntityPO.entityId

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 Hibernate JIRA by Ben Geyer, 1 year ago
IllegalArgumentException occurred calling getter of cat.cis.portal.supplier.CWSHelp.persistence.EntityPO.entityId
via Hibernate JIRA by Ben Geyer, 1 year ago
IllegalArgumentException occurred calling getter of cat.cis.portal.supplier.CWSHelp.persistence.EntityPO.entityId
java.lang.IllegalArgumentException: object is not an instance of declaring class
at org.hibernate.tuple.AbstractTuplizer.getIdentifier(AbstractTuplizer.java:117)
at org.hibernate.persister.entity.BasicEntityPersister.getIdentifier(BasicEntityPersister.java:2947)
at org.hibernate.persister.entity.BasicEntityPersister.isTransient(BasicEntityPersister.java:2752)
at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:185)
at org.hibernate.engine.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:217)
at org.hibernate.type.EntityType.getIdentifier(EntityType.java:94)
at org.hibernate.type.ManyToOneType.nullSafeSet(ManyToOneType.java:50)
at org.hibernate.loader.Loader.bindPositionalParameters(Loader.java:1045)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1130)
at org.hibernate.loader.Loader.doQuery(Loader.java:415)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:212)
at org.hibernate.loader.Loader.doList(Loader.java:1532)
at org.hibernate.loader.Loader.list(Loader.java:1498)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1262)
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:302)
at cat.cis.portal.supplier.CWSHelp.factory.RequestFactory.getNewRequestsForApprover(RequestFactory.java:95)
at cat.cis.portal.supplier.CWSHelp.factory.RequestFactoryTest.testGetNewRequestsForApproverWithArray(RequestFactoryTest.java:77)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:132)
at junit.framework.TestResult$1.protect(TestResult.java:107)
at junit.framework.TestResult.runProtected(TestResult.java:135)
at junit.framework.TestResult.run(TestResult.java:112)
at junit.framework.TestCase.run(TestCase.java:119)
at junit.framework.TestSuite.runTest(TestSuite.java:209)

Users with the same issue

You are the first who have seen this exception.

Write tip

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