Bonjour,

J' ai réalisé une enterprise-application dans netbeans, lorsque j' utilise un client pour executer à distance
des méthodes de mes stateless bean.

Curieusement j' arrive à en faire une, mais dès que je veux en faire une autre j' ai l' erreur suivante:
javax.ejb.EJBException: java.rmi.MarshalException: CORBA MARSHAL 1330446393 Maybe; nested exception is:
org.omg.CORBA.MARSHAL: Avertissement: 00810057: Could not load class com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException vmcid: OMG minor code: 57 completed: Maybe
voici mon code d' exécution:

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
16
17
18
19
 
try
        {   
          Context ict = new InitialContext(); 
          Object obj = ict.lookup("java:global/Banqueinter/Banqueinter-ejb/ActionsEmploye!org.cnam.dev.ActionsEmployeRemote");
         //Object obj = ict.lookup("java:global/EnterpriseApplication1/EnterpriseApplication1-ejb/org.cnam.dev.ActionsEmployeRemote");
 
          ActionsEmployeRemote Actionsot = ((ActionsEmployeRemote) PortableRemoteObject.narrow(obj,ActionsEmployeRemote.class));
         // Actionsd.affiche();
 
         // Adresse adresse = new Adresse(14,"ruesiger","appartementb",94400);
          InfoClient infoclient = new InfoClient();
          infoclient.setNumeroclient(1234);
          infoclient.setNom("Antoine");
          infoclient.setPrenom("keblard");
          System.out.println(infoclient.toString());
          Actionsot.creerClient(infoclient);               //premiere methode réussie
          int num = 1;
          Actionsot.creerCompte(infoclient, num);    //deuxieme méthode qui cree l' exception
ça fait un moment que je cherche pourriez vous m' éclairer un peu

Merci d' avance