User Tools

Site Tools


eclipselink_bug

java.lang.IllegalArgumentException: The type [null] is not the expected [EntityType] for the key class [class XXX]

Si vous avez l'erreur java.lang.IllegalArgumentException: The type [null] is not the expected [EntityType] for the key class [class XXX] lorsque vous lancez les tests unitaires,

Solution: dans le persistence.xml (partie test): supprimer

<exclude-unlisted-classes>false</exclude-unlisted-classes>

et ajouter chaque classe

<class>eu.XXX.YYY</class>

et voila

Discussion

Enter your comment. Wiki syntax is allowed:
QUCMK
 
eclipselink_bug.txt · Last modified: 2014/07/12 00:40 by frank