Marc,

I don't think this fixes it completely. When the call is actually made
to the afterCompletion method there needs to be some conversion between
the state which is an integer and the boolean flag passed to the method.
When the invoke call is made I think a IllegalArgumentException will be
thrown (Line 275 in StatefulSessionInstanceInterceptor.java). The
invoke() call on line 289 needs to be changed to pass the correct type.

Richard Backhouse
Oak Grove Software

marc fleury wrote:
> 
> done sorry about the delay, it is in CVS and we will update the binary as
> well (no change in version, just a small refresh :)
> 
> btw for those who wonder that affected the "synchronization" on stateful
> beans
> 
> thanks Richard
> 
> marc
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Richard Backhouse
> > Sent: Thursday, October 05, 2000 5:53 PM
> > To: jBoss Developer
> > Subject: Re: [jBoss-Dev] Bug in
> > StatefulSessionInstanceInstanceInterceptor
> >
> >
> > Marc
> >
> > Do you want me to open a bug report for this in bugzilla ?
> >
> > Also
> > FYI
> >
> > The Websphere integration module is complete and working. I now just
> > have to do some documentation. The fix pack for Websphere that will
> > support this (along with Servlet 2.2/JSP 1.1) will come out (hopefully
> > !!) in a couple of weeks.
> >
> > Richard Backhouse
> > Oak Grove Software
> >
> > marc fleury wrote:
> > >
> > > thank you very much richard, I will fix this asap
> > >
> > > marc
> > >
> > > > -----Original Message-----
> > > > From: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Richard Backhouse
> > > > Sent: Wednesday, October 04, 2000 4:29 PM
> > > > To: jBoss Developer
> > > > Subject: [jBoss-Dev] Bug in StatefulSessionInstanceInstanceInterceptor
> > > >
> > > >
> > > > I have been running into an exception when running my app
> > that uses the
> > > > SessionSynchronization Interface in a Stateful Session Bean.
> > Looking at
> > > > the code it seems that the signature is wrong for when the
> > code tries to
> > > > reflect the afterCompletion method in the bean. It tries to look for a
> > > > method taking an Integer parameter when it should be looking for a
> > > > boolean. The line is 251 in StatefulSessionInstanceInterceptor.java :
> > > >
> > > >       afterCompletion = sync.getMethod("afterCompletion", new Class[]
> > > > {Integer.TYPE});
> > > > 
> > > > should be
> > > >
> > > >       afterCompletion = sync.getMethod("afterCompletion", new Class[]
> > > > {boolean.class});
> > > >
> > > > There needs to be some converion of the state to either a
> > true or false
> > > > for this to be fixed correctly.
> > > >
> > > > Richard Backhouse
> > > > Oak Grove Software
> > > >
> > > > 
> > > >
> > > >
> >
> >

Reply via email to