AOP advice execution sequence

View: New views
12 Messages — Rating Filter:   Alert me  

AOP advice execution sequence

by akhilesh laddha :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,
I would like to get clarify my self about AOP advice execution sequence along with the application code. Does AOP advice execute in parallel with application methods for that cross cut defines?
 
For example
Application method - foo()  (for cross cut define)
Takes execution time T1
Advice – fooAdvice() takes t1 time
 
If AOP advice runs sequentially with application code then additional performance hit because of advice code execution.
 
Total time will be – T1 +t1
 
From my understanding it runs in parallel therefore it takes time equal to whichever is higher for ex – T1
 
Please correct my understanding
 
Thanks
Akhilesh
 


Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now.

Re: AOP advice execution sequence

by Alexandre Vasseur :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

no it runs in the same code path - as if you wrote it
this said it is easy to have your advice produce an async task that
will be consumed by some thread queue if you want
it is all up to you
Alex

On Nov 20, 2007 6:00 PM, akhilesh laddha <akhilesh_laddha@...> wrote:

>
> Hi All,
> I would like to get clarify my self about AOP advice execution sequence
> along with the application code. Does AOP advice execute in parallel with
> application methods for that cross cut defines?
>
> For example
> Application method - foo()  (for cross cut define)
> Takes execution time T1
> Advice – fooAdvice() takes t1 time
>
> If AOP advice runs sequentially with application code then additional
> performance hit because of advice code execution.
>
> Total time will be – T1 +t1
>
> From my understanding it runs in parallel therefore it takes time equal to
> whichever is higher for ex – T1
>
> Please correct my understanding
>
> Thanks
> Akhilesh
>
>
>
>  ________________________________
> Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it
> now.

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


RE: AOP advice execution sequence

by Lalithamba :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
 
How to implement asynchronous aspect ?
Can we get any sample if available.
 
Any help is appreciated.
 

Thanks and Regards,
Lalithamba.

________________________________

From: Alexandre Vasseur [mailto:avasseur@...]
Sent: Tue 20-Nov-07 10:53 PM
To: user@...
Subject: Re: [aspectwerkz-user] AOP advice execution sequence



no it runs in the same code path - as if you wrote it
this said it is easy to have your advice produce an async task that
will be consumed by some thread queue if you want
it is all up to you
Alex

On Nov 20, 2007 6:00 PM, akhilesh laddha <akhilesh_laddha@...> wrote:

>
> Hi All,
> I would like to get clarify my self about AOP advice execution sequence
> along with the application code. Does AOP advice execute in parallel with
> application methods for that cross cut defines?
>
> For example
> Application method - foo()  (for cross cut define)
> Takes execution time T1
> Advice - fooAdvice() takes t1 time
>
> If AOP advice runs sequentially with application code then additional
> performance hit because of advice code execution.
>
> Total time will be - T1 +t1
>
> From my understanding it runs in parallel therefore it takes time equal to
> whichever is higher for ex - T1
>
> Please correct my understanding
>
> Thanks
> Akhilesh
>
>
>
>  ________________________________
> Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it
> now.
---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email






The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
 
www.wipro.com

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

winmail.dat (6K) Download Attachment

Re: AOP advice execution sequence

by Tahir Akhtar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think there is nothing AOP-specific to it. Just launch your task in a separate thread using standard java threading techniques.

Regards
Tahir Akhtar

lalithamba.vishwanathaiah@... wrote:



Subject:
RE: [aspectwerkz-user] AOP advice execution sequence
From:
lalithamba.vishwanathaiah@...
Date:
Wed, 21 Nov 2007 17:27:22 +0530
To:
user@...
To:
user@...

Hi,
 
How to implement asynchronous aspect ?
Can we get any sample if available.
 
Any help is appreciated.
 

Thanks and Regards,
Lalithamba.

________________________________

From: Alexandre Vasseur [avasseur@...]
Sent: Tue 20-Nov-07 10:53 PM
To: user@...
Subject: Re: [aspectwerkz-user] AOP advice execution sequence



no it runs in the same code path - as if you wrote it
this said it is easy to have your advice produce an async task that
will be consumed by some thread queue if you want
it is all up to you
Alex

On Nov 20, 2007 6:00 PM, akhilesh laddha akhilesh_laddha@... wrote:
  
