[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Unable to figure out calledmethod of a caller pointcut

2004-09-20 Thread marciodel
Hi,  I am using jbossaop RC1. 

I am tryimg to define a pointcut using:

execution(* packageName.*->*(..))

It works for several classes. But with a specific class the following error is being 
thrown:

Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Unable to figure 
out calledmethod of a caller pointcut
at org.jboss.aop.ClassAdvisor.resolveCallerMethodInfo(ClassAdvisor.java:1371)
at br.com.quality.appmenu.action.SMSAction.(SMSAction.java)
... 25 more
Caused by: java.lang.RuntimeException: Unable to figure out calledmethod of a caller 
pointcut
at org.jboss.aop.ClassAdvisor.resolveCallerMethodInfo(ClassAdvisor.java:1350)
... 26 more

Do you know what is the problem?

Thaks in advance.

Marcio Alves

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848858#3848858

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848858


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - "Unable to figure out calledmethod of a caller pointcut"

2004-06-07 Thread peterb
I'm still experimenting with and learning AOP, so this might be one of those errors 
that's linked to my only partial understanding of the whole AOP thing.

What I would like to do is intercept calls to remote EJB objects. My first attemp 
resulted in:

which doesn't work at all. Now, I understand it correct that's because we're dealing 
with interfaces here and it's not possible to place pointcuts in there.

So my second attemp is:

Which works ok if I enter some data as argument. So for instance "int" instead of 
"..". But if I put ".." I get the following error:
java.lang.ExceptionInInitializerError
  | Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Unable to 
figure out calledmethod of a caller pointcut
  | at 
org.jboss.aop.ClassAdvisor.resolveCallerMethodInfo(ClassAdvisor.java:1262)
  | at MyClient.(HelloWorldClient.java)
  | 

I'm guessing that I either have too many wildcards in my pointcut expression for the 
system to handle or that there's some calls going on during initialisation that I am 
intercepting but don't want to. I tried solving that last problem by adding a 
"withincode" statement but the exception remains the same.

Can any one shed some light on the reason why things go wrong?

TIA
Peter

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3837750#3837750

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3837750


---
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development