is the class which will be returned marked as serializable?
If not, this could cause the exception.
It seems like my initial assessment of the problem was not correct.
I have several methods in my session bean, but only one can be invoked successfully. The others throw an exception on invokation. It seems that void or return is not the part of the problem. I'll further evaluate the problem and will post for assistance.
Incase anyone stumbles across this topic during a search. I had this problem and discovered it was become my remote methods were throwing exceptions that are no instances of (or subclasses of) RemoteException.
Hey I also got the same problem . Its unusual sometimes it worked n othertimes it didnt. So I made the methods in my bean interface to throw RemoteException. And its working fine now. Data is persisting in the database(ORACLE).... M working with JBoss4.0.3SP1 , Jboss eclipse IDE 1.6 & Oracle 9i
i get this error too but your solution (throwing remote-exceptions) doesn't work for me.
the error ist thrown, when i try to get the EJBHandle of an stateful sessionbean inside a stateless sessionbean-method (see also this topic http://www.jboss.com/index.html?module=bb&op=viewtopic&t=98992). if i call the same method in a servlet it works fine.
can anyone give me a hint?