Agetac/Server — Issue #4: [AgetacServer.java] Exception au lancement
Author: maxleiko
Created: 2012-03-09 12:55:10+00:00
State: open

Ce n'est plus possible de lancer le serveur sans manger une exception parce que Intervention n'est pas persistable..

=======================
Exception in thread "main" org.datanucleus.api.jdo.exceptions.ClassNotPersistenceCapableException: The class "org.agetac.model.impl.Intervention" is not persistable. This means that it either hasnt been enhanced, or that the enhanced version of the file is not in the CLASSPATH (or is hidden by an unenhanced version), or the Meta-Data/annotations for the class are not found.
at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:351)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:745)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:765)
at org.agetac.server.db.Interventions.addIntervention(Interventions.java:49)
at org.agetac.server.AgetacServer.main(AgetacServer.java:57)
NestedThrowablesStackTrace:
The class "org.agetac.model.impl.Intervention" is not persistable. This means that it either hasnt been enhanced, or that the enhanced version of the file is not in the CLASSPATH (or is hidden by an unenhanced version), or the Meta-Data/annotations for the class are not found.
org.datanucleus.exceptions.ClassNotPersistableException: The class "org.agetac.model.impl.Intervention" is not persistable. This means that it either hasnt been enhanced, or that the enhanced version of the file is not in the CLASSPATH (or is hidden by an unenhanced version), or the Meta-Data/annotations for the class are not found.
at org.datanucleus.ObjectManagerImpl.assertClassPersistable(ObjectManagerImpl.java:5477)
at org.datanucleus.ObjectManagerImpl.persistObjectInternal(ObjectManagerImpl.java:1704)
at org.datanucleus.ObjectManagerImpl.persistObjectWork(ObjectManagerImpl.java:1647)
at org.datanucleus.ObjectManagerImpl.persistObject(ObjectManagerImpl.java:1504)
at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:740)
at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:765)
at org.agetac.server.db.Interventions.addIntervention(Interventions.java:49)
at org.agetac.server.AgetacServer.main(AgetacServer.java:57)
=======================

Est-ce que quelqu'un peut soit résoudre le problème, soit m'expliquer comment faire vite-fais ?
J'imagine que c'est Georgios qui a fait ça étant donné que ça touche à la persistance des données ? hum ?