Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] cflow not working in J2EE (weblogic 8.1) ??

Trust me to fall into common pitfalls :)

thanks Adrian - I owe you a beer  (or the equivalent of course if you're
not really into beer) at the least

Danny
______________________________________________________________________________________________

SmalS-MvM sluit elke aansprakelijkheid uit in verband met de juistheid, de
volledigheid of het tijdig toekomen van de informatie in deze e-mail. Aan
deze e-mail kunnen geen rechten worden ontleend en deze e-mail houdt in
geen geval een erkenning van welkdanige aansprakelijkheid in.
Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht
niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden
en het bericht te vernietigen.

SmalS-MvM décline toute responsabilité quant à l'exactitude, à
l'exhaustivité et au délai de transmission des informations contenues dans
cet e-mail. Aucun droit ne peut être revendiqué sur cet e-mail et cet
e-mail n'implique en aucun cas une reconnaissance de responsabilité, quelle
qu'elle soit.
Ce message s'adresse uniquement au destinataire. Si ce message ne vous est
pas destiné, nous vous prions de nous le signaler immédiatement et de
détruire le message.


                                                                       
             Adrian Colyer                                             
             <adrian.colyer@gm                                         
             ail.com>                                                   To
             Sent by:                  aspectj-users@xxxxxxxxxxx       
             aspectj-users-bou                                          cc
             nces@xxxxxxxxxxx                                          
                                                                   Subject
                                       Re: [aspectj-users] cflow not   
             31/05/2006 15:32          working in J2EE (weblogic 8.1) ??
                                                                       
                                                                       
             Please respond to                                         
             aspectj-users@ecl                                         
                 ipse.org                                              
                                                                       
                                                                       
                                                                       
                                                                       
                                                                       




What is the "origin" of your control flow? (i.e. what pointcut expression
do you have inside the cflow pcd?). For cflow to work, the aspectj weaver
needs visibility both of the point where the cflow is established, and the
join point inside the control flow that is advised. If you are using e.g. a
call join point to establish the control flow, and the call is made by the
Struts framework itself, the cflow will never be established unless you
weave the struts code itself with AspectJ too. Using an execution based
join point that exists within your own application code would be an
alternative to that.

(Of course, this may not describe your situation at all, but it's a likely
common cause).

On 31/05/06, danny.foncke@xxxxxxxxxxxx <danny.foncke@xxxxxxxxxxxx> wrote:

      hi

      using AJDT 1.3.1, aspectj 1.5.1a
      I've got cflow working in the eclipse env
      ajdt cross references : OK
      testclasses : OK

      then I try to instrument a webapp (very basic Struts, no EJB calls)
      with
      the same cflow
      in Eclipse env - cross references page : OK

      I build the webapp using maven2 aspectj plugin
      joinpoint reporting by maven : OK
      build successful

      however: Running the webapp nothing happens
      no errors, no output
      I'm using weblogic 8.1 SP4
      I can debug until :
      -> CFlowCounter.isValid line:45
      -> step in gives:
      ThreadStackFactoryImpl$ThreadCounterImpl.isNotZero()line:43
      after that the 'instrumented method' returns - and that's it (which
      is not
      enough of course)

      All other instrumentations work just fine

      So, should the cflow work ?
      I'm I missing something ?

      All input more than welcome

      Danny


      ______________________________________________________________________________________________


      SmalS-MvM sluit elke aansprakelijkheid uit in verband met de
      juistheid, de
      volledigheid of het tijdig toekomen van de informatie in deze e-mail.
      Aan
      deze e-mail kunnen geen rechten worden ontleend en deze e-mail houdt
      in
      geen geval een erkenning van welkdanige aansprakelijkheid in.
      Dit bericht is alleen bestemd voor de geadresseerde. Indien dit
      bericht
      niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te
      melden
      en het bericht te vernietigen.

      SmalS-MvM décline toute responsabilité quant à l'exactitude, à
      l'exhaustivité et au délai de transmission des informations contenues
      dans
      cet e-mail. Aucun droit ne peut être revendiqué sur cet e-mail et cet

      e-mail n'implique en aucun cas une reconnaissance de responsabilité,
      quelle
      qu'elle soit.
      Ce message s'adresse uniquement au destinataire. Si ce message ne
      vous est
      pas destiné, nous vous prions de nous le signaler immédiatement et de

      détruire le message.

      _______________________________________________
      aspectj-users mailing list
      aspectj-users@xxxxxxxxxxx
      https://dev.eclipse.org/mailman/listinfo/aspectj-users



--
-- Adrian
adrian.colyer@xxxxxxxxx _______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users




Back to the top