Hi Robert,
because i have the same problem of getting an UndeclaredThrowable-
Exception can you please tell me, if you already have any solution
for it. I posted a question to this list two weeks ago, but nobody
answered to it.
Thank you,
Ralf
Robert Schulz wrote:
>
> I have problems catching exceptions thrown from a create method with jBoss
> 2.0 Final
> and server and client on different VMs.
>
> I tried two approaches
> i) throwing a subclass of java.lang.Exception
> ii) throwing a subclass of javax.ejb.CreateException
> I declared the exceptions in home and in the corresponding ejbCreate,
> compiles fine,
> the verifier is happy and everything seems fine server side. The problem is
> catching
> it client side (different VM). In case
> i) a java.reflect.UndeclaredThrowable exception is thrown - the contained
> exception
> has a class name which is my Exception class, but I cannot reference it
> client side
> (the getClass().getName() is correct, but instanceof returns false, so I
> can't
> cast
> ii) the exception is thrown correctly client side, but again I can't seem to
> catch
> it - it looks like a class versioning problem (both classes are of the
> same type
> according to .getClass().getString() but instanceof returns false and
> consequently
> I can't catch the exception ... I am sure there is only one version of
> the class
> around.
> In both cases I put the exception class in the bean jar and in the classpath
> of the
> client ... something goes wrong when the exception gets shipped to the
> client ...
>
> Any ideas?
>
> Tx,
> R.
> --
> Robert Schulz
> [EMAIL PROTECTED]
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]