RE: [JBoss-dev] Trying out AOP
Igor, I couldn't replicate this. BUT...I think I may have fixed the problem. This is probably a relic, but the Instrumentor code was adding a InvocationTargetException to the throws clause of every instrumented method. I have removed this. Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Igor Fedorenko Sent: Wednesday, March 26, 2003 12:06 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-dev] Trying out AOP You have read/write correct? I guess that was exactly what I wanted to know ;-) Javassist may not be creating the correct throws clauses. Can you add a test for this under the testsuite and under aop/? I will look at it after I finish my other aop work I'm doing. Done. Added .../aop/simpleejb/SimpleBean.java EJB, SimpleBeanInterceptor/Factory that intercepts SimpleBean methods and SimpleBeanUnitTestCase that fails to deploy that EJB. Note that the same EJB can be deployed successfully without interceptors. Btw, is there a separate target for running AOP unit tests? I had to run run-db-tests which seems to be too wide. Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Igor Fedorenko Sent: Wednesday, March 26, 2003 12:44 AM To: [EMAIL PROTECTED] Sourceforge. Net (E-mail) Subject: [JBoss-dev] Trying out AOP Hi, I am playing around with AOP and I want to know if I am doing something wrong. What I basically want is to add additional behaviour to an EJB implementation. The problem is, deployment of EJB fails with verifier errors (violation of sections 7.10.6, 7.10.7 and 7.10.8, something about exceptions thrown by implementation not being matched by declared by home/remote interfaces). The very same EJB deploys fine without aspects. Any idea? --- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] Trying out AOP
Hi Bill, I changed the ejb verifier to allow InvocationTargetException. I'll disallow it again :-) Regards, Adrian From: Bill Burke [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: [JBoss-dev] Trying out AOP Date: Mon, 31 Mar 2003 16:30:24 -0500 Igor, I couldn't replicate this. BUT...I think I may have fixed the problem. This is probably a relic, but the Instrumentor code was adding a InvocationTargetException to the throws clause of every instrumented method. I have removed this. Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Igor Fedorenko Sent: Wednesday, March 26, 2003 12:06 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-dev] Trying out AOP You have read/write correct? I guess that was exactly what I wanted to know ;-) Javassist may not be creating the correct throws clauses. Can you add a test for this under the testsuite and under aop/? I will look at it after I finish my other aop work I'm doing. Done. Added .../aop/simpleejb/SimpleBean.java EJB, SimpleBeanInterceptor/Factory that intercepts SimpleBean methods and SimpleBeanUnitTestCase that fails to deploy that EJB. Note that the same EJB can be deployed successfully without interceptors. Btw, is there a separate target for running AOP unit tests? I had to run run-db-tests which seems to be too wide. Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Igor Fedorenko Sent: Wednesday, March 26, 2003 12:44 AM To: [EMAIL PROTECTED] Sourceforge. Net (E-mail) Subject: [JBoss-dev] Trying out AOP Hi, I am playing around with AOP and I want to know if I am doing something wrong. What I basically want is to add additional behaviour to an EJB implementation. The problem is, deployment of EJB fails with verifier errors (violation of sections 7.10.6, 7.10.7 and 7.10.8, something about exceptions thrown by implementation not being matched by declared by home/remote interfaces). The very same EJB deploys fine without aspects. Any idea? --- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development _ --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] Trying out AOP
You have read/write correct? I guess that was exactly what I wanted to know ;-) Javassist may not be creating the correct throws clauses. Can you add a test for this under the testsuite and under aop/? I will look at it after I finish my other aop work I'm doing. Done. Added .../aop/simpleejb/SimpleBean.java EJB, SimpleBeanInterceptor/Factory that intercepts SimpleBean methods and SimpleBeanUnitTestCase that fails to deploy that EJB. Note that the same EJB can be deployed successfully without interceptors. Btw, is there a separate target for running AOP unit tests? I had to run run-db-tests which seems to be too wide. Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Igor Fedorenko Sent: Wednesday, March 26, 2003 12:44 AM To: [EMAIL PROTECTED] Sourceforge. Net (E-mail) Subject: [JBoss-dev] Trying out AOP Hi, I am playing around with AOP and I want to know if I am doing something wrong. What I basically want is to add additional behaviour to an EJB implementation. The problem is, deployment of EJB fails with verifier errors (violation of sections 7.10.6, 7.10.7 and 7.10.8, something about exceptions thrown by implementation not being matched by declared by home/remote interfaces). The very same EJB deploys fine without aspects. Any idea? --- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development