On Wed, Jul 03, 2002 at 01:11:58PM -0500, Dain Sundstrom wrote:
> I wouldn't accept the patch either.
It was never meant to be accepted as it is, but incorporated better into the jboss
code. But I thought it was better that the existing code that just prints
ex.getMessage(), which unfortunateli is often null. It has actually solved problems
for me, and if the fancy solution is not beeing backported, perhaps a dirty solution
should be applied to 3.0.1 RC?.
> If were were going to do this, we
> would need to perform the conversion immediately before the exception
> sent over the wire, and AbstractTxInterceptor is not that place. Here
> is the code from the proposed patch:
>
> ex = new ServerException(e.getMessage() + "class:" + e.getClass());
> e.printStackTrace()
>
> This code does not actually add the stack trace, and the second line is
> simply not allowed by our coding guidelines (you use log.error("some
> message", e)). If we were going to do this it would have to happen in
> org.jboss.invocation.jrmp.JRMPInvocation. The real problem is you must
> also preserve the wrapped exception objects, which would make this code
> very difficult as you don't know what you are wrapping.
>
> This exact message is caused by a line somewhere in the application or
> in the JBoss code which looks like this:
>
> System.out.println(e)
>
> This is why you are not getting a stacktrace. I know this because the
> message is coming out on the STDOUT category.
>
> -dain
>
> [EMAIL PROTECTED] wrote:
> >
>http://sourceforge.net/tracker/index.php?func=detail&aid=562036&group_id=22866&atid=376687
> >
> > On Wed, Jul 03, 2002 at 04:20:34PM +0200, Sacha Labourey wrote:
> >
> >>Which patch?
> >>
> >>
> >>>-----Message d'origine-----
> >>>De : [EMAIL PROTECTED]
> >>>[mailto:[EMAIL PROTECTED]]De la part de
> >>>[EMAIL PROTECTED]
> >>>Envoy� : mercredi, 3 juillet 2002 16:14
> >>>� : [EMAIL PROTECTED]
> >>>Objet : Re: [JBoss-user] java.rmi.ServerException: null
> >>>
> >>>
> >>>Not to me either. Therefore I made a patch, but Scott Stark
> >>>refused to apply it. He said that it was passible to get a better
> >>>stacktrace by changing log4j.xml, but would unfortunately not set
> >>>that as default :-(
> >>>
> >>>
> >>>On Wed, Jul 03, 2002 at 03:02:09PM +0200, Michael Delamere wrote:
> >>>
> >>>>thanks,
> >>>>
> >>>>unforunately the error message doesn�t tell me very much :-) !
> >>>>
> >>>>Regards,
> >>>>
> >>>>Michael
> >>>>
> >>>>
> >>>>----- Original Message -----
> >>>>From: <[EMAIL PROTECTED]>
> >>>>To: <[EMAIL PROTECTED]>
> >>>>Sent: Wednesday, July 03, 2002 2:21 PM
> >>>>Subject: Re: [JBoss-user] java.rmi.ServerException: null
> >>>>
> >>>>
> >>>>
> >>>>>It is a runtime exception (like nullpointer, indexoutofbounds etc)
> >>>>
> >>>>happening in your bean.
> >>>>
> >>>>>On Wed, Jul 03, 2002 at 01:48:13PM +0200, Michael Delamere wrote:
> >>>>>
> >>>>>>Hi,
> >>>>>>
> >>>>>>When accessing my entity bean via my stateless session bean
> >>>>>
> >>>I get the
> >>>
> >>>>>>following error:
> >>>>>>
> >>>>>>=============================================
> >>>>>>13:50:23,113 INFO [STDOUT] java.rmi.ServerException: null
> >>>>>>Embedded Exception
> >>>>>>null; nested exception is:
> >>>>>> javax.ejb.EJBException: null
> >>>>>>Embedded Exception
> >>>>>>null
> >>>>>>
> >>>>>>=============================================
> >>>>>>
> >>>>>>Is this a common error that others have experienced or will
> >>>>>
> >>>I have to
> >>>
> >>>>dig
> >>>>
> >>>>>>deeper?
> >>>>>>
> >>>>>>Thanks,
> >>>>>>
> >>>>>>Michael
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>-------------------------------------------------------
> >>>>>>This sf.net email is sponsored by:ThinkGeek
> >>>>>>No, I will not fix your computer.
> >>>>>>http://thinkgeek.com/sf
> >>>>>>_______________________________________________
> >>>>>>JBoss-user mailing list
> >>>>>>[EMAIL PROTECTED]
> >>>>>>https://lists.sourceforge.net/lists/listinfo/jboss-user
> >>>>>
> >>>>>--
> >>>>>MVH
> >>>>>Marius Kotsbak
> >>>>>Boost communications AS
> >>>>>
> >>>>>
> >>>>>-------------------------------------------------------
> >>>>>This sf.net email is sponsored by:ThinkGeek
> >>>>>No, I will not fix your computer.
> >>>>>http://thinkgeek.com/sf
> >>>>>_______________________________________________
> >>>>>JBoss-user mailing list
> >>>>>[EMAIL PROTECTED]
> >>>>>https://lists.sourceforge.net/lists/listinfo/jboss-user
> >>>>
> >>>>
> >>>>
> >>>>-------------------------------------------------------
> >>>>This sf.net email is sponsored by:ThinkGeek
> >>>>No, I will not fix your computer.
> >>>>http://thinkgeek.com/sf
> >>>>_______________________________________________
> >>>>JBoss-user mailing list
> >>>>[EMAIL PROTECTED]
> >>>>https://lists.sourceforge.net/lists/listinfo/jboss-user
> >>>
> >>>--
> >>>MVH
> >>>Marius Kotsbak
> >>>Boost communications AS
> >>>
> >>>
> >>>-------------------------------------------------------
> >>>This sf.net email is sponsored by:ThinkGeek
> >>>No, I will not fix your computer.
> >>>http://thinkgeek.com/sf
> >>>_______________________________________________
> >>>JBoss-user mailing list
> >>>[EMAIL PROTECTED]
> >>>https://lists.sourceforge.net/lists/listinfo/jboss-user
> >>>
> >>
> >>
> >>
> >>-------------------------------------------------------
> >>This sf.net email is sponsored by:ThinkGeek
> >>No, I will not fix your computer.
> >>http://thinkgeek.com/sf
> >>_______________________________________________
> >>JBoss-user mailing list
> >>[EMAIL PROTECTED]
> >>https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> No, I will not fix your computer.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
--
MVH
Marius Kotsbak
Boost communications AS
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user