Bonjour,
Voilà mon problème. J'ai une classe A qui est une entité (donc à persister) et une classe B qui ne l'est pas. A utilise B. Le problème c'est que lorsque que je récupère coté client une instance de A, j'ai un problème du style :
Exception in thread "main" javax.ejb.EJBException: Error while sending a request
at org.ow2.easybeans.proxy.client.ClientRPCInvocationHandler.invoke(ClientRPCInvocationHandler.java:147)
at $Proxy0.findAllPersonne(Unknown Source)
at clients.ClientPersonne.main(ClientPersonne.java:78)
Caused by: java.lang.RuntimeException: Error while handling answer on the remote side
at org.ow2.easybeans.rpc.rmi.client.RMIClientRPC.sendEJBRequest(RMIClientRPC.java:104)
at org.ow2.easybeans.proxy.client.ClientRPCInvocationHandler.invoke(ClientRPCInvocationHandler.java:144)
... 2 more
Caused by: java.rmi.UnmarshalException: IOException unmarshalling returnjava.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: business.Test
at org.ow2.carol.rmi.jrmp.server.JUnicastRef.performRemoteCall(JUnicastRef.java:212)
at org.ow2.carol.rmi.jrmp.server.JUnicastRef.invoke(JUnicastRef.java:161)
at org.ow2.easybeans.rpc.rmi.server.RMIServerRPCImpl_Stub.getEJBResponse(RMIServerRPCImpl_Stub.java:47)
at org.ow2.easybeans.rpc.rmi.client.RMIClientRPC.sendEJBRequest(RMIClientRPC.java:102)
... 3 more
Que je n'ai pas quand je supprime B de A.
Partager