I have a set of tests that check the CRUD operation of my application and I have found a problem when ejbStore is called where the real Exception is not being wrapped and sent back to the client.

 

When the test do an instert (ejbCreate) with a Duplicate Name the exception is thrown on the server and is sent back to the client as a RemoteException that contains a TransactionRolledBackException that then contains my exception as expected. In the update test (ejbStore) is called and the DupliacteNameException is thrown but all the client gets is a TransactionRolledBackException with no cause or detail.

 

This is a EJB2.1 app that uses BMP

 

Pete.

 


Advanced Computer Software Group plc

Registered in England at Munro House, Portsmouth Road, Cobham, Surrey, KT11 1TF. Registration number 5965280

Please note that Advanced Computer Software Group plc may monitor email traffic data and also the content of email for the purposes of security and staff training.

This message (and any associated files) is intended only for the use of the stated recipient and may contain information that is confidential, subject to copyright or constitutes a trade secret. If you are not the intended recipient you are hereby notified that any dissemination, copying or distribution of this message, or files associated with this message, is strictly prohibited. If you have received this message in error or are not the intended recipient please notify us immediately by replying to the message or calling 08451 60 61 62 and deleting it from your computer. Any views or opinions presented are solely those of the author and do not necessarily represent those of the company.

We advise that in keeping with good computing practice the recipient of this email should ensure that it is virus free. We do not accept responsibility for any virus that may be transferred by way of this email.

Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or any consequences thereof.
This email has been scanned for all viruses by the MessageLabs SkyScan service.

Please consider the environment before printing this email