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 | 2 months ago
  1. 0

    Hibernate Type Mismatch in Grails

    Stack Overflow | 2 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
  2. 0

    Hibernate throwing org.hibernate.TypeMismatchException - Java - Codecall

    codecall.net | 12 months ago
    org.hibernate.TypeMismatchException: Provided id of the wrong type for class co.smartshuffle.DBOM.entities.User. Expected: class java.lang.Long, got class java.lang.Integer
  3. 0

    How to do association fetching with restrictions in hibernate 4?

    Stack Overflow | 2 years ago | Volodymyr Levytskyi
    org.hibernate.TypeMismatchException: Provided id of the wrong type for class com.home.hostme.entity.Image. Expected: class java.lang.Long, got class java.lang.Integer
  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 | 12 months 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

    GitHub comment 15#9972054

    GitHub | 4 years ago | maxandersen
    javax.ejb.EJBException: java.lang.IllegalArgumentException: Provided id of the wrong type for class com.example.sakila.model.Store. Expected: class java.lang.Byte, got class java.lang.Long

    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 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