That interceptor or anything like it would be a great idea. Much as I love
to wrap my code with
try {} catch printStackTrace,
it would be nice if the container provided some way to see those little
nasties all us application developers put in from time to time.
Cheers
-----Original Message-----
From: Aaron Mulder [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 05, 2000 1:32 PM
To: jBoss
Subject: Re: [jBoss-User] Enity beans works in PR3 but fails in PR4!
Generally the "null" on the console output indicates a
NullPointerException of some sort - and this is supported by the first
line in your stack trace below.. There may be a NullPointerException in
your bean. Can you put try/catches in the ejbPostCreate and whatever else
might get called after that and see? If it's not in your bean, it will of
course be more painful to track down.
Developers: Perhaps we could create an "ExceptionInterceptor" that
would print a stack trace of any exception that occurs during a call? For
use in debugging only, of course...
Aaron
On Tue, 5 Sep 2000, Andy Dwelly wrote:
> We upgraded a little earlier today, and now a set of entity beans that
> behave perfectly well in PR3 seem to be causing null pointer exceptions in
> PR4.
>
> I'm getting:
>
> java.lang.NullPointerException
> at
>
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
> all.java:245)
> at
> sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
> at
>
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unkno
> wn Source)
> at
> org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:221)
> at $Proxy0.create(Unknown Source)
> at com.stamplets.test.ISPClient.<init>(ISPClient.java:63)
> at com.stamplets.test.ISPClient.main(ISPClient.java:142)
>
> ...on my first attempt to create an EntityBean called ISP, and it seems to
> be happening after my ejbPostCreate(...) method is called. Revealingly,
the
> main console output halts with the lines:
>
> [JAWS] Rows affected = 1
> [ISP] post create called (this is a System.out.println in my
> ejbPostCreateMethod)
> [ISP]null
>
> Does anyone have any idea what could be going on ?
>
> Andy Dwelly
>
>
>
> Cedilla Software Services Ltd. - Java for the Internet and Finance
> Industries.
> Web: www.cedillasoft.com Email: [EMAIL PROTECTED] Tel: +44 1481-242785
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]