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;

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Hibernate JIRA by Donnchadh O Donnabhain, 1 year ago
Provided id of the wrong type for class domainmodel.core.accounts.Account. Expected: class domainmodel.core.accounts.AccountId, got class [Ljava.lang.Object;
via Hibernate JIRA by Donnchadh O Donnabhain, 1 year ago
Provided id of the wrong type for class domainmodel.core.accounts.Account. Expected: class domainmodel.core.accounts.AccountId, got class [Ljava.lang.Object;
via Stack Overflow by Bhanu Hugh Noah
, 9 months ago
Provided id of the wrong type for class com.abccompany.ExtendedMovieVO. Expected: class java.lang.Integer, got class java.lang.String
via Stack Overflow by Bhanu Hugh Noah
, 9 months ago
Provided id of the wrong type for class com.abcCompany.AddressVO. Expected: class java.lang.Integer, got class java.lang.String
via Stack Overflow by earnaz
, 2 years ago
Provided id of the wrong type for class es.model.entities.Poa. Expected: class es.model.entities.PoaPK, got class es.model.entities.AutPK
via Stack Overflow by We are Borg
, 2 years ago
Provided id of the wrong type for class com.WirTauschen.model.User. Expected: class java.lang.Long, got class java.lang.String
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 core.accounts.AccountRepository.findByCode(AccountRepository.java:217)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.