org.hibernate.WrongClassException: Object with id: 10000 was not of the specified subclass: A (Discriminator: D)

Hibernate JIRA | Martin Schulz | 1 decade ago
  1. 0

    Message: Object with id: xxx was not of the specified subclass: rundeck.BaseReport (Discriminator: ExecReport)

    GitHub | 4 years ago | nca71
    org.hibernate.WrongClassException: Object with id: 146 was not of the specified subclass: rundeck.BaseReport (Discriminator: ExecReport)
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Discriminator , WrongClassException JPA with Hibernate backend

    Stack Overflow | 6 years ago | Satish Kumar
    org.hibernate.WrongClassException: Object with id: 261 was not of the specified subclass: com.lmig.lit.lpew.model.criteria.SearchCriteria (Discriminator: DATE )
  4. 0

    Problema Ejercicio de ejemplo libro borrador2

    openxava | 7 years ago | mahc83
    org.hibernate.WrongClassException: Object with id: 1 was not of the specified subclass: org.openxava.invoicing.model.CommercialDocument (Discriminator: 0)

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

      Object with id: 10000 was not of the specified subclass: A (Discriminator: D)

      at org.hibernate.loader.Loader.getInstanceClass()
    2. Hibernate
      Loader.getInstanceClass
      1. org.hibernate.loader.Loader.getInstanceClass(Loader.java:1445)[ the error itself is also quite misleading, as the row is exactly of / for the specified class A. But there simply was no subclass found ]
      1 frame