[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: NPE on redeploy (inside aspect library code)

2004-11-08 Thread Squeak
Just wanted to respond back to this thread what the problem is and potential resolutions, so it is useful to other people. This problem with redeployment stems from the fact the the AspectManger inside of the AOP framework in certain cases can be loaded inside a different ClassLoader than the

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: NPE on redeploy (inside aspect library code)

2004-11-05 Thread Squeak
I will take a look at today. I do want to give you an update on what I have found. It is definetly a classloading issue. If in my scoped WAR File, I incldue the jboss-aop*.jar's, the issue does not happen. I can redeploy all day long. THat makes sense, because at that point I am using my

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: NPE on redeploy (inside aspect library code)

2004-11-05 Thread Squeak
I take that backincluding the aop jar files does not solve the problem. When incuding the jar files, the intercepted code is, for all purposes ignored. It looks like when using your own scoped version of those jar files, either the aop$classAdvisor$aop or the _instanceAdvisor returns that

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: NPE on redeploy (inside aspect library code)

2004-11-04 Thread Bill Burke
It does look like it is aop$classAdvisor$aop. Static initialization should always happen, not sure why it isn't in this case. would it be possible to put together a small test case we can reproduce the problem with? Apologies, Bill View the original post :

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: NPE on redeploy (inside aspect library code)

2004-11-04 Thread Bill Burke
Another question: Are you using the precompiler? Or load time? or both? Bill View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3853950#3853950 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853950

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: NPE on redeploy (inside aspect library code)

2004-11-04 Thread Squeak
Bill, As I mentioned above, I am using the precompiler. Let me see what I can do about stripping out a significant amount of code and come up with a reproducable test case. Want me to send it via email? View the original post :

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: NPE on redeploy (inside aspect library code)

2004-11-04 Thread Bill Burke
Yes, send it via email: [EMAIL PROTECTED] FYI: hot deployment is a bitch. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3853954#3853954 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853954

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: NPE on redeploy (inside aspect library code)

2004-11-04 Thread Squeak
I am working on it now...just as an FYI that might be the cause...I am doing scooped classloading inside the 'standard' config of JBoss 4.0. Here is the contents of jboss-web.xml from the war: | jboss-web | class-loading java2ClassLoadingCompliance=false |loader-repository |

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: NPE on redeploy (inside aspect library code)

2004-11-04 Thread Bill Burke
FYI, I have done ZERO testing with scoped classloading and JBoss AOP. FYI2: If you figure out this bug, and you want CVS access, you got it! I STILL have a hard time debugging hot deployment bugs whenever they come up. Bill View the original post :