Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsAspects not being weaved!?
https://www.eclipse.org/forums/index.php/mv/msg/19019/61023/#msg_61023
Was using Aspects a couple of weeks ago, when came to make a new one today
and now none of them are working at all!
The aspects are being reconised as aspects and all the options im familiar
with are availble, im using the aspect builder and running it in a aspect
config.
Can anyone help?? im getting quite frustrated here!
Cheers for any thoughts/ideas
Tom]]>Tom Coupland2006-01-17T15:12:06-00:00Re: Aspects not being weaved!?
https://www.eclipse.org/forums/index.php/mv/msg/19019/61048/#msg_61048
Heres the AspectJ Trace (something i was not aware of!) for my project,
can anyone say whether hti si normal or?!
3:43:21 PM
============================================================ ===============================
3:43:21 PM Build kind = INCREMENTALBUILD
3:43:21 PM Project=Experiments kind of build requested
=Incremental AspectJ compilation
3:43:21 PM build: Examined delta - source file changes in required
project Experiments
3:43:22 PM Timer event: 609ms: Time to first compiled message
3:43:23 PM Timer event: 2005ms: Total time spent in AJDE
3:43:23 PM Timer event: 55ms: Create element map (10 rels in project:
Experiments)
3:43:23 PM Types affected during build = 51
3:43:23 PM Timer event: 0ms: Add markers (0 markers)
3:43:23 PM Timer event: 2243ms: Total time spent in AJBuilder.build()
4:03:08 PM AJDTContentProvider.selectionChanged(): Marking visualiser
content as out of date
4:03:28 PM AJDTContentProvider.selectionChanged(): Marking visualiser
content as out of date
4:03:51 PM AJDTContentProvider.selectionChanged(): Marking visualiser
content as out of date
4:11:28 PM AJDTContentProvider.selectionChanged(): Marking visualiser
content as out of date
4:11:31 PM AJDTContentProvider.selectionChanged(): Marking visualiser
content as out of date
4:14:47 PM AJDTContentProvider.selectionChanged(): Marking visualiser
content as out of date
4:14:51 PM AJDTContentProvider.selectionChanged(): Marking visualiser
content as out of date
4:18:52 PM AJDTContentProvider.selectionChanged(): Marking visualiser
content as out of date
4:18:55 PM AJDTContentProvider.selectionChanged(): Marking visualiser
content as out of date
4:19:04 PM AJDTContentProvider.selectionChanged(): Marking visualiser
content as out of date
4:21:47 PM AJDTContentProvider.selectionChanged(): Marking visualiser
content as out of date
Looking forward to it......
Tom]]>Tom Coupland2006-01-17T16:31:38-00:00Re: Aspects not being weaved!?
https://www.eclipse.org/forums/index.php/mv/msg/19019/591858/#msg_591858
Heres the AspectJ Trace (something i was not aware of!) for my project,
can anyone say whether hti si normal or?!
3:43:21 PM
============================================================ ===============================
3:43:21 PM Build kind = INCREMENTALBUILD
3:43:21 PM Project=Experiments kind of build requested
=Incremental AspectJ compilation
3:43:21 PM build: Examined delta - source file changes in required
project Experiments
3:43:22 PM Timer event: 609ms: Time to first compiled message
3:43:23 PM Timer event: 2005ms: Total time spent in AJDE
3:43:23 PM Timer event: 55ms: Create element map (10 rels in project:
Experiments)
3:43:23 PM Types affected during build = 51
3:43:23 PM Timer event: 0ms: Add markers (0 markers)
3:43:23 PM Timer event: 2243ms: Total time spent in AJBuilder.build()
4:03:08 PM AJDTContentProvider.selectionChanged(): Marking visualiser
content as out of date
4:03:28 PM AJDTContentProvider.selectionChanged(): Marking visualiser
content as out of date
4:03:51 PM AJDTContentProvider.selectionChanged(): Marking visualiser
content as out of date
4:11:28 PM AJDTContentProvider.selectionChanged(): Marking visualiser
content as out of date
4:11:31 PM AJDTContentProvider.selectionChanged(): Marking visualiser
content as out of date
4:14:47 PM AJDTContentProvider.selectionChanged(): Marking visualiser
content as out of date
4:14:51 PM AJDTContentProvider.selectionChanged(): Marking visualiser
content as out of date
4:18:52 PM AJDTContentProvider.selectionChanged(): Marking visualiser
content as out of date
4:18:55 PM AJDTContentProvider.selectionChanged(): Marking visualiser
content as out of date
4:19:04 PM AJDTContentProvider.selectionChanged(): Marking visualiser
content as out of date
4:21:47 PM AJDTContentProvider.selectionChanged(): Marking visualiser
content as out of date
Looking forward to it......
Tom]]>Tom Coupland2006-01-17T16:31:38-00:00Re: Aspects not being weaved!?
https://www.eclipse.org/forums/index.php/mv/msg/19019/61072/#msg_61072
Would it be possible to post a copy of your aspect here and a class or
two that you would expect it to match against? If you do that then I
will try to reproduce the problem and find out what's going on.
Thanks,
Sian
Tom Coupland wrote:
> Hi again,
>
> Heres the AspectJ Trace (something i was not aware of!) for my project,
> can anyone say whether hti si normal or?!
>
>
> 3:43:21 PM
> ============================================================ ===============================
>
> 3:43:21 PM Build kind = INCREMENTALBUILD
> 3:43:21 PM Project=Experiments kind of build requested
> =Incremental AspectJ compilation
> 3:43:21 PM build: Examined delta - source file changes in required
> project Experiments
> 3:43:22 PM Timer event: 609ms: Time to first compiled message
> 3:43:23 PM Timer event: 2005ms: Total time spent in AJDE
> 3:43:23 PM Timer event: 55ms: Create element map (10 rels in
> project: Experiments)
> 3:43:23 PM Types affected during build = 51
> 3:43:23 PM Timer event: 0ms: Add markers (0 markers)
> 3:43:23 PM Timer event: 2243ms: Total time spent in AJBuilder.build()
> 4:03:08 PM AJDTContentProvider.selectionChanged(): Marking
> visualiser content as out of date
> 4:03:28 PM AJDTContentProvider.selectionChanged(): Marking
> visualiser content as out of date
> 4:03:51 PM AJDTContentProvider.selectionChanged(): Marking
> visualiser content as out of date
> 4:11:28 PM AJDTContentProvider.selectionChanged(): Marking
> visualiser content as out of date
> 4:11:31 PM AJDTContentProvider.selectionChanged(): Marking
> visualiser content as out of date
> 4:14:47 PM AJDTContentProvider.selectionChanged(): Marking
> visualiser content as out of date
> 4:14:51 PM AJDTContentProvider.selectionChanged(): Marking
> visualiser content as out of date
> 4:18:52 PM AJDTContentProvider.selectionChanged(): Marking
> visualiser content as out of date
> 4:18:55 PM AJDTContentProvider.selectionChanged(): Marking
> visualiser content as out of date
> 4:19:04 PM AJDTContentProvider.selectionChanged(): Marking
> visualiser content as out of date
> 4:21:47 PM AJDTContentProvider.selectionChanged(): Marking
> visualiser content as out of date
>
>
> Looking forward to it......
> Tom
>]]>Sian January2006-01-18T09:26:25-00:00Re: Aspects not being weaved!?
https://www.eclipse.org/forums/index.php/mv/msg/19019/591865/#msg_591865
Would it be possible to post a copy of your aspect here and a class or
two that you would expect it to match against? If you do that then I
will try to reproduce the problem and find out what's going on.
Thanks,
Sian
Tom Coupland wrote:
> Hi again,
>
> Heres the AspectJ Trace (something i was not aware of!) for my project,
> can anyone say whether hti si normal or?!
>
>
> 3:43:21 PM
> ============================================================ ===============================
>
> 3:43:21 PM Build kind = INCREMENTALBUILD
> 3:43:21 PM Project=Experiments kind of build requested
> =Incremental AspectJ compilation
> 3:43:21 PM build: Examined delta - source file changes in required
> project Experiments
> 3:43:22 PM Timer event: 609ms: Time to first compiled message
> 3:43:23 PM Timer event: 2005ms: Total time spent in AJDE
> 3:43:23 PM Timer event: 55ms: Create element map (10 rels in
> project: Experiments)
> 3:43:23 PM Types affected during build = 51
> 3:43:23 PM Timer event: 0ms: Add markers (0 markers)
> 3:43:23 PM Timer event: 2243ms: Total time spent in AJBuilder.build()
> 4:03:08 PM AJDTContentProvider.selectionChanged(): Marking
> visualiser content as out of date
> 4:03:28 PM AJDTContentProvider.selectionChanged(): Marking
> visualiser content as out of date
> 4:03:51 PM AJDTContentProvider.selectionChanged(): Marking
> visualiser content as out of date
> 4:11:28 PM AJDTContentProvider.selectionChanged(): Marking
> visualiser content as out of date
> 4:11:31 PM AJDTContentProvider.selectionChanged(): Marking
> visualiser content as out of date
> 4:14:47 PM AJDTContentProvider.selectionChanged(): Marking
> visualiser content as out of date
> 4:14:51 PM AJDTContentProvider.selectionChanged(): Marking
> visualiser content as out of date
> 4:18:52 PM AJDTContentProvider.selectionChanged(): Marking
> visualiser content as out of date
> 4:18:55 PM AJDTContentProvider.selectionChanged(): Marking
> visualiser content as out of date
> 4:19:04 PM AJDTContentProvider.selectionChanged(): Marking
> visualiser content as out of date
> 4:21:47 PM AJDTContentProvider.selectionChanged(): Marking
> visualiser content as out of date
>
>
> Looking forward to it......
> Tom
>]]>Sian January2006-01-18T09:26:25-00:00Re: Aspects not being weaved!?
https://www.eclipse.org/forums/index.php/mv/msg/19019/61095/#msg_61095
Thanks for the interest. Heres a little example i've knocked up....
public static void main(String[] args){
if(AspectBasicTest.aMethod()){
System.out.println("Hooray the aspects are working");
}else{
System.out.println("Rubbish aspects are broken");
}
}
}
Needless to say i get the rubbish message!! One thing i noticed was the
rels in the project have increased from 12 to 14 when i made this....
11:35:20 AM Timer event: 62ms: Create element map (14 rels in project:
Experiments)
Heres some verison info..
11:14:32 AM AJDT Plugin Startup
AJDT version: 1.3.0 for Eclipse 3.1
AspectJ Compiler version: 1.5.0
org.aspectj.ajdt.core.compiler.BuildOptions.showweavemessage s = true
Eclipse SDK
Version: 3.1.0
Build id: I20050627-1435
One thing i've jst noticed is that if i look in the plugin details for my
eclipse some of the aspectj components are labeled as 1.3 where as others
are 1.5, is this normal?? I did jst dload this using the update site
Which i did after unpacking JBossIDE-1.5RC2-Bundle-linux-gtk.tar.gz and
unzipping JBossIDE-1.5RC2-ALL.zip in the eclipse dir.
I've also taken the procaution of deleting all aspectjrt.jar's that dont
live in the eclipse plugins dir.
Hope you can help me find a solution!!
Yours gratefully
Tom]]>Tom Coupland2006-01-18T11:46:25-00:00Re: Aspects not being weaved!?
https://www.eclipse.org/forums/index.php/mv/msg/19019/591871/#msg_591871
Thanks for the interest. Heres a little example i've knocked up....
public static void main(String[] args){
if(AspectBasicTest.aMethod()){
System.out.println("Hooray the aspects are working");
}else{
System.out.println("Rubbish aspects are broken");
}
}
}
Needless to say i get the rubbish message!! One thing i noticed was the
rels in the project have increased from 12 to 14 when i made this....
11:35:20 AM Timer event: 62ms: Create element map (14 rels in project:
Experiments)
Heres some verison info..
11:14:32 AM AJDT Plugin Startup
AJDT version: 1.3.0 for Eclipse 3.1
AspectJ Compiler version: 1.5.0
org.aspectj.ajdt.core.compiler.BuildOptions.showweavemessage s = true
Eclipse SDK
Version: 3.1.0
Build id: I20050627-1435
One thing i've jst noticed is that if i look in the plugin details for my
eclipse some of the aspectj components are labeled as 1.3 where as others
are 1.5, is this normal?? I did jst dload this using the update site
Which i did after unpacking JBossIDE-1.5RC2-Bundle-linux-gtk.tar.gz and
unzipping JBossIDE-1.5RC2-ALL.zip in the eclipse dir.
I've also taken the procaution of deleting all aspectjrt.jar's that dont
live in the eclipse plugins dir.
Hope you can help me find a solution!!
Yours gratefully
Tom]]>Tom Coupland2006-01-18T11:46:25-00:00Re: Aspects not being weaved!?
https://www.eclipse.org/forums/index.php/mv/msg/19019/591878/#msg_591878
Ok - your test program worked for me straight away. The 1.3 and 1.5
version numbers are correct - 1.5 is the compiler version and 1.3 is
AJDT. Can I ask you a few more questions about your setup?
1. Is the project an AspectJ project and does the aspect have a
filled-in AJ icon?
2. What did you mean about deleting aspectjrt.jar? Does your project
still have aspectjrt.jar on the classpath?
3. Are there any messages in the error log view that might be relevant?
4. Does your project have any compile errors in other packages that
could be causing the build to finish early?
Thanks,
Sian
Tom Coupland wrote:
> Hi Sian,
>
> Thanks for the interest. Heres a little example i've knocked up....
>
> package meta.experiments.aspects.basic;
>
> public aspect Truer {
>
> pointcut MethodCall() : call(public static boolean
> AspectBasicTest.aMethod ());
>
> boolean around() : MethodCall(){
> return true;
> }
> }
>
> package meta.experiments.aspects.basic;
>
> public class AspectBasicTest {
>
> public static boolean aMethod(){
> return false;
> }
>
> public static void main(String[] args){
> if(AspectBasicTest.aMethod()){
> System.out.println("Hooray the aspects are working");
> }else{
> System.out.println("Rubbish aspects are broken");
> }
> }
> }
>
> Needless to say i get the rubbish message!! One thing i noticed was the
> rels in the project have increased from 12 to 14 when i made this....
>
> 11:35:20 AM Timer event: 62ms: Create element map (14 rels in
> project: Experiments)
>
> Heres some verison info..
>
> 11:14:32 AM AJDT Plugin Startup
> AJDT version: 1.3.0 for Eclipse 3.1
> AspectJ Compiler version: 1.5.0
> org.aspectj.ajdt.core.compiler.BuildOptions.showweavemessage s = true
>
> Eclipse SDK
>
> Version: 3.1.0
> Build id: I20050627-1435
>
> One thing i've jst noticed is that if i look in the plugin details for
> my eclipse some of the aspectj components are labeled as 1.3 where as
> others are 1.5, is this normal?? I did jst dload this using the update site
> http://download.eclipse.org/technology/ajdt/31/update
>
> Which i did after unpacking JBossIDE-1.5RC2-Bundle-linux-gtk.tar.gz and
> unzipping JBossIDE-1.5RC2-ALL.zip in the eclipse dir.
>
> I've also taken the procaution of deleting all aspectjrt.jar's that dont
> live in the eclipse plugins dir.
>
> Hope you can help me find a solution!!
>
> Yours gratefully
>
> Tom
>]]>Sian January2006-01-18T13:30:23-00:00Re: Aspects not being weaved!?
https://www.eclipse.org/forums/index.php/mv/msg/19019/61119/#msg_61119
Ok - your test program worked for me straight away. The 1.3 and 1.5
version numbers are correct - 1.5 is the compiler version and 1.3 is
AJDT. Can I ask you a few more questions about your setup?
1. Is the project an AspectJ project and does the aspect have a
filled-in AJ icon?
2. What did you mean about deleting aspectjrt.jar? Does your project
still have aspectjrt.jar on the classpath?
3. Are there any messages in the error log view that might be relevant?
4. Does your project have any compile errors in other packages that
could be causing the build to finish early?
Thanks,
Sian
Tom Coupland wrote:
> Hi Sian,
>
> Thanks for the interest. Heres a little example i've knocked up....
>
> package meta.experiments.aspects.basic;
>
> public aspect Truer {
>
> pointcut MethodCall() : call(public static boolean
> AspectBasicTest.aMethod ());
>
> boolean around() : MethodCall(){
> return true;
> }
> }
>
> package meta.experiments.aspects.basic;
>
> public class AspectBasicTest {
>
> public static boolean aMethod(){
> return false;
> }
>
> public static void main(String[] args){
> if(AspectBasicTest.aMethod()){
> System.out.println("Hooray the aspects are working");
> }else{
> System.out.println("Rubbish aspects are broken");
> }
> }
> }
>
> Needless to say i get the rubbish message!! One thing i noticed was the
> rels in the project have increased from 12 to 14 when i made this....
>
> 11:35:20 AM Timer event: 62ms: Create element map (14 rels in
> project: Experiments)
>
> Heres some verison info..
>
> 11:14:32 AM AJDT Plugin Startup
> AJDT version: 1.3.0 for Eclipse 3.1
> AspectJ Compiler version: 1.5.0
> org.aspectj.ajdt.core.compiler.BuildOptions.showweavemessage s = true
>
> Eclipse SDK
>
> Version: 3.1.0
> Build id: I20050627-1435
>
> One thing i've jst noticed is that if i look in the plugin details for
> my eclipse some of the aspectj components are labeled as 1.3 where as
> others are 1.5, is this normal?? I did jst dload this using the update site
> http://download.eclipse.org/technology/ajdt/31/update
>
> Which i did after unpacking JBossIDE-1.5RC2-Bundle-linux-gtk.tar.gz and
> unzipping JBossIDE-1.5RC2-ALL.zip in the eclipse dir.
>
> I've also taken the procaution of deleting all aspectjrt.jar's that dont
> live in the eclipse plugins dir.
>
> Hope you can help me find a solution!!
>
> Yours gratefully
>
> Tom
>]]>Sian January2006-01-18T13:30:23-00:00Re: Aspects not being weaved!?
https://www.eclipse.org/forums/index.php/mv/msg/19019/591888/#msg_591888
Thanks for trying that out, nice to be sure!
Answers to quesitons
1. Yes to both. Got a little 'AJ' on the project and on the class too.
2. I had aspectJ in my boxes java installation, eclipse has its own, was
worried there might hav been some mix up so deleted it.
3. Far from getting any errors im seeing messages like this...
0 Join point 'method-call(boolean
meta.experiments.aspects.basic.AspectBasicTest.aMethod())' in Type
'meta.experiments.aspects.basic.AspectBasicTest' (AspectBasicTest.java:10)
advised by around advice from 'meta.experiments.aspects.basic.Truer'
(Truer.aj:7) Experiments January 18, 2006 5:10:25 PM
Got 1 of these 'info' messages in the Problems log for each of my aspect
joins. Theres no mention of a problem in the errLog view.
4. Was just about to answer this one with there was, but i got rid of
it.....
Checked and now its all working, feel abit sheepish now..........
Had no idea that having an error in a complete unrelated package wld cause
it to do that. Sounds abit troppy i know, but won't some sort of message
like "Theres an error in package X, aspectJ will not work at all" be
helpful? Am constantly running my proj with errors in (is quite large
now), so did'nt think it was a issue at all!
Owell, thanks allot Sian for working though something as trivial as this
with me.
Thanks allot!
Tom :)]]>Tom Coupland2006-01-18T17:20:25-00:00Re: Aspects not being weaved!?
https://www.eclipse.org/forums/index.php/mv/msg/19019/61143/#msg_61143
Thanks for trying that out, nice to be sure!
Answers to quesitons
1. Yes to both. Got a little 'AJ' on the project and on the class too.
2. I had aspectJ in my boxes java installation, eclipse has its own, was
worried there might hav been some mix up so deleted it.
3. Far from getting any errors im seeing messages like this...
0 Join point 'method-call(boolean
meta.experiments.aspects.basic.AspectBasicTest.aMethod())' in Type
'meta.experiments.aspects.basic.AspectBasicTest' (AspectBasicTest.java:10)
advised by around advice from 'meta.experiments.aspects.basic.Truer'
(Truer.aj:7) Experiments January 18, 2006 5:10:25 PM
Got 1 of these 'info' messages in the Problems log for each of my aspect
joins. Theres no mention of a problem in the errLog view.
4. Was just about to answer this one with there was, but i got rid of
it.....
Checked and now its all working, feel abit sheepish now..........
Had no idea that having an error in a complete unrelated package wld cause
it to do that. Sounds abit troppy i know, but won't some sort of message
like "Theres an error in package X, aspectJ will not work at all" be
helpful? Am constantly running my proj with errors in (is quite large
now), so did'nt think it was a issue at all!
Owell, thanks allot Sian for working though something as trivial as this
with me.
Thanks allot!
Tom :)]]>Tom Coupland2006-01-18T17:20:25-00:00Re: Aspects not being weaved!?
https://www.eclipse.org/forums/index.php/mv/msg/19019/591897/#msg_591897
I'm glad you got it sorted in the end. The suggestion you made about
having some kind of error if the project hasn't been woven does make
sense. A compiler error would probably be best (in the problems view)
rather than a pop-up or anything else. Why don't you raise an AspectJ
enhancement - https://bugs.eclipse.org/bugs/enter_bug.cgi?product=AspectJ
Sian
Tom Coupland wrote:
> Hi Sian,
>
> Thanks for trying that out, nice to be sure!
>
> Answers to quesitons
>
> 1. Yes to both. Got a little 'AJ' on the project and on the class too.
> 2. I had aspectJ in my boxes java installation, eclipse has its own, was
> worried there might hav been some mix up so deleted it.
> 3. Far from getting any errors im seeing messages like this...
>
> 0 Join point 'method-call(boolean
> meta.experiments.aspects.basic.AspectBasicTest.aMethod())' in Type
> 'meta.experiments.aspects.basic.AspectBasicTest'
> (AspectBasicTest.java:10) advised by around advice from
> 'meta.experiments.aspects.basic.Truer' (Truer.aj:7)
> Experiments January 18, 2006 5:10:25 PM
>
> Got 1 of these 'info' messages in the Problems log for each of my aspect
> joins. Theres no mention of a problem in the errLog view.
>
> 4. Was just about to answer this one with there was, but i got rid of
> it.....
> Checked and now its all working, feel abit sheepish now..........
>
> Had no idea that having an error in a complete unrelated package wld
> cause it to do that. Sounds abit troppy i know, but won't some sort of
> message like "Theres an error in package X, aspectJ will not work at
> all" be helpful? Am constantly running my proj with errors in (is quite
> large now), so did'nt think it was a issue at all!
>
> Owell, thanks allot Sian for working though something as trivial as this
> with me.
>
> Thanks allot!
>
> Tom :)
>
>]]>Sian January2006-01-19T10:54:28-00:00Re: Aspects not being weaved!?
https://www.eclipse.org/forums/index.php/mv/msg/19019/61167/#msg_61167
I'm glad you got it sorted in the end. The suggestion you made about
having some kind of error if the project hasn't been woven does make
sense. A compiler error would probably be best (in the problems view)
rather than a pop-up or anything else. Why don't you raise an AspectJ
enhancement - https://bugs.eclipse.org/bugs/enter_bug.cgi?product=AspectJ
Sian
Tom Coupland wrote:
> Hi Sian,
>
> Thanks for trying that out, nice to be sure!
>
> Answers to quesitons
>
> 1. Yes to both. Got a little 'AJ' on the project and on the class too.
> 2. I had aspectJ in my boxes java installation, eclipse has its own, was
> worried there might hav been some mix up so deleted it.
> 3. Far from getting any errors im seeing messages like this...
>
> 0 Join point 'method-call(boolean
> meta.experiments.aspects.basic.AspectBasicTest.aMethod())' in Type
> 'meta.experiments.aspects.basic.AspectBasicTest'
> (AspectBasicTest.java:10) advised by around advice from
> 'meta.experiments.aspects.basic.Truer' (Truer.aj:7)
> Experiments January 18, 2006 5:10:25 PM
>
> Got 1 of these 'info' messages in the Problems log for each of my aspect
> joins. Theres no mention of a problem in the errLog view.
>
> 4. Was just about to answer this one with there was, but i got rid of
> it.....
> Checked and now its all working, feel abit sheepish now..........
>
> Had no idea that having an error in a complete unrelated package wld
> cause it to do that. Sounds abit troppy i know, but won't some sort of
> message like "Theres an error in package X, aspectJ will not work at
> all" be helpful? Am constantly running my proj with errors in (is quite
> large now), so did'nt think it was a issue at all!
>
> Owell, thanks allot Sian for working though something as trivial as this
> with me.
>
> Thanks allot!
>
> Tom :)
>
>]]>Sian January2006-01-19T10:54:28-00:00