Project

General

Profile

CdmLibrary Caveats

Problems that were encountered during cdm library development.

Javassist is unable to initialize class

Exception:

org.hibernate.HibernateException: Javassist Enhancement failed: eu.etaxonomy.cdm.model.[.*]

Reason:

We ran into this problem with a private constructor in the proxied class. Javassist was unable to call that constructor.

Solution

As a workaround we declared the constructor protected

Add picture from clipboard (Maximum size: 40 MB)