Hi All,
I would like to get clarify my self about AOP advice execution sequence
along with the application code. Does AOP advice execute in parallel with
application methods for that cross cut defines?

For example
Application method - foo()  (for cross cut define)
Takes execution time T1
Advice - fooAdvice() takes t1 time

If AOP advice runs sequentially with application code then additional
performance hit because of advice code execution.

Total time will be - T1 +t1

From my understanding it runs in parallel therefore it takes time equal to
whichever is higher for ex - T1

Please correct my understanding

Thanks
Akhilesh



 ________________________________
Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it
now.
    

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email



  

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com

--------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

--------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

Re: AOP advice execution sequence

by akhilesh laddha :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,
Is this the only mechanism to run advice in parallel with the
application methods for that cross cut defines?
Or, any other option comes inherently with AOP framework to do the same.  Please do let me know.
 
 
Thanks
Akhilesh



Tahir Akhtar <tahir@...> wrote:
I think there is nothing AOP-specific to it. Just launch your task in a separate thread using standard java threading techniques.

Regards
Tahir Akhtar

lalithamba.vishwanathaiah@... wrote:



Subject:
RE: [aspectwerkz-user] AOP advice execution sequence
From:
lalithamba.vishwanathaiah@...
Date:
Wed, 21 Nov 2007 17:27:22 +0530
To:
user@...
To:
user@...

Hi,     How to implement asynchronous aspect ?  Can we get any sample if available.     Any help is appreciated.       Thanks and Regards,  Lalithamba.    ________________________________    From: Alexandre Vasseur [avasseur@...]  Sent: Tue
 20-Nov-07 10:53 PM  To: user@...  Subject: Re: [aspectwerkz-user] AOP advice execution sequence        no it runs in the same code path - as if you wrote it  this said it is easy to have your advice produce an async task that  will be consumed by some thread queue if you want  it is all up to you  Alex    On Nov 20, 2007 6:00 PM, akhilesh laddha akhilesh_laddha@... wrote:    
Hi All,  I would like to get clarify my self about AOP advice execution sequence  along with the application code. Does AOP advice execute in parallel with  application methods for that cross cut defines?    For example  Application method - foo()  (for cross cut define)  Takes execution time T1  Advice - fooAdvice() takes t1 time    If AOP advice runs sequentially with
 application code then additional  performance hit because of advice code execution.    Total time will be - T1 +t1    From my understanding it runs in parallel therefore it takes time equal to  whichever is higher for ex - T1    Please correct my understanding    Thanks  Akhilesh         ________________________________  Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it  now.      
  ---------------------------------------------------------------------  To unsubscribe from this list please visit:        http://xircles.codehaus.org/manage_email          

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com

--------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

--------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email


Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.

Re: AOP advice execution sequence

by akhilesh laddha :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Alex,
I have some doubt.  Because, attached document section 5, 6 and 7 describes that AOP advice run in parallel with the application code.
 
In this url http://www.sdtimes.com/editorial/opinion-20020101-01.html article explain in the same line.
 
Still, my understanding is not clarified, because your reply defer from the article.
 
Is that all Java AOP framework inherently not support parallel execution of advice with the application code?
 
Please let me know.
 
Thanks
Akhilesh

Alexandre Vasseur <avasseur@...> wrote:
no it runs in the same code path - as if you wrote it
this said it is easy to have your advice produce an async task that
will be consumed by some thread queue if you want
it is all up to you
Alex

On Nov 20, 2007 6:00 PM, akhilesh laddha wrote:

>
> Hi All,
> I would like to get clarify my self about AOP advice execution sequence
> along with the application code. Does AOP advice execute in parallel with
> application methods for that cross cut defines?
>
> For example
> Application method - foo() (for cross cut define)
> Takes execution time T1
> Advice – fooAdvice() takes t1 time
>
> If AOP advice runs sequentially with application code then additional
> performance hit because of advice code execution.
>
> Total time will be – T1 +t1
>
> From my understanding it runs in parallel therefore it takes time equal to
> whichever is higher for ex – T1
>
> Please correct my understanding
>
> Thanks
> Akhilesh
>
>
>
> ________________________________
> Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it
> now.

---------------------------------------------------------------------
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email



Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now.

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

AOP_parallelProc.pdf (333K) Download Attachment

Re: AOP advice execution sequence

by Alexandre Vasseur :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

yes you can code for that, but the AOP framework won't create any thread for you
those papers are about use case, and not about framework features


