You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by "J. B. Rainsberger" <jb...@rogers.com> on 2003/10/21 21:44:09 UTC

Server-side errors not making it back to the client?

Everyone:

I am testing a BMP entity bean. I am throwing an EJBException inside 
ejbLoad(), but no error is making it back to the client, so the test 
looks like it passes.

I am using a 1.6dev version from 9/7.

I have tried redeploying the EJBs with no change.

I am creating my test suite using new ServletTestSuite() rather than by 
inheriting from ServletTestCase.

Help!
-- 
J. B. Rainsberger,
Diaspar Software Services
http://www.diasparsoftware.com :: +1 416 791-8603
Let's write software that people understand



RE: Server-side errors not making it back to the client?

Posted by Vincent Massol <vm...@pivolis.com>.
Hi JB,

That's strange. All exceptions are normally sent to the client side
(I've also rechecked the code to see what could go wrong and I've not
seen a problem). Are you sure your ejbLoad method is being called? 

A very simple test for you to do is to write:

public class MyTest extends ServletTestCase
{
  public void testXXX()
  {
    throw new EJBException("whatever");
  }
}

And run this.

Thanks
-Vincent

> -----Original Message-----
> From: J. B. Rainsberger [mailto:jbrains@rogers.com]
> Sent: 21 October 2003 21:44
> To: cactus-user@jakarta.apache.org
> Subject: Server-side errors not making it back to the client?
> 
> Everyone:
> 
> I am testing a BMP entity bean. I am throwing an EJBException inside
> ejbLoad(), but no error is making it back to the client, so the test
> looks like it passes.
> 
> I am using a 1.6dev version from 9/7.
> 
> I have tried redeploying the EJBs with no change.
> 
> I am creating my test suite using new ServletTestSuite() rather than
by
> inheriting from ServletTestCase.
> 
> Help!
> --
> J. B. Rainsberger,
> Diaspar Software Services
> http://www.diasparsoftware.com :: +1 416 791-8603
> Let's write software that people understand
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org