Salut,
Voici mon problème, j'ai une classe qui est une stateful Session Bean, à l'intérieur je fais une injection avec @In, et j'ai une méthode annotée de PostConstruct dans laquelle je fais appel à ma variable injecté et là j'ai un NullPointerException
Voici le code :
la classe identification est une classe "normale" annoté de @Name("identification")
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 @Stateful @Scope(ScopeType.SESSION) @Name("ficheModificationDocument") public class FicheModificationDocument extends GestionFormulaireDocument implements InterfaceFicheModificationDocument{ @In(create=true, value="identification") private Identification identification; private String login; @PostConstruct public void init(){ String login = identification.getLogin(); }
Je ne sait pas d'où peut venir ce problème
Si quelqu'un à une idée, je suis preneur
Merci
Partager