org.hibernate.InstantiationException

Cannot instantiate abstract class or interface: org.hibernate.test.bidi.Bid

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 web20

  • via Unknown by Christian Bauer,
  • via Unknown by Christian Bauer,
  • via Unknown by Christian Bauer,
  • Stack trace

    • org.hibernate.InstantiationException: Cannot instantiate abstract class or interface: org.hibernate.test.bidi.Bid at org.hibernate.tuple.PojoInstantiator.instantiate(PojoInstantiator.java:79) at org.hibernate.tuple.AbstractComponentTuplizer.instantiate(AbstractComponentTuplizer.java:89) at org.hibernate.type.ComponentType.instantiate(ComponentType.java:428) at org.hibernate.type.ComponentType.deepCopy(ComponentType.java:351) at org.hibernate.type.TypeFactory.deepCopy(TypeFactory.java:323) at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:255) at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:167) at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:101) at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:131) at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:87) at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:38) at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:590) at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:568) at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:572) at org.hibernate.test.bidi.AuctionTest.testLazy(AuctionTest.java:40)

    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

    slashslash
    Once,
    tvrmsmithtvrmsmith
    Once,
    oddodd
    2 times, last one
    dafmandafman
    2 times, last one
    thiago.santosthiago.santos
    Once,
    1 more bugmates