-
1. Re: Unable to figure out calledmethod of a caller pointcut
bill.burke Sep 20, 2004 5:48 PM (in response to marciodel)The caller pointcut should not be called. You can use the -report switch with the precompiler (the ant task would be report="true") and it will dump out all matching joinpoints and the bindings that they are attached to.
a) are you using a "call" pointcut anywhere? It looks like you are. (or that you did).
b) Are you using the precompiler? Clean all your classfile and recompile everything.
If you can get a small testcase that reproduces the bug, please post it here.
Bill -
2. Re: Unable to figure out calledmethod of a caller pointcut
marciodel Sep 20, 2004 6:04 PM (in response to marciodel)Hi, you are right. I am using "call(* packageName->*(..))".
The following is the code that is causing the exception. When I remove conn.close(), the exception is not thown.
MessageConnection conn = null;
String url = "sms://" + getAttribute() + ":134";
try {
conn = (MessageConnection) Connector.open(url);
TextMessage msg = (TextMessage) conn
.newMessage(MessageConnection.TEXT_MESSAGE);
msg.setPayloadText(text.toString());
conn.send(msg);
} catch (Exception e) {
//e.printStackTrace();
throw new IllegalStateException("Not allowed to send SMS");
} finally {
if (conn != null) {
try {
conn.close();
} catch (Exception e) {
if (com.xxx.xxxxxx.Debug.getDebugLevel() != com.xxx.xxxxxx.Debug.DBG_NONE)
e.printStackTrace();
}
}
}
Thanks. -
3. Re: Unable to figure out calledmethod of a caller pointcut
marciodel Sep 21, 2004 8:39 AM (in response to marciodel)Hi. I forgot to say that the intercepted class is Connector. All others are not intercepted.
I am using the SystemClassLoader. The pointcuts are being defined using the API and not the XML.
Thanks,
Marcio Alves