org.hibernate.InstantiationException

No default constructor for entity: com.company.model.arts.CustomerAffiliationId

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

  • Stack trace

    • org.hibernate.InstantiationException: No default constructor for entity: com.company.model.arts.CustomerAffiliationId at org.hibernate.tuple.PojoInstantiator.instantiate(PojoInstantiator.java:107) at org.hibernate.tuple.component.AbstractComponentTuplizer.instantiate(AbstractComponentTuplizer.java:102) at org.hibernate.type.ComponentType.instantiate(ComponentType.java:510) at org.hibernate.type.ComponentType.instantiate(ComponentType.java:516) at org.hibernate.type.ComponentType.assemble(ComponentType.java:565) at org.hibernate.type.ManyToOneType.assembleId(ManyToOneType.java:257) at org.hibernate.type.ManyToOneType.assemble(ManyToOneType.java:241) at org.hibernate.collection.PersistentSet.initializeFromCache(PersistentSet.java:147) at org.hibernate.cache.entry.CollectionCacheEntry.assemble(CollectionCacheEntry.java:58) at org.hibernate.event.def.DefaultInitializeCollectionEventListener.initializeCollectionFromCache(DefaultInitializeCollectionEventListener.java:159) at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:71) at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1853) at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:369) at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:111) at org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:134) at org.hibernate.collection.PersistentSet.isEmpty(PersistentSet.java:169) at com.company.service.impl.CustomerManagerImpl.convertToCustDTO(CustomerManagerImpl.java:819)

    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