org.hibernate.TypeMismatchException: Provided id of the wrong type for class com.myCompany.ourPackage.Program. Expected: class java.lang.Integer, got class java.lang.Long

Stack Overflow | beechovsky | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Hibernate Type Mismatch in Grails

    Stack Overflow | 7 months ago | beechovsky
    org.hibernate.TypeMismatchException: Provided id of the wrong type for class com.myCompany.ourPackage.Program. Expected: class java.lang.Integer, got class java.lang.Long

    Root Cause Analysis

    1. org.hibernate.TypeMismatchException

      Provided id of the wrong type for class com.myCompany.ourPackage.Program. Expected: class java.lang.Integer, got class java.lang.Long

      at com.myCompany.PendingReviewService$_getAllPending_closure4$$EPyEG2zw.doCall()
    2. com.myCompany
      PendingReviewController.byReviewer
      1. com.myCompany.PendingReviewService$_getAllPending_closure4$$EPyEG2zw.doCall(PendingReviewService.groovy:150)
      2. com.myCompany.PendingReviewService$$EPyEG2zw.getAllPending(PendingReviewService.groovy:121)
      3. com.myCompany.PendingReviewController.byReviewer(PendingReviewController.groovy:92)
      3 frames
    3. grails.plugin.cache
      AbstractFilter.doFilter
      1. grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:198)
      2. grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
      2 frames
    4. net.bull.javamelody
      MonitoringFilter.doFilter
      1. net.bull.javamelody.JspWrapper.invoke(JspWrapper.java:150)
      2. net.bull.javamelody.JdbcWrapper$DelegatingInvocationHandler.invoke(JdbcWrapper.java:285)
      3. net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:198)
      4. net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:176)
      4 frames
    5. grails.plugin.springsecurity
      SecurityRequestHolderFilter.doFilter
      1. grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53)
      2. grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:62)
      3. grails.plugin.springsecurity.web.SecurityRequestHolderFilter.doFilter(SecurityRequestHolderFilter.java:59)
      3 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames