Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Exceptionhandling (RemoteException)  RSS feed

 
lars rasmussen
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey
We are having som trouble with our exceptionhandling in j2ee.
From a session bean if a CreateException is caught, and afterwards is thrown as a homemade exception, this homemade exception is caught as a RemoteException in our businessDelegate. How can this be?
We have the same design other places in our code, and we are not having this problem here.
Any comments are welcome!!!
Regards Ralph & Lars
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One way, this could happen is if your user-defined exception extends RuntimeException.
Are you sure you are not throwing back any System Exceptions or Runtime Exceptions in the bean code, because all System exceptions are thrown as RemoteExceptions by the Container, to the remote client/business delegate?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!