La méthode getClientById ne répond pas
Bonsoir,
J'ai déployé une application d'entreprise pour tester mon web service sur glassfish v2 sous Netbeans, des méthodes comme public List<Client> getAllClients(); fonctionnent, mais des méthodes où on retourne un objet ça ne marche pas exemple avec getClientByNumeroCarteCredit (int numeroCarteCredit);
Voilà ce que contient la méthode :
Code:
1 2 3 4 5 6 7
| public Client getClientByNumeroCarteCredit (int numeroCarteCredit) {
try {
return (Client) em.find(Client.class, numeroCarteCredit);
} catch (Throwable th) {
throw new edtcException(th, 7);
}
} |
L'erreur est la suivante :
Code:
1 2 3
|
Service invocation threw an exception with message : null; Refer to the server log for more details
Détails de l'exception : java.lang.reflect.InvocationTargetException |
On peut m'aider si possible, je patienterais qu'une réponse soit là, en attendant je vais essayer de mon côté.
Merci. Cordialement.