soleil.de réfléchir.annotation.TypeNotPresentExceptionProxy exception après l'ajout de EntityListeners

Lorsqu'un EntityListeners a été ajouté à l'application à l'aide de la @EntityListeners(value = {MyEventListener.class}), le suivant crash. Il ressemble un problème avec la réflexion. L'application dispose d'un d'annotations personnalisées définies pour la même entité. Notez que ce problème ne se produit après l'ajout de la EntityListeners. Si les annotations personnalisées est commenté l'application continuera à se bloquer. La chose étrange est que le même code fonctionne correctement lorsqu'il est exécuté par le Netbeans débogueur. Le getAnnotation() appel va lire tous les annotations définies pour l'entité. Le moment où j'ai lancer l'application en dehors du débogueur je obtenir le crash. Je n'ai pas été en mesure de trouver pourquoi le chargeur de classe ne peut pas trouver MyEventListener.class.

at sun.reflect.annotation.AnnotationParser.parseClassArray(Unknown Source)
at sun.reflect.annotation.AnnotationParser.parseArray(Unknown Source)
at sun.reflect.annotation.AnnotationParser.parseMemberValue(Unknown Source)
at sun.reflect.annotation.AnnotationParser.parseAnnotation(Unknown Source)
at sun.reflect.annotation.AnnotationParser.parseAnnotations2(Unknown Source)
at sun.reflect.annotation.AnnotationParser.parseAnnotations(Unknown Source)
at java.lang.Class.initAnnotationsIfNecessary(Unknown Source)
at java.lang.Class.getAnnotation(Unknown Source)
at com.feedoffice.FOEDataCache.initializeInternalListeners(FOEDataCache.java:34)
at com.DataCache.<init>(DataCache.java:20)
at com.feedoffice.FOEDataCache.<init>(FOEDataCache.java:16)
at com.feedoffice.ClientDataCache.<init>(ClientDataCache.java:163)
at com.ClientDataCache.<clinit>(ClientDataCache.java:171)
at com.feedoffice.forms.FOENumericTextFieldFactory.<init>(FOENumericTextFieldFactory.java:14)
at com.feedoffice.forms.FOENumericTextFieldFactory.getInstance(FOENumericTextFieldFactory.java:24)
at com.feedoffice.FOEApplet.displayMenu(FOEApplet.java:282)
at com.feedoffice.FOEApplet.loginWindowClosed(FOEApplet.java:215)
at com.feedoffice.forms.AppLogin.submitButtonClicked(AppLogin.java:49)
at com.feedoffice.forms.AppLogin.performSubmitAction(AppLogin.java:106)

Quelqu'un a vu cela et sait comment le résoudre?

InformationsquelleAutor Guest | 2012-09-06