[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[aspectj-users] around advice causes JVM crash
|
Hello All,
I have a very simple advice (applying to WebSphere 5.1.1.x code), I had
narrowed done to the following:
public aspect SessionAssuranceAspect {
HttpSession around (boolean create) : execution(HttpSession
SRTServletRequest.getSession(boolean)) && args(create) {
System.out.println("Around getSession()");
HttpSession session = (HttpSession) proceed(create);
return session;
}
}
Crash happens every time the advice is executed. When the system crash, I
got a Java core dump. And the system.out in the code did not show in log
file.
Of course, getSession is a complex call, that uses ThreadLocal variables
and the request itself is a thread. That's all I can differences I can
think of from simple cases. before and after advices works fine on the same
pointcut.
Any one knows about this problem?
Thanks,
Bo
----------------------------------------------------------
Dr. Bo Yi
WAS L3 Support
IBM Toronto Lab
A2-713/Q2Z/8200/MKM
8200 Warden Ave. Markham ONT. L6G 1C7
Phone: 905-413-4819
Tie Line: 969-4819
E-Mail: boyi@xxxxxxxxxx