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