org.hibernate.TypeMismatchException

Provided id of the wrong type for class domainmodel.core.accounts.Account. Expected: class domainmodel.core.accounts.AccountId, got class [Ljava.lang.Object;

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 web18

  • via Unknown by Donnchadh O Donnabhain,
  • via Unknown by Donnchadh O Donnabhain,
  • Stack trace

    • org.hibernate.TypeMismatchException: Provided id of the wrong type for class domainmodel.core.accounts.Account. Expected: class domainmodel.core.accounts.AccountId, got class [Ljava.lang.Object; at org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:134) at org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1070) at org.hibernate.internal.SessionImpl.access$2000(SessionImpl.java:176) at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.load(SessionImpl.java:2551) at org.hibernate.internal.SessionImpl$NaturalIdLoadAccessImpl.load(SessionImpl.java:2727) at core.accounts.AccountRepository.findByCode(AccountRepository.java:217)

    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

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,