org.hibernate.TypeMismatchException: Provided id of the wrong type. Expected: class java.lang.String, got class org.openxava.qamanager.model.Department

openxava | janesh | 9 years ago
  1. 0

    Error when Test with referances executed

    openxava | 9 years ago | janesh
    org.hibernate.TypeMismatchException: Provided id of the wrong type. Expected: class java.lang.String, got class org.openxava.qamanager.model.Department
  2. 0

    Provided id of the wrong type for class - 拨云剑

    boyunjian.com | 1 year ago
    org.hibernate.TypeMismatchException: Provided id of the wrong type for class com.uitest.domain.Product. Expected: class java.lang.Long, got class java.lang.String
  3. 0

    Provided id of the wrong type for class

    verydemo.com | 1 year ago
    org.hibernate.TypeMismatchException: Provided id of the wrong type for class com.uitest.domain.Product. Expected: class java.lang.Long, got class java.lang.String
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    MySQL TypeMismatchException java.lang.Integer, got class java.lang.Long - SmartClient Forums

    smartclient.com | 1 year ago
    org.hibernate.TypeMismatchException: 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
  6. 0

    HIbernate provided id of the wrong type, expected PK got Entity

    Stack Overflow | 9 months ago | user1810292
    java.lang.IllegalArgumentException: Provided id of the wrong type for class hib.StrategyRevision. Expected: class hib.StrategyRevisionPK, got class hib.StrategyRevision

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. Hibernate
      SessionImpl.get
      1. org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:86)
      2. org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878)
      3. org.hibernate.impl.SessionImpl.get(SessionImpl.java:815)
      4. org.hibernate.impl.SessionImpl.get(SessionImpl.java:808)
      4 frames
    3. org.openxava.qamanager
      DesignationsTest.testCreateReadUpdateDelete
      1. org.openxava.qamanager.test.DesignationsTest.getDepartmentName(DesignationsTest.java:88)
      2. org.openxava.qamanager.test.DesignationsTest.testCreateReadUpdateDelete(DesignationsTest.java:55)
      2 frames
    4. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3 frames
    5. com.intellij.rt
      JUnitStarter.main
      1. com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:31)
      1 frame
    6. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3 frames
    7. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
      1 frame