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 Srikanth Rajkumar, 1 year ago
org.hibernate.TypeMismatchException: Provided id of the wrong type for class com.hibernate.examples.entities.Vya6cpp. Expected: class com.hibernate.examples.entities.Vya6cppPK, got class com.hibernate.examples.entities.Mamam1PK
via Hibernate JIRA by Srikanth Rajkumar, 2 years ago
org.hibernate.TypeMismatchException: Provided id of the wrong type for class com.hibernate.examples.entities.Vya6cpp. Expected: class com.hibernate.examples.entities.Vya6cppPK, got class com.hibernate.examples.entities.Mamam1PK
org.hibernate.TypeMismatchException: Provided id of the wrong type for class com.hibernate.examples.entities.Vya6cpp. Expected: class com.hibernate.examples.entities.Vya6cppPK, got class com.hibernate.examples.entities.Mamam1PK	at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:135)	at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:1080)	at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:1028)	at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:623)	at org.hibernate.type.EntityType.resolve(EntityType.java:431)	at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:140)	at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:898)	at org.hibernate.loader.Loader.doQuery(Loader.java:773)	at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:270)	at org.hibernate.loader.Loader.doList(Loader.java:2449)	at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2192)	at org.hibernate.loader.Loader.list(Loader.java:2187)	at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:452)	at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363)	at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)	at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1258)	at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)	at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:241)	at com.hibernate.examples.main.Main.method1(Main.java:44)	at com.hibernate.examples.testcase.MappingTestCase.testMain(MappingTestCase.java:26)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:597)	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)	at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)	at org.junit.runners.ParentRunner.run(ParentRunner.java:220)	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)