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 openxava by janesh
, 1 year ago
Provided id of the wrong type. Expected: class java.lang.String, got class org.openxava.qamanager.model.Department
via Coderanch by Shaan Shar, 1 year ago
Provided id of the wrong type. Expected: class java.lang.Integer, got class java.lang.String
via boyunjian.com by Unknown author, 2 years ago
Provided id of the wrong type for class com.uitest.domain.Product. Expected: class java.lang.Long, got class java.lang.String
via verydemo.com by Unknown author, 2 years ago
Provided id of the wrong type for class com.uitest.domain.Product. Expected: class java.lang.Long, got class java.lang.String
via smartclient.com by Unknown author, 2 years ago
Provided id of the wrong type for class com.amergy.cmt.client.server.customds.SimpleUser. Expected: class java.lang.Integer, got class java.lang.Long
via genuitec.com by Unknown author, 1 year ago
Provided id of the wrong type for class delidete.domain.Datigeneralipareretecnico. Expected: class delidete.domain.DatigeneralipareretecnicoPK, got class delidete.domain.DatigeneralivistocontabilePK
org.hibernate.TypeMismatchException: Provided id of the wrong type. Expected: class java.lang.String, got class org.openxava.qamanager.model.Department	at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:86)	at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878)	at org.hibernate.impl.SessionImpl.get(SessionImpl.java:815)	at org.hibernate.impl.SessionImpl.get(SessionImpl.java:808)	at org.openxava.qamanager.test.DesignationsTest.getDepartmentName(DesignationsTest.java:88)	at org.openxava.qamanager.test.DesignationsTest.testCreateReadUpdateDelete(DesignationsTest.java:55)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:31)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)