From patrice_martoia at hotmail.com Sat Jun 4 12:46:53 2005 From: patrice_martoia at hotmail.com (Patrice Martoia) Date: Thu Mar 23 12:03:24 2006 Subject: [Eos-discuss] Eos 0.3-Beta - Eos.Runtime.Ijoinpoint.Args throws exception Message-ID: Hello, First off, I'm pretty impressed by Eos and have been happily using for some time. However, it seems that the new Eos.Runtime.Ijoinpoint.Args is not quite working properly. Whenever I use it, I systematically get an exception (Destination array was not long enough. Check destIndex and length, and the array's lower bounds.) Is it a known issue or am I doing something wrong (I can't see what as Reflector tells me Args is a property, object[] get_Args()) ? Many thanks, Patrice From hridesh at gmail.com Sun Jun 5 01:37:29 2005 From: hridesh at gmail.com (Rajan, Hridesh) Date: Thu Mar 23 12:03:24 2006 Subject: [Eos-discuss] Eos 0.3-Beta - Eos.Runtime.Ijoinpoint.Args throwsexception In-Reply-To: Message-ID: <42a28fa0.6b73d451.6886.ffffa4e1@mx.gmail.com> Hi Patrice, Thanks for your kind words and for using Eos. It seems like you might have discovered a bug, however, it is difficult to investigate without a test case that demonstrates it. Would be so kind as to send me a test file in your environment that shows the bug. It will help me reproduce and isolate it. Thanks again and I look forward to hearing from you, Rajan > -----Original Message----- > From: eos-discuss-bounces@cs.virginia.edu > [mailto:eos-discuss-bounces@cs.virginia.edu] On Behalf Of > Patrice Martoia > Sent: Saturday, June 04, 2005 12:47 PM > To: eos-discuss@ares.cs.Virginia.EDU > Subject: [Eos-discuss] Eos 0.3-Beta - > Eos.Runtime.Ijoinpoint.Args throwsexception > > Hello, > First off, I'm pretty impressed by Eos and have been happily > using for some time. > > However, it seems that the new Eos.Runtime.Ijoinpoint.Args is > not quite working properly. > Whenever I use it, I systematically get an exception > (Destination array was not long enough. Check destIndex and > length, and the array's lower bounds.) > > Is it a known issue or am I doing something wrong (I can't > see what as Reflector tells me Args is a property, object[] > get_Args()) ? > > Many thanks, > Patrice > _______________________________________________ > Eos-discuss mailing list > Eos-discuss@ares.cs.Virginia.EDU > http://www.cs.Virginia.EDU/mailman-2.1.5/listinfo/eos-discuss > From patrice_martoia at hotmail.com Sun Jun 5 05:42:48 2005 From: patrice_martoia at hotmail.com (Patrice Martoia) Date: Thu Mar 23 12:03:24 2006 Subject: [Eos-discuss] Eos 0.3-Beta - Eos.Runtime.Ijoinpoint.Args throwsexception In-Reply-To: <42a28fa0.6b73d451.6886.ffffa4e1@mx.gmail.com> Message-ID: Hi Rajan, Thanks for getting back to me. Let's take as an example the Args sample you kindly provided as part of an earlier release. It needs to be updated to reflect the changes in 0.3-Beta. The new version would be something like this: public class MyClass { public static void Main (string [] arguments) { MyClass m = new MyClass(); m.SaySomething("Something"); } public string SaySomething(string text) { System.Console.WriteLine(text); return text; //to test Ijoinpoint.ReturnValue } } public aspect MyAspect { after(): execution(public string MyClass.SaySomething(string)) { try { System.Console.WriteLine("This: " + thisJoinPoint.This); System.Console.WriteLine("Target: " + thisJoinPoint.Target); System.Console.WriteLine("ReturnValue: " + thisJoinPoint.ReturnValue); System.Console.WriteLine("Kind: " + thisJoinPoint.Kind); System.Console.WriteLine("Signature: " + thisJoinPoint.Signature); // The following line throws an exception bool hasArgs = (thisJoinPoint.Args.Length != 0); } catch(System.Exception e) { System.Console.WriteLine("Exception: " + e.Message + " (source: " + e.Source + ")"); } } } Please note that I keep the use of Ijoinpoint.Args as simple as I can; according to the spec (NewFeaturesInEos0.3.pdf), it "returns an array of length zero if there are not arguments". When I compile and run the resuting executable, I get: Something This: MyClass Target: MyClass ReturnValue: Something Kind: execution Signature: Public System.String MyClass.SaySomething( System.String text ) Exception: Destination array was not long enough. Check destIndex and length, and the array's lower bounds. (source: mscorlib) If I replace bool hasArgs = (thisJoinPoint.Args.Length != 0); with bool hasArgs = (thisJoinPoint.Args != null); I still get the same error... Hope this helps, Patrice > -----Original Message----- > From: Rajan, Hridesh [mailto:hridesh@gmail.com] > Sent: 05 June 2005 06:37 > To: 'Patrice Martoia'; eos-discuss@ares.cs.Virginia.EDU > Subject: RE: [Eos-discuss] Eos 0.3-Beta - > Eos.Runtime.Ijoinpoint.Args throwsexception > > Hi Patrice, > > Thanks for your kind words and for using Eos. It seems like > you might have discovered a bug, however, it is difficult to > investigate without a test case that demonstrates it. Would > be so kind as to send me a test file in your environment that > shows the bug. It will help me reproduce and isolate it. > > Thanks again and I look forward to hearing from you, > > Rajan > From hridesh at gmail.com Tue Jun 7 05:30:27 2005 From: hridesh at gmail.com (Rajan, Hridesh) Date: Thu Mar 23 12:03:24 2006 Subject: [Eos-discuss] Eos 0.3-Beta - Eos.Runtime.Ijoinpoint.Args throwsexception In-Reply-To: References: <42a28fa0.6b73d451.6886.ffffa4e1@mx.gmail.com> Message-ID: <12367b66050607023065b160d2@mail.gmail.com> Hi Patrice, Thanks for sending the example. Yes, I agree that we need to update examples. Surprisingly, your update example worked just fine on the latest version of Eos. Can you check whether you have the most recent version and download. I have modified the available archive to contain this arg example. Rajan P.S. Most recent version of Eos is 0.3.2 and it is available from the download page. On 6/5/05, Patrice Martoia wrote: > Hi Rajan, > Thanks for getting back to me. > > Let's take as an example the Args sample you kindly provided as part of an > earlier release. It needs to be updated to reflect the changes in 0.3-Beta. The > new version would be something like this: > > public class MyClass > { > public static void Main (string [] arguments) > { > MyClass m = new MyClass(); > m.SaySomething("Something"); > } > > public string SaySomething(string text) > { > System.Console.WriteLine(text); > return text; //to test Ijoinpoint.ReturnValue > } > } > > public aspect MyAspect > { > after(): execution(public string MyClass.SaySomething(string)) > { > try > { > System.Console.WriteLine("This: " + > thisJoinPoint.This); > System.Console.WriteLine("Target: " + > thisJoinPoint.Target); > System.Console.WriteLine("ReturnValue: " + > thisJoinPoint.ReturnValue); > System.Console.WriteLine("Kind: " + > thisJoinPoint.Kind); > System.Console.WriteLine("Signature: " + > thisJoinPoint.Signature); > > // The following line throws an exception > bool hasArgs = (thisJoinPoint.Args.Length != 0); > > } > catch(System.Exception e) > { > System.Console.WriteLine("Exception: " + e.Message + " > (source: " + e.Source + ")"); > } > } > } > > Please note that I keep the use of Ijoinpoint.Args as simple as I can; > according to the spec (NewFeaturesInEos0.3.pdf), it "returns an array of length > zero if there are not arguments". > When I compile and run the resuting executable, I get: > > Something > This: MyClass > Target: MyClass > ReturnValue: Something > Kind: execution > Signature: Public System.String MyClass.SaySomething( System.String text ) > Exception: Destination array was not long enough. Check destIndex and length, > and the array's lower bounds. (source: mscorlib) > > If I replace bool hasArgs = (thisJoinPoint.Args.Length != 0); with bool hasArgs > = (thisJoinPoint.Args != null); I still get the same error... > > Hope this helps, > Patrice > > > > -----Original Message----- > > From: Rajan, Hridesh [mailto:hridesh@gmail.com] > > Sent: 05 June 2005 06:37 > > To: 'Patrice Martoia'; eos-discuss@ares.cs.Virginia.EDU > > Subject: RE: [Eos-discuss] Eos 0.3-Beta - > > Eos.Runtime.Ijoinpoint.Args throwsexception > > > > Hi Patrice, > > > > Thanks for your kind words and for using Eos. It seems like > > you might have discovered a bug, however, it is difficult to > > investigate without a test case that demonstrates it. Would > > be so kind as to send me a test file in your environment that > > shows the bug. It will help me reproduce and isolate it. > > > > Thanks again and I look forward to hearing from you, > > > > Rajan > > > From hridesh at gmail.com Tue Jun 7 05:40:28 2005 From: hridesh at gmail.com (Rajan, Hridesh) Date: Thu Mar 23 12:03:25 2006 Subject: Request for example contribution [Was Re: [Eos-discuss] Eos 0.3-Beta - Eos.Runtime.Ijoinpoint.Args throwsexception] In-Reply-To: <12367b66050607023065b160d2@mail.gmail.com> References: <42a28fa0.6b73d451.6886.ffffa4e1@mx.gmail.com> <12367b66050607023065b160d2@mail.gmail.com> Message-ID: <12367b66050607024052c4078a@mail.gmail.com> To Patrice and everyone else, I am looking for examples implemented in Eos to include in the distribution. The example source code will retain your copyright. The example should be self-sufficient. You will probably want to include a readme (just a suggestion). Please e-mail the examples directly to me or if you wanna show off you Eos skills, to the entire mailing list ;-) Thanks in advance, Rajan On 6/7/05, Rajan, Hridesh wrote: > Hi Patrice, > > Thanks for sending the example. Yes, I agree that we need to update > examples. Surprisingly, your update example worked just fine on the > latest version of Eos. Can you check whether you have the most recent > version and download. I have modified the available archive to contain > this arg example. > > Rajan > > P.S. Most recent version of Eos is 0.3.2 and it is available from the > download page. > > On 6/5/05, Patrice Martoia wrote: > > Hi Rajan, > > Thanks for getting back to me. > > > > Let's take as an example the Args sample you kindly provided as part of an > > earlier release. It needs to be updated to reflect the changes in 0.3-Beta. The > > new version would be something like this: > > > > public class MyClass > > { > > public static void Main (string [] arguments) > > { > > MyClass m = new MyClass(); > > m.SaySomething("Something"); > > } > > > > public string SaySomething(string text) > > { > > System.Console.WriteLine(text); > > return text; //to test Ijoinpoint.ReturnValue > > } > > } > > > > public aspect MyAspect > > { > > after(): execution(public string MyClass.SaySomething(string)) > > { > > try > > { > > System.Console.WriteLine("This: " + > > thisJoinPoint.This); > > System.Console.WriteLine("Target: " + > > thisJoinPoint.Target); > > System.Console.WriteLine("ReturnValue: " + > > thisJoinPoint.ReturnValue); > > System.Console.WriteLine("Kind: " + > > thisJoinPoint.Kind); > > System.Console.WriteLine("Signature: " + > > thisJoinPoint.Signature); > > > > // The following line throws an exception > > bool hasArgs = (thisJoinPoint.Args.Length != 0); > > > > } > > catch(System.Exception e) > > { > > System.Console.WriteLine("Exception: " + e.Message + " > > (source: " + e.Source + ")"); > > } > > } > > } > > > > Please note that I keep the use of Ijoinpoint.Args as simple as I can; > > according to the spec (NewFeaturesInEos0.3.pdf), it "returns an array of length > > zero if there are not arguments". > > When I compile and run the resuting executable, I get: > > > > Something > > This: MyClass > > Target: MyClass > > ReturnValue: Something > > Kind: execution > > Signature: Public System.String MyClass.SaySomething( System.String text ) > > Exception: Destination array was not long enough. Check destIndex and length, > > and the array's lower bounds. (source: mscorlib) > > > > If I replace bool hasArgs = (thisJoinPoint.Args.Length != 0); with bool hasArgs > > = (thisJoinPoint.Args != null); I still get the same error... > > > > Hope this helps, > > Patrice > > > > > > > -----Original Message----- > > > From: Rajan, Hridesh [mailto:hridesh@gmail.com] > > > Sent: 05 June 2005 06:37 > > > To: 'Patrice Martoia'; eos-discuss@ares.cs.Virginia.EDU > > > Subject: RE: [Eos-discuss] Eos 0.3-Beta - > > > Eos.Runtime.Ijoinpoint.Args throwsexception > > > > > > Hi Patrice, > > > > > > Thanks for your kind words and for using Eos. It seems like > > > you might have discovered a bug, however, it is difficult to > > > investigate without a test case that demonstrates it. Would > > > be so kind as to send me a test file in your environment that > > > shows the bug. It will help me reproduce and isolate it. > > > > > > Thanks again and I look forward to hearing from you, > > > > > > Rajan > > > > > > From salvador at galvansanchez.com Tue Jun 7 14:35:47 2005 From: salvador at galvansanchez.com (salvador@galvansanchez.com) Date: Thu Mar 23 12:03:25 2006 Subject: [Eos-discuss] Tutorila Eos Message-ID: <32889.127.0.0.1.1118169347.squirrel@127.0.0.1> Hello, I'm trying to learn Eos and compare with other tools, but I can't find the tutorial or any information to learn it. Where can I found this tutorial? Thanks Salvador P.D.: Sorry for my english From ocorpening at acornsys.com Tue Jun 7 14:46:09 2005 From: ocorpening at acornsys.com (Owen Corpening) Date: Thu Mar 23 12:03:25 2006 Subject: [Eos-discuss] Tutorila Eos In-Reply-To: <32889.127.0.0.1.1118169347.squirrel@127.0.0.1> Message-ID: <42A561A900017407@n126.sc0.cp.net> (added by postmaster@bouncemessage.net) I say get the .32 version that is current, go to the examples/HelloWorld directory, and type in "test.bat", that will give you the best start the fastest. Then run the resulting .exe Thanks, Owen Corpening Acorn Systems -----Original Message----- From: eos-discuss-bounces@cs.virginia.edu [mailto:eos-discuss-bounces@cs.virginia.edu] On Behalf Of salvador@galvansanchez.com Sent: Tuesday, June 07, 2005 1:36 PM To: eos-discuss@ares.cs.Virginia.EDU Subject: [Eos-discuss] Tutorila Eos Importance: High Hello, I'm trying to learn Eos and compare with other tools, but I can't find the tutorial or any information to learn it. Where can I found this tutorial? Thanks Salvador P.D.: Sorry for my english _______________________________________________ Eos-discuss mailing list Eos-discuss@ares.cs.Virginia.EDU http://www.cs.Virginia.EDU/mailman-2.1.5/listinfo/eos-discuss From patrice_martoia at hotmail.com Wed Jun 8 16:04:51 2005 From: patrice_martoia at hotmail.com (Patrice Martoia) Date: Thu Mar 23 12:03:25 2006 Subject: [Eos-discuss] Eos 0.3-Beta - Eos.Runtime.Ijoinpoint.Args throwsexception In-Reply-To: <12367b66050607023065b160d2@mail.gmail.com> Message-ID: Hi Rajan, Great! Eos 0.3.2 works nicely indeed. As for your request for examples, I'll try to extract more samples from my code but in the meantime, have you asked this guy http://www.geekswithblogs.net/imilovanovic/articles/11584.aspx? He may even be on the list. His code sample is quite good. Thanks, Patrice > -----Original Message----- > From: Rajan, Hridesh [mailto:hridesh@gmail.com] > Sent: 07 June 2005 10:30 > To: Patrice Martoia > Cc: eos-discuss@ares.cs.virginia.edu > Subject: Re: [Eos-discuss] Eos 0.3-Beta - > Eos.Runtime.Ijoinpoint.Args throwsexception > > Hi Patrice, > > Thanks for sending the example. Yes, I agree that we need to > update examples. Surprisingly, your update example worked > just fine on the latest version of Eos. Can you check whether > you have the most recent version and download. I have > modified the available archive to contain this arg example. > > Rajan > > P.S. Most recent version of Eos is 0.3.2 and it is available > from the download page. > From CPaul at covansys.com Wed Jun 29 02:38:01 2005 From: CPaul at covansys.com (PAUL Clara) Date: Thu Mar 23 12:03:25 2006 Subject: [Eos-discuss] Hi, how to use around advice with InnerInvoke(). any sample code...would be great Message-ID: Hi, I am trying to insert try catch block around my method execution using EOS 0.3.2. Through one mail in mailing list I got the equivalent code for proceed(adp.InnerInvoke()) in EOS. But still when I execute the following code I am getting ":error EOS1518: error: Expected adviceexecution, args, aroundptr, ...." error from EOS compiler. Can any one help me out to resolve this. This is the aspect file using System; using Eos.Runtime; public aspect JPTest { pointcut weaveAround():execution(public any any(..)) || initialization(any(..)) && !within(JPTest); object around():weaveAround() { object result = null; try { Console.WriteLine("hello...around") ; result = adp.InnerInvoke(); // Proceed Syntax in Eos } catch (Exception ex) { Console.WriteLine(ex.Message) ; } return result; } } "The trouble with being punctual is that nobody's there to appreciate it." - Franklin P. Jones Mrs Clara, Associate Projects, Ph no: 22623880 extn 6557 NEC - Middle ware, Covansys. Confidentiality Statement: This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.cs.Virginia.EDU/pipermail/eos-discuss/attachments/20050629/6672de4e/attachment.htm From hridesh at gmail.com Wed Jun 29 14:49:42 2005 From: hridesh at gmail.com (Rajan, Hridesh) Date: Thu Mar 23 12:03:25 2006 Subject: [Eos-discuss] Hi, how to use around advice with InnerInvoke(). any sample code...would be great In-Reply-To: Message-ID: <42c2ed49.6384a2c5.0f8d.072f@mx.gmail.com> Hi Paul, Thanks for your e-mail. Today a bugfix version for Eos was released on the web-site. I have included an example that demonstrates around advices in Eos in the released zip for your convenience. Please download Eos-0.3.3 from the webpage. Best, Hridesh _____ From: eos-discuss-bounces@cs.virginia.edu [mailto:eos-discuss-bounces@cs.virginia.edu] On Behalf Of PAUL Clara Sent: Wednesday, June 29, 2005 2:38 AM To: eos-discuss@ares.cs.Virginia.EDU Subject: [Eos-discuss] Hi, how to use around advice with InnerInvoke(). anysample code...would be great Hi, I am trying to insert try catch block around my method execution using EOS 0.3.2. Through one mail in mailing list I got the equivalent code for proceed(adp.InnerInvoke()) in EOS. But still when I execute the following code I am getting ":error EOS1518: error: Expected adviceexecution, args, aroundptr, .." error from EOS compiler. Can any one help me out to resolve this. This is the aspect file using System; using Eos.Runtime; public aspect JPTest { pointcut weaveAround():execution(public any any(..)) || initialization(any(..)) && !within(JPTest); object around():weaveAround() { object result = null; try { Console.WriteLine("hello...around") ; result = adp.InnerInvoke(); // Proceed Syntax in Eos } catch (Exception ex) { Console.WriteLine(ex.Message) ; } return result; } } "The trouble with being punctual is that nobody's there to appreciate it." - Franklin P. Jones Mrs Clara, Associate Projects, Ph no: 22623880 extn 6557 NEC - Middle ware, Covansys. Confidentiality Statement: This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.cs.Virginia.EDU/pipermail/eos-discuss/attachments/20050629/364c24f3/attachment.htm From CPaul at covansys.com Thu Jun 30 01:38:02 2005 From: CPaul at covansys.com (PAUL Clara) Date: Thu Mar 23 12:03:25 2006 Subject: [Eos-discuss] Few doubts in EOS Message-ID: Hi Hridesh, Thanks for your reply. I have given comments about EOS 0.3.3 in my previous mail. Can you send me your office id so that I can communicate to you faster. Its because by end of today I have to compare EOS and AspectDNG and give a report to our client. I wish to know few things, 1. Can we use pointcut Call with EOS. Manual says that we can, but when executed it tells that it is not supported. 2. More over I wish to insert a piece of code inside an existing catch block. How to do this. In document, please give more explanation on each point cut, how to define each and what are the pointcuts supported etc. Thanks for sample and reply. "The trouble with being punctual is that nobody's there to appreciate it." - Franklin P. Jones Mrs Clara, Associate Projects, Ph no: 22623880 extn 6557 NEC - Middle ware, Covansys. Confidentiality Statement: This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.cs.Virginia.EDU/pipermail/eos-discuss/attachments/20050630/8ef12dbc/attachment.htm From azangvil at 012.net.il Thu Jun 30 05:28:14 2005 From: azangvil at 012.net.il (Avner Zangvil) Date: Thu Mar 23 12:03:25 2006 Subject: [Eos-discuss] Unsubscribe In-Reply-To: Message-ID: <0IIW00A9H2E4OSE0@i_mtaout4.012.net.il> Unsubscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.cs.Virginia.EDU/pipermail/eos-discuss/attachments/20050630/7652308e/attachment.htm