On 11/21/07, akhilesh laddha <akhilesh_laddha@...> wrote:

>
> Alex,
> I have some doubt.  Because, attached document section 5, 6 and 7 describes
> that AOP advice run in parallel with the application code.
>
> In this url
> http://www.sdtimes.com/editorial/opinion-20020101-01.html
> article explain in the same line.
>
> Still, my understanding is not clarified, because your reply defer from the
> article.
>
> Is that all Java AOP framework inherently not support parallel execution of
> advice with the application code?
>
> Please let me know.
>
> Thanks
> Akhilesh
> Alexandre Vasseur <avasseur@...> wrote:
> no it runs in the same code path - as if you wrote it
> this said it is easy to have your advice produce an async task that
> will be consumed by some thread queue if you want
> it is all up to you
> Alex
>
> On Nov 20, 2007 6:00 PM, akhilesh laddha wrote:
> >
> > Hi All,
> > I would like to get clarify my self about AOP advice execution sequence
> > along with the application code. Does AOP advice execute in parallel with
> > application methods for that cross cut defines?
> >
> > For example
> > Application method - foo() (for cross cut define)
> > Takes execution time T1
> > Advice – fooAdvice() takes t1 time
> >
> > If AOP advice runs sequentially with application code then additional
> > performance hit because of advice code execution.
> >
> > Total time will be – T1 +t1
> >
> > From my understanding it runs in parallel therefore it takes time equal to
> > whichever is higher for ex – T1
> >
> > Please correct my understanding
> >
> > Thanks
> > Akhilesh
> >
> >
> >
> > ________________________________
> > Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try
> it
> > now.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
>
> ________________________________
> Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it
> now.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: AOP advice execution sequence

by akhilesh laddha :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Alex,
I would like to know, what would be the right approach to bring the parallel execution of advice functionality up in the solution.
Should I tweak the framework code or own solution (means create a thread in advice and execute localize concerns code in run method)?
 
Code snippet to add in own solution---
 
MyAdvice()
{
     MyConcerns concerns = MyConcerns ();
     new Thread(concerns).start();
}
 
 
 
------------------
Class MyConcerns ()
{
   public void run()
  {
    System.out.println("Log info");
  }
}
 
-----------------------------------
 
Note - If we need to tweak in the framework code then where I need to do. Please do let me know.
 
Thanks
Akhilesh

Alexandre Vasseur <avasseur@...> wrote:
yes you can code for that, but the AOP framework won't create any thread for you
those papers are about use case, and not about framework features


On 11/21/07, akhilesh laddha wrote:

>
> Alex,
> I have some doubt. Because, attached document section 5, 6 and 7 describes
> that AOP advice run in parallel with the application code.
>
> In this url
> http://www.sdtimes.com/editorial/opinion-20020101-01.html
> article explain in the same line.
>
> Still, my understanding is not clarified, because your reply defer from the
> article.
>
> Is that all Java AOP framework inherently not support parallel execution of
> advice with the application code?
>
> Please let me know.
>
> Thanks
> Akhilesh
> Alexandre Vasseur wrote:
> no it runs in the same code path - as if you wrote it
> this said it is easy to have your advice produce an async task that
> will be consumed by some thread queue if you want
> it is all up to you
> Alex
>
> On Nov 20, 2007 6:00 PM, akhilesh laddha wrote:
> >
> > Hi All,
> > I would like to get clarify my self about AOP advice execution sequence
> > along with the application code. Does AOP advice execute in parallel with
> > application methods for that cross cut defines?
> >
> > For example
> > Application method - foo() (for cross cut define)
> > Takes execution time T1
> > Advice – fooAdvice() takes t1 time
> >
> > If AOP advice runs sequentially with application code then additional
> > performance hit because of advice code execution.
> >
> > Total time will be – T1 +t1
> >
> > From my understanding it runs in parallel therefore it takes time equal to
> > whichever is higher for ex – T1
> >
> > Please correct my understanding
> >
> > Thanks
> > Akhilesh
> >
> >
> >
> > ________________________________
> > Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try
> it
> > now.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
>
> ________________________________
> Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it
> now.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email



Never miss a thing. Make Yahoo your homepage.

RE: AOP advice execution sequence

by Lalithamba :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Alex,

Below is the message which my manager had posted and I guess since he was not a registered user, the question did not get posted.

==========================================================================================================

Hi Alexandre,

I was following your mail chain and would like to put in a word of thanks about the guidance provided by you to our team.

A related two cents from me: I always felt AOP is a technology-concept implemented in specific ways for relevant frameworks. Now it is a different question all-together that a particular AOP-framework may not have features to support parallel processing but inherently AOP should be used for infrastructural capabilities which can be spawned via cross-cuts - I guess that is the core strength of AOP than just using it so that the piece gets executed in the same code-path.

Thanks,
Ritwik
Chief Architect - Wipro Technologies - EBiz
 
=============================================================================================

Thanks and Regards,
Lalithamba.

________________________________

From: Alexandre Vasseur [mailto:avasseur@...]
Sent: Thu 22-Nov-07 2:50 AM
To: user@...
Subject: Re: [aspectwerkz-user] AOP advice execution sequence



yes you can code for that, but the AOP framework won't create any thread for you
those papers are about use case, and not about framework features


On 11/21/07, akhilesh laddha <akhilesh_laddha@...> wrote:

>
> Alex,
> I have some doubt.  Because, attached document section 5, 6 and 7 describes
> that AOP advice run in parallel with the application code.
>
> In this url
> http://www.sdtimes.com/editorial/opinion-20020101-01.html
> article explain in the same line.
>
> Still, my understanding is not clarified, because your reply defer from the
> article.
>
> Is that all Java AOP framework inherently not support parallel execution of
> advice with the application code?
>
> Please let me know.
>
> Thanks
> Akhilesh
> Alexandre Vasseur <avasseur@...> wrote:
> no it runs in the same code path - as if you wrote it
> this said it is easy to have your advice produce an async task that
> will be consumed by some thread queue if you want
> it is all up to you
> Alex
>
> On Nov 20, 2007 6:00 PM, akhilesh laddha wrote:
> >
> > Hi All,
> > I would like to get clarify my self about AOP advice execution sequence
> > along with the application code. Does AOP advice execute in parallel with
> > application methods for that cross cut defines?
> >
> > For example
> > Application method - foo() (for cross cut define)
> > Takes execution time T1
> > Advice - fooAdvice() takes t1 time
> >
> > If AOP advice runs sequentially with application code then additional
> > performance hit because of advice code execution.
> >
> > Total time will be - T1 +t1
> >
> > From my understanding it runs in parallel therefore it takes time equal to
> > whichever is higher for ex - T1
> >
> > Please correct my understanding
> >
> > Thanks
> > Akhilesh
> >
> >
> >
> > ________________________________
> > Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try
> it
> > now.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
>
> ________________________________
> Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it
> now.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email






The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
 
www.wipro.com

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

winmail.dat (9K) Download Attachment

aop.xml not getting recognised

by Lalithamba :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am using Aspectwerkz to pointcut a standalone CORBA application which is running under naming service TAO in LINUX.

I have the following files :

Hello.idl
HelloClient.java
HelloServer.java


Now I execute the idl file using idlj utility of Java as follows :
==============================================
idlj -fall Hello.idl (this creates the stubs)

Compile the Client and Server file :
========================
javac HelloClient.java HelloApp/*.java
javac HelloServer.java HelloApp/*.java

set ASPECTWERKZ_HOME=D:\aspectwerkz-2.0

======================================================================

Now the naming service is running on linux.

I run HelloServer as follows :

java -Xbootclasspath/p:.:/opt/ALNA/bin/avalon-framework-4.1.5.jar:/opt/ALNA/bin/jacorb.jar:/opt/ALNA/bin/logkit-1.2.jar: -DORBInitRef.NameService=corbaloc:iiop:10.116.69.123:23000/NameService HelloServer

This shows : HelloServer ready and waiting ...

Next I am running HelloClient using aspectwerkz as :

/opt/aspectwerkz/bin/aspectwerkz -javaagent:/opt/eprofiler/Hello/eProfiler.jar -cp /opt/eprofiler/Hello/eProfiler.jar:/opt/eprofiler/Hello/aopfile.jar -Xbootclasspath/p:.:/opt/eprofiler/Hello/aopfile.jar:/opt/eprofiler/Hello:/opt/eprofiler/Hello/eProfiler.jar:/opt/ALNA/bin/avalon-framework-4.1.5.jar:/opt/ALNA/bin/jacorb.jar:/opt/ALNA/bin/logkit-1.2.jar:/opt/aspectwerkz/lib/aspectwerkz-core-2.0.jar:/opt/aspectwerkz/lib/aspectwerkz-2.0.jar: -DORBInitRef.NameService=corbaloc:iiop:10.116.69.123:23000/NameService HelloClient

After I run this, the application is not getting cross-cut.  Only the SOP of the program is getting printed.  My thought is aop.xml is not getting recognised.
aop.xml is present in META-INF directory and also I have placed it in aopfile.jar which just has META-INF directory with aop.xml file in it.

Any help in recognising the aop.xml is appreciated.

Thanks in advance.






Thanks and Regards,
Lalithamba.


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

winmail.dat (7K) Download Attachment

Parent Message unknown RE: aop.xml not getting recognised

by Lalithamba :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Re: [aspectwerkz-user] AOP advice execution sequence
 
 

Hello,
 
In the below scenario,  Once I run the client, the aop.xml gets recognsied by -Daspectwerkz.definition.file=path/aop.xml but the application is not getting pointcut.  Any clues why ?
Thanks and Regards,
Lalithamba.


From: lalithamba.vishwanathaiah@... [mailto:lalithamba.vishwanathaiah@...]
Sent: Wed 13-Feb-08 8:14 PM
To: user@...; avasseur@...
Subject: aop.xml not getting recognised

Hi,
 
I am using Aspectwerkz to pointcut a standalone CORBA application which is running under naming service TAO in LINUX.
 
I have the following files :
 
Hello.idl
HelloClient.java
HelloServer.java
 
 
Now I execute the idl file using idlj utility of Java as follows :
==============================================
idlj -fall Hello.idl (this creates the stubs)
 
Compile the Client and Server file :
========================
javac HelloClient.java HelloApp/*.java
javac HelloServer.java HelloApp/*.java
 
set ASPECTWERKZ_HOME=D:\aspectwerkz-2.0
======================================================================
 
Now the naming service is running on linux.
 
I run HelloServer as follows :
 
java -Xbootclasspath/p:.:/opt/ALNA/bin/avalon-framework-4.1.5.jar:/opt/ALNA/bin/jacorb.jar:/opt/ALNA/bin/logkit-1.2.jar: -DORBInitRef.NameService=corbaloc:iiop:10.116.69.123:23000/NameService HelloServer
 
This shows : HelloServer ready and waiting ...
 
Next I am running HelloClient using aspectwerkz as :
 
/opt/aspectwerkz/bin/aspectwerkz -javaagent:/opt/eprofiler/Hello/eProfiler.jar -cp /opt/eprofiler/Hello/eProfiler.jar:/opt/eprofiler/Hello/aopfile.jar -Xbootclasspath/p:.:/opt/eprofiler/Hello/aopfile.jar:/opt/eprofiler/Hello:/opt/eprofiler/Hello/eProfiler.jar:/opt/ALNA/bin/avalon-framework-4.1.5.jar:/opt/ALNA/bin/jacorb.jar:/opt/ALNA/bin/logkit-1.2.jar:/opt/aspectwerkz/lib/aspectwerkz-core-2.0.jar:/opt/aspectwerkz/lib/aspectwerkz-2.0.jar: -DORBInitRef.NameService=corbaloc:iiop:10.116.69.123:23000/NameService HelloClient
 
After I run this, the application is not getting cross-cut.  Only the SOP of the program is getting printed.  My thought is aop.xml is not getting recognised.
aop.xml is present in META-INF directory and also I have placed it in aopfile.jar which just has META-INF directory with aop.xml file in it. 
 
Any help in recognising the aop.xml is appreciated.
 
Thanks in advance.

 
 
 
 
Thanks and Regards,
Lalithamba.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com


Exception while running a standalone java application (jdk 1.3) using aspectwerkz

by Lalithamba :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Pl reply as this is very urgent !

Environment : HP Unix
JDK - 1.3.1

I am trying to run a sample standalone java application in HP Unix using aspectwerkz as below :

===============================================
export ASPECTWERKZ_HOME=/home/patnipb/bv1to1_var/backend_services/aspectwerkz
echo $ASPECTWERKZ_HOME
/home/patnipb/bv1to1_var/backend_services/aspectwerkz/bin/aspectwerkz -Xbootclasspath/p:/home/patnipb/bv1to1_var/backend_services/enhanced.jar -Xbootclasspath/a:/home/patnipb/bv1to1_var/backend_services/aspectwerkz/lib/aspectwerkz-2.0.jar:/home/patnipb/bv1to1_var/backend_services/aspectwerkz/lib/piccolo-1.03.jar:/home/patnipb/bv1to1_var/backend_services/aspectwerkz/lib/dom4j-1.4.jar:/home/patnipb/bv1to1_var/backend_services/aspectwerkz/lib/jrexx-1.1.1.jar:/home/patnipb/bv1to1_var/backend_services/aspectwerkz/lib/trove-1.0.2.jar:/home/patnipb/eprofilerstandalone/eProfiler.jar -Daspectwerkz.definition.file=/home/patnipb/eprofiler_standalone/LeakExample/aop.xml -Daspectwerkz.transform.verbose=true -cp  /home/patnipb/eprofilerstandalone/eProfiler.jar:/home/patnipb/eprofiler_standalone/LeakExample/classes demos.memory.leakexample.LeakExample

===================================================


 I get the following error :

=======================================================================
java.lang.IllegalArgumentException: Unknown signal: HUP
        at sun.misc.Signal.<init>(Unknown Source)
        at java.lang.Terminator.setup(Unknown Source)
        at java.lang.Shutdown.add(Unknown Source)
        at java.lang.Runtime.addShutdownHook(Unknown Source)
        at org.codehaus.aspectwerkz.hook.ProcessStarter.run(ProcessStarter.java:225)
        at org.codehaus.aspectwerkz.hook.ProcessStarter.main(ProcessStarter.java:271)
AspectWerkz - INFO - Pre-processor org.codehaus.aspectwerkz.transform.AspectWerkzPreProcessor loaded and initialized
sun.misc.Launcher$AppClassLoader@34d3d5@3462101:demos.memory.leakexample.LeakExample[main]
 ???? loader object sun.misc.Launcher$ExtClassLoader@4afa9e
 ???? loader class name sun.misc.Launcher$ExtClassLoader
 ???? ClassLoader.getSystemClassLoader() object sun.misc.Launcher$AppClassLoader@34d3d5
 ???? ClassLoader.getSystemClassLoader() class name sun.misc.Launcher$AppClassLoader
 ???? s_disableSystemWideDefinition false
 ???? DefinitionLoader.getDefaultDefinition(loader) [org.codehaus.aspectwerkz.definition.SystemDefinition@e96f8edf]
loader.getResource(WEB_WEB_INF_XML_FILE) ==>> null
loader.getResources(AOP_WEB_INF_XML_FILE) ==>> sun.misc.CompoundEnumeration@1d0a4f
******************************************************************
* ClassLoader = sun.misc.Launcher$ExtClassLoader@4afa9e@4913822
* SystemID = virtual_4913822, 1 aspects.
******************************************************************
 ???? loader object sun.misc.Launcher$AppClassLoader@34d3d5
 ???? loader class name sun.misc.Launcher$AppClassLoader
 ???? ClassLoader.getSystemClassLoader() object sun.misc.Launcher$AppClassLoader@34d3d5
 ???? ClassLoader.getSystemClassLoader() class name sun.misc.Launcher$AppClassLoader
 ???? s_disableSystemWideDefinition false
 ???? DefinitionLoader.getDefaultDefinition(loader) [org.codehaus.aspectwerkz.definition.SystemDefinition@e96f8edf]
loader.getResource(WEB_WEB_INF_XML_FILE) ==>> null
loader.getResources(AOP_WEB_INF_XML_FILE) ==>> sun.misc.CompoundEnumeration@91cee
******************************************************************
* ClassLoader = sun.misc.Launcher$AppClassLoader@34d3d5@3462101
* SystemID = virtual_3462101, 1 aspects.
* SystemID = Methods1, 2 aspects.
* file:/home/patnipb/eprofiler_standalone/LeakExample/aop.xml
* file:/home/patnipb/eprofiler_standalone/LeakExample/classes/META-INF/aop.xml
******************************************************************
Exception in thread "main" java.lang.IllegalAccessError: try to access method [Ljava.lang.Object;.clone()Ljava/lang/Object; from class gnu.trove.TObjectHash

========================================================================

Any idea why we get this error ?

Thanks and Regards,
Lalithamba.



The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

winmail.dat (8K) Download Attachment