bonsoir
je veux réaliser un service web qui permet d'ajouter des rendez vous à un user j'ai créer cette méthode d'ajout
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
 
 @WebMethod
    public User insert(@WebParam(name="nom") String nom,@WebParam(name="prenom")String prenom,@WebParam(name="rv") Rv rv) 
    { 
        try  {
 
    User user= new User();
    user.setNom(nom);
    user.setPrenom(prenom);
    user.setIdrv(rv);
    em.persist(user);
 
     return user;
    } catch (Throwable th) {
      throw new RecrutementException(th, 5);
    }
lorsque je teste le web service , il m'affiche cette erreur:
Service invocation threw an exception with message : null; Refer to the server log for more details
Exceptions details : java.lang.reflect.InvocationTargetException
Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601)
aidez moi svp