org.hibernate.PropertyAccessException

IllegalArgumentException occurred calling getter of cat.cis.portal.supplier.CWSHelp.persistence.EntityPO.entityId

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web293

  • 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
  • via Hibernate JIRA by Frank Ellison, 1 year ago
    IllegalArgumentException occurred calling getter of org.hibernate.bugs.Item.header
  • Stack trace

    • org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of cat.cis.portal.supplier.CWSHelp.persistence.EntityPO.entityId at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:170) 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) at junit.framework.TestSuite.run(TestSuite.java:205) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:399) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:288) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:170) at junit.framework.TestSuite.run(TestSuite.java:205) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:399) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:288) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:170) at org.hibernate.loader.Loader.list(Loader.java:1498) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:170) Caused by: 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.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:111) 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 java.lang.reflect.Method.invoke(Native Method) 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) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:288)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.