org.hibernate.WrongClassException

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

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web6

  • Stack trace

    • org.hibernate.WrongClassException: Object with id: 10000 was not of the specified subclass: A (Discriminator: D) at 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 ]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    j.kienzlej.kienzle
    Once,