Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » No advice markers or cross references
No advice markers or cross references [message #72827] Thu, 18 December 2008 17:01 Go to next message
Angus Monro is currently offline Angus Monro
Messages: 2
Registered: July 2009
Junior Member
Hi all,

I've just downloaded the latest Ganymede (3.4.1 JEE) & AJDT (1.6.1), and
am trying-out the Hello World of the Basic Tutorial in the AspectJ
Development User Guide. I can successfully run the interwoven program,
getting "Hello World" printed, but
1. the Cross References view shows me nothing except for the aspect itself
(or the class, when it's selected) i.e. doesn't give me a tree view
beneath the aspect (or class) to show cross-references; and
2. the editor view for both the .java or .aj file isn't showing advice
markers.

Regarding the latter, I've explicitly opened the files with the
AspectJ/Java editor, just to be sure I'm using the right editor. I can't
see anything obviously awry in the preferences (but then, I'm a newbie).

My installation includes Maven, which is also giving me hassles, but I
wouldn't have thought that's relevant to this problem.

The Error Log isn't showing anything that looks related (lots of Mylyn
stuff, though).

Anyone have any ideas?

Thanks in advance.
Re: No advice markers or cross references [message #72845 is a reply to message #72827] Thu, 18 December 2008 18:59 Go to previous messageGo to next message
Eclipse User
Originally posted by: andrew.eisenberg.springsource.com

Don't know what's going on.

You can see if any exceptions are thrown during Eclipse startup. My guess
is that an exception is being thrown early on that prevents the loading of
AJDT.

Report back here if you find anything suspicious.
Re: No advice markers or cross references [message #73033 is a reply to message #72845] Tue, 20 January 2009 15:08 Go to previous messageGo to next message
Steve Kuo is currently offline Steve Kuo
Messages: 8
Registered: July 2009
Junior Member
I also encounter missing advise markers in editor. Here are my
investigation result.

Setup
=====

Eclipse 3.4.1
ApsectJ (JDT Weaving) 1.6.2.20090105113441


I create a new sample project packaged with AJDT -- TJP Example. The
source code is in /src/tjp and the advise markers appears both in
Demo.java and GetInfo.aj.

As I am using maven 2 in my work, I then created
/src/main/java/com/abc/tjp and duplicated Demo.java and GetInfo.aj in this
directory. The advise markers do not appear for these files even they do
for files in /src/tjp.

Thanks in advance for your help.
Re: No advice markers or cross references [message #73052 is a reply to message #73033] Tue, 20 January 2009 19:52 Go to previous messageGo to next message
Eclipse User
Originally posted by: andrew.eisenberg.springsource.com

Some simple things to look at to make sure:

1. is the AspectJ nature enabled?
2. is the AJBuilder included instead of JavaBuilder (look at the .project
file)?
3. Any errors in the error log?
4. Any problems in the problem view?
5. Open up the AJDT Event trace view and do a full build. What do you see?
6. Edit the options for the event trace view so that all things are logged.
And try again. What do you see?
7. Are the package statements in the two files correct? (Silly question,
but for legacy reasons, ajc doesn't consider this an error, but AJDT doesn't
recognize it).

If none of these helps you fix your problem, paste the contents of your
event trace here and I will look at it.
Re: No advice markers or cross references [message #73070 is a reply to message #73052] Tue, 20 January 2009 20:34 Go to previous messageGo to next message
Steve Kuo is currently offline Steve Kuo
Messages: 8
Registered: July 2009
Junior Member
Attached is the output in AJDT Event Trace. It indicated that three .aj
files were compiled and used to weave the target .java files correctly.
Running the main() in the two Demo.java indicate that they are woven
correctly. It's just the markers are not showing up for
com.eharmony.tjp.*.aj(.java) files.

17:25:00 Startup information:
AJDT version: 1.6.2.20090105113441 for Eclipse 3.3
AspectJ Compiler version: 1.6.3
usingVisualiser=true
usingXref=true
usingCUprovider=true
ajde.version.at.previous.startup = @AJDEVERSION@
promptForAutoOpenCrossReference = false
org.eclipse.ajdt.internal.ui.tracing.checked.filters = set:
Compiler,Compiler / Progress messages,Compiler / Task list
messages,Builder,Builder / Classpath
17:25:35 Removed problems and tasks for project TJPExample
17:25:35 Builder: Tidied output folder(s), removed class files and derived
resources
17:25:35 Timer event: 30ms: Delete markers: TJPExample (Finished deleting
markers for TJPExample)
17:25:35 Compiler configuration for project TJPExample doesn't know
previous state, so assuming EVERYTHING has changed.
17:25:35
============================================================ ===============================
17:25:35 Build kind = FULLBUILD
17:25:35 Project=TJPExample, kind of build requested=Full AspectJ
compilation
17:25:35 Builder: Tidied output folder(s), removed class files and derived
resources
17:25:35 Classpath =
/home/skuo/workspace/TJPExample/target/classes:/home/skuo/wo rkspace/TJPExample/target/test-classes:/usr/local/jdk1.6.0_0 6/jre/lib/resources.jar:/usr/local/jdk1.6.0_06/jre/lib/rt.ja r:/usr/local/jdk1.6.0_06/jre/lib/jsse.jar:/usr/local/jdk1.6. 0_06/jre/lib/jce.jar:/usr/local/jdk1.6.0_06/jre/lib/charsets .jar:/usr/local/jdk1.6.0_06/jre/lib/ext/sunjce_provider.jar: /usr/local/jdk1.6.0_06/jre/lib/ext/sunpkcs11.jar:/usr/local/ jdk1.6.0_06/jre/lib/ext/dnsns.jar:/usr/local/jdk1.6.0_06/jre /lib/ext/localedata.jar:/usr/local/eclipse-3.4.1/plugins/org .aspectj.runtime_1.6.3.20081216194500/aspectjrt.jar:
17:25:35 Timer event: 13ms: Pre compile
17:25:35 Compiler configuration for project TJPExample has been read by
compiler. Resetting.
17:25:35 Configuration was [PROJECTSOURCEFILES_CHANGED,
JAVAOPTIONS_CHANGED, ASPECTPATH_CHANGED, CLASSPATH_CHANGED,
INPATH_CHANGED, NONSTANDARDOPTIONS_CHANGED, OUTJAR_CHANGED,
PROJECTSOURCERESOURCES_CHANGED, OUTPUTDESTINATIONS_CHANGED, INJARS_CHANGED]
17:25:35 Resetting list of modified source files. Was null
17:25:35 Preparing for build: not going to be incremental because no
successful previous full build
17:25:35 AJC: compiling source files
17:25:35 Timer event: 196ms: Time to first compiled message
17:25:35 AJC: compiled:
/home/skuo/workspace/TJPExample/src/tjp/GetInfoAspect.aj
17:25:35 AJC: compiled:
/home/skuo/workspace/TJPExample/src/main/java/com/eharmony/t jp/GetInfoAspect.aj
17:25:35 AJC: compiled:
/home/skuo/workspace/TJPExample/src/main/aspect/com/eharmony /tjp/DemoAspect.aj
17:25:35 Timer event: 212ms: Time to first woven message
17:25:35 AJC: woven aspect tjp.GetInfoAspect (from
/home/skuo/workspace/TJPExample/src/tjp/GetInfoAspect.aj)
17:25:35 AJC: woven aspect com.eharmony.tjp.GetInfoAspect (from
/home/skuo/workspace/TJPExample/src/main/java/com/eharmony/t jp/GetInfoAspect.aj)
17:25:35 AJC: woven aspect com.eharmony.tjp.DemoAspect (from
/home/skuo/workspace/TJPExample/src/main/aspect/com/eharmony /tjp/DemoAspect.aj)
17:25:36 AJC: compiled: /home/skuo/workspace/TJPExample/src/tjp/Demo.java
17:25:36 AJC: woven class tjp.Demo (from
/home/skuo/workspace/TJPExample/src/tjp/Demo.java)
17:25:36 AJC: compiled:
/home/skuo/workspace/TJPExample/src/test/java/com/eharmony/t jp/SimpleTest.java
17:25:36 AJC: woven class com.eharmony.tjp.SimpleTest (from
/home/skuo/workspace/TJPExample/src/test/java/com/eharmony/t jp/SimpleTest.java)
17:25:36 AJC: compiled:
/home/skuo/workspace/TJPExample/src/main/java/com/eharmony/t jp/Demo.java
17:25:36 AJC: woven class com.eharmony.tjp.Demo (from
/home/skuo/workspace/TJPExample/src/main/java/com/eharmony/t jp/Demo.java)
17:25:36 AspectJ reports build successful, build was: FULL
17:25:36 AJDE Callback: finish. Was full build: true
17:25:36 Timer event: 300ms: Total time spent in AJDE
17:25:36 Timer event: 4ms: Refresh after build
17:25:36 Types affected during build = 6
17:25:36 Timer event: 318ms: Total time spent in AJBuilder.build()
17:25:36 Timer event: 1ms: Delete markers: TJPExample (Finished deleting
markers for TJPExample)
17:25:36 Timer event: 22ms: Create markers: TJPExample (Finished creating
markers for TJPExample)
17:25:36 Timer event: 0ms: Post compile
Re: No advice markers or cross references [message #73087 is a reply to message #73070] Tue, 20 January 2009 23:35 Go to previous messageGo to next message
Eclipse User
Originally posted by: andrew.eisenberg.springsource.com

Looks like it is being compiled properly.

Do you use any linked folders? Creating markers for linked folders does not
always work properly

Also, did you say that the only thing different between the version that
works and the one that doesn't is that the source folder is several levels
deep?


On 20/01/09 5:34 PM, in article
0e0bd8a4ac68c2590c4b36494900faf6$1@www.eclipse.org, "Steve Kuo"
<kuosenhao@yahoo.com> wrote:

> Attached is the output in AJDT Event Trace. It indicated that three .aj
> files were compiled and used to weave the target .java files correctly.
> Running the main() in the two Demo.java indicate that they are woven
> correctly. It's just the markers are not showing up for
> com.eharmony.tjp.*.aj(.java) files.
>
> 17:25:00 Startup information:
> AJDT version: 1.6.2.20090105113441 for Eclipse 3.3
> AspectJ Compiler version: 1.6.3
> usingVisualiser=true
> usingXref=true
> usingCUprovider=true
> ajde.version.at.previous.startup = @AJDEVERSION@
> promptForAutoOpenCrossReference = false
> org.eclipse.ajdt.internal.ui.tracing.checked.filters = set:
> Compiler,Compiler / Progress messages,Compiler / Task list
> messages,Builder,Builder / Classpath
> 17:25:35 Removed problems and tasks for project TJPExample
> 17:25:35 Builder: Tidied output folder(s), removed class files and derived
> resources
> 17:25:35 Timer event: 30ms: Delete markers: TJPExample (Finished deleting
> markers for TJPExample)
> 17:25:35 Compiler configuration for project TJPExample doesn't know
> previous state, so assuming EVERYTHING has changed.
> 17:25:35
> ============================================================ ==================
> =============
> 17:25:35 Build kind = FULLBUILD
> 17:25:35 Project=TJPExample, kind of build requested=Full AspectJ
> compilation
> 17:25:35 Builder: Tidied output folder(s), removed class files and derived
> resources
> 17:25:35 Classpath =
> /home/skuo/workspace/TJPExample/target/classes:/home/skuo/wo rkspace/TJPExample
> /target/test-classes:/usr/local/jdk1.6.0_06/jre/lib/resource s.jar:/usr/local/j
> dk1.6.0_06/jre/lib/rt.jar:/usr/local/jdk1.6.0_06/jre/lib/jss e.jar:/usr/local/j
> dk1.6.0_06/jre/lib/jce.jar:/usr/local/jdk1.6.0_06/jre/lib/ch arsets.jar:/usr/lo
> cal/jdk1.6.0_06/jre/lib/ext/sunjce_provider.jar:/usr/local/j dk1.6.0_06/jre/lib
> /ext/sunpkcs11.jar:/usr/local/jdk1.6.0_06/jre/lib/ext/dnsns. jar:/usr/local/jdk
> 1.6.0_06/jre/lib/ext/localedata.jar:/usr/local/eclipse-3.4.1 /plugins/org.aspec
> tj.runtime_1.6.3.20081216194500/aspectjrt.jar:
> 17:25:35 Timer event: 13ms: Pre compile
> 17:25:35 Compiler configuration for project TJPExample has been read by
> compiler. Resetting.
> 17:25:35 Configuration was [PROJECTSOURCEFILES_CHANGED,
> JAVAOPTIONS_CHANGED, ASPECTPATH_CHANGED, CLASSPATH_CHANGED,
> INPATH_CHANGED, NONSTANDARDOPTIONS_CHANGED, OUTJAR_CHANGED,
> PROJECTSOURCERESOURCES_CHANGED, OUTPUTDESTINATIONS_CHANGED, INJARS_CHANGED]
> 17:25:35 Resetting list of modified source files. Was null
> 17:25:35 Preparing for build: not going to be incremental because no
> successful previous full build
> 17:25:35 AJC: compiling source files
> 17:25:35 Timer event: 196ms: Time to first compiled message
> 17:25:35 AJC: compiled:
> /home/skuo/workspace/TJPExample/src/tjp/GetInfoAspect.aj
> 17:25:35 AJC: compiled:
>
/home/skuo/workspace/TJPExample/src/main/java/com/eharmony/t jp/GetInfoAspect.a >
j
> 17:25:35 AJC: compiled:
> /home/skuo/workspace/TJPExample/src/main/aspect/com/eharmony /tjp/DemoAspect.aj
> 17:25:35 Timer event: 212ms: Time to first woven message
> 17:25:35 AJC: woven aspect tjp.GetInfoAspect (from
> /home/skuo/workspace/TJPExample/src/tjp/GetInfoAspect.aj)
> 17:25:35 AJC: woven aspect com.eharmony.tjp.GetInfoAspect (from
> /home/skuo/workspace/TJPExample/src/main/java/com/eharmony/t jp/GetInfoAspect.a
> j)
> 17:25:35 AJC: woven aspect com.eharmony.tjp.DemoAspect (from
>
/home/skuo/workspace/TJPExample/src/main/aspect/com/eharmony /tjp/DemoAspect.aj >
)
> 17:25:36 AJC: compiled: /home/skuo/workspace/TJPExample/src/tjp/Demo.java
> 17:25:36 AJC: woven class tjp.Demo (from
> /home/skuo/workspace/TJPExample/src/tjp/Demo.java)
> 17:25:36 AJC: compiled:
> /home/skuo/workspace/TJPExample/src/test/java/com/eharmony/t jp/SimpleTest.java
> 17:25:36 AJC: woven class com.eharmony.tjp.SimpleTest (from
>
/home/skuo/workspace/TJPExample/src/test/java/com/eharmony/t jp/SimpleTest.java >
)
> 17:25:36 AJC: compiled:
> /home/skuo/workspace/TJPExample/src/main/java/com/eharmony/t jp/Demo.java
> 17:25:36 AJC: woven class com.eharmony.tjp.Demo (from
> /home/skuo/workspace/TJPExample/src/main/java/com/eharmony/t jp/Demo.java)
> 17:25:36 AspectJ reports build successful, build was: FULL
> 17:25:36 AJDE Callback: finish. Was full build: true
> 17:25:36 Timer event: 300ms: Total time spent in AJDE
> 17:25:36 Timer event: 4ms: Refresh after build
> 17:25:36 Types affected during build = 6
> 17:25:36 Timer event: 318ms: Total time spent in AJBuilder.build()
> 17:25:36 Timer event: 1ms: Delete markers: TJPExample (Finished deleting
> markers for TJPExample)
> 17:25:36 Timer event: 22ms: Create markers: TJPExample (Finished creating
> markers for TJPExample)
> 17:25:36 Timer event: 0ms: Post compile
>
>
Re: No advice markers or cross references [message #73104 is a reply to message #73087] Thu, 22 January 2009 12:20 Go to previous messageGo to next message
Steve Kuo is currently offline Steve Kuo
Messages: 8
Registered: July 2009
Junior Member
If linked folder means soft linked folder on Linux, then the answer is no.


The only difference between the code with markers and the one without is
that the one without is several level deeper.

I can zip up the project and attach it if it can be of use.
Re: No advice markers or cross references [message #73122 is a reply to message #73104] Thu, 22 January 2009 17:49 Go to previous messageGo to next message
Eclipse User
Originally posted by: andrew.eisenberg.springsource.com

Yes. Please attach.
Re: No advice markers or cross references [message #73139 is a reply to message #73122] Fri, 23 January 2009 12:11 Go to previous messageGo to next message
Steve Kuo is currently offline Steve Kuo
Messages: 8
Registered: July 2009
Junior Member
It appears that there is no way to attach a zipped project file. One way
to address this problem is for you to send me your address to
bookofthree@hotmail.com and I will send the zip file to you.

Any other solution is most welcome.
Re: No advice markers or cross references [message #73424 is a reply to message #73139] Mon, 09 March 2009 15:54 Go to previous messageGo to next message
paul freeman is currently offline paul freeman
Messages: 6
Registered: July 2009
Junior Member
I have run into this same issue. I have a project that will not show any
markers or cross references when compiled with Eclipse 3.4 and the latest
ajdt for aspectj 1.6 (org.aspectj.ajde_1.6.4.20090106083800). If I
compile the same project with Eclipse 3.2 and aspectj 1.5
(org.aspectj.ajde_1.5.3.200611221118), it works as expected showing cross
refereneces and markers. When compiled in eclipse 3.4 I have turned on
the option to export weaving info to the problems pain, and there I see
that it is indeed weaving into my code. So this would appear to be a bug
in this release. I have tried it with both linked and unlinked source
folders and have experienced the same result.
Re: No advice markers or cross references [message #73442 is a reply to message #73424] Tue, 10 March 2009 09:57 Go to previous messageGo to next message
paul freeman is currently offline paul freeman
Messages: 6
Registered: July 2009
Junior Member
One more piece of info... in the eclipse 3.4 environment, if I turn off
JDT Weaving, I get markers but still no cross cutting information.

If I turn on the AJDT Event Trace view I get the following - notice the
last 3 statements (Delete markers, create markers, delete markers):
9:53:55 Startup information:
AJDT version: 1.6.3.20090122141228 for Eclipse 3.3
AspectJ Compiler version: DEVELOPMENT
usingVisualiser=true
usingXref=true
usingCUprovider=false
org.eclipse.ajdt.internal.ui.xref.checked.filters = set:
ajde.version.at.previous.startup = @AJDEVERSION@
9:54:24 Removed problems and tasks for project WFC_Monitoring_POC
9:54:25 Builder: Tidied output folder(s), removed class files and derived
resources
9:54:25 Compiler configuration for project WFC_Monitoring_POC doesn't know
previous state, so assuming EVERYTHING has changed.
9:54:25
============================================================ ===============================
9:54:25 Build kind = FULLBUILD
9:54:25 Project=WFC_Monitoring_POC, kind of build requested=Full AspectJ
compilation
9:54:25 Builder: Tidied output folder(s), removed class files and derived
resources
9:54:25 Timer event: 62ms: Pre compile
9:54:25 Compiler configuration for project WFC_Monitoring_POC has been
read by compiler. Resetting.
9:54:25 Configuration was [PROJECTSOURCEFILES_CHANGED,
JAVAOPTIONS_CHANGED, ASPECTPATH_CHANGED, CLASSPATH_CHANGED,
INPATH_CHANGED, NONSTANDARDOPTIONS_CHANGED, OUTJAR_CHANGED,
PROJECTSOURCERESOURCES_CHANGED, OUTPUTDESTINATIONS_CHANGED, INJARS_CHANGED]
9:54:25 Resetting list of modified source files. Was null
9:54:25 Preparing for build: not going to be incremental because no
successful previous full build
9:54:27 Timer event: 2328ms: Time to first compiled message
9:54:27 Timer event: 2531ms: Time to first woven message
9:54:37 AspectJ reports build successful, build was: FULL
9:54:37 AJDE Callback: finish. Was full build: true
9:54:37 Timer event: 11688ms: Total time spent in AJDE
9:54:37 Timer event: 390ms: Refresh after build
9:54:37 Types affected during build = 458
9:54:37 Timer event: 0ms: Post compile
9:54:37 Timer event: 12421ms: Total time spent in AJBuilder.build()
9:54:37 Timer event: 15ms: Delete markers: WFC_Monitoring_POC (Finished
deleting markers for WFC_Monitoring_POC)
9:54:38 Timer event: 578ms: Create markers: WFC_Monitoring_POC (Finished
creating markers for WFC_Monitoring_POC)
9:54:38 Timer event: 78ms: Delete markers: WFC_Monitoring_POC (Finished
deleting markers for WFC_Monitoring_POC)
Re: No advice markers or cross references [message #73461 is a reply to message #73442] Tue, 10 March 2009 11:13 Go to previous messageGo to next message
paul freeman is currently offline paul freeman
Messages: 6
Registered: July 2009
Junior Member
sigh... JDT does not seem to have an impact. The order of the Delete
markers statements varies from build to build regardless of whether or not
JDT is enabled. The order of their output definitely affects whether or
not the markers show up. Here is the AJDT Event Trace output for one that
succeeded (i.e. showed markers after the compile) with JDT on (I can't
seem to figure out a way to get cross references to show up):

11:7:44 Startup information:
AJDT version: 1.6.3.20090122141228 for Eclipse 3.3
AspectJ Compiler version: DEVELOPMENT
usingVisualiser=true
usingXref=true
usingCUprovider=true
org.aspectj.ajdt.core.compiler.BuildOptions.showweavemessage s = true
ajde.version.at.previous.startup = @AJDEVERSION@
org.aspectj.ajdt.core.compiler.weaver.outxml = true
org.eclipse.ajdt.internal.ui.tracing.checked.filters = set:
Compiler,Builder
org.eclipse.ajdt.internal.ui.xref.checked.filters = set:
11:8:1 Removed problems and tasks for project WFC_Monitoring_POC
11:8:5 Builder: Tidied output folder(s), removed class files and derived
resources
11:8:5 Compiler configuration for project WFC_Monitoring_POC doesn't know
previous state, so assuming EVERYTHING has changed.
11:8:6
============================================================ ===============================
11:8:6 Build kind = FULLBUILD
11:8:6 Project=WFC_Monitoring_POC, kind of build requested=Full AspectJ
compilation
11:8:6 Builder: Tidied output folder(s), removed class files and derived
resources
11:8:6 Timer event: 203ms: Pre compile
11:8:7 Compiler configuration for project WFC_Monitoring_POC has been read
by compiler. Resetting.
11:8:7 Configuration was [PROJECTSOURCEFILES_CHANGED,
JAVAOPTIONS_CHANGED, ASPECTPATH_CHANGED, CLASSPATH_CHANGED,
INPATH_CHANGED, NONSTANDARDOPTIONS_CHANGED, OUTJAR_CHANGED,
PROJECTSOURCERESOURCES_CHANGED, OUTPUTDESTINATIONS_CHANGED, INJARS_CHANGED]
11:8:7 Resetting list of modified source files. Was null
11:8:7 Preparing for build: not going to be incremental because no
successful previous full build
11:8:15 Timer event: 8109ms: Time to first compiled message
11:8:15 Timer event: 8469ms: Time to first woven message
11:8:27 AspectJ reports build successful, build was: FULL
11:8:27 AJDE Callback: finish. Was full build: true
11:8:27 Timer event: 20953ms: Total time spent in AJDE
11:8:28 Timer event: 547ms: Refresh after build
11:8:28 Types affected during build = 458
11:8:28 Timer event: 0ms: Post compile
11:8:28 Timer event: 22141ms: Total time spent in AJBuilder.build()
11:8:29 Timer event: 0ms: Delete markers: WFC_Monitoring_POC (Finished
deleting markers for WFC_Monitoring_POC)
11:8:29 Timer event: 0ms: Delete markers: WFC_Monitoring_POC (Finished
deleting markers for WFC_Monitoring_POC)
11:8:29 Timer event: 265ms: Create markers: WFC_Monitoring_POC (Finished
creating markers for WFC_Monitoring_POC)
Re: No advice markers or cross references [message #73498 is a reply to message #73461] Sat, 14 March 2009 12:58 Go to previous message
Eclipse User
Originally posted by: andrew.eisenberg.springsource.com

Hi Paul,

Apologies for not answering earlier, but I've been away. This newsgroup is
not used very often. You can try the mailing list instead and probably get
a quicker response.

I have not seen this problem before. For some reason, the Delete markers
job is getting called a second time after the markers are being created.
Some questions:

* Are you running on RSA?

* Do you have any errors in the error log?

* When you do see the markers generated, can you use them for navigation
(eg- click on them and follow the "advised by" link)?

* Are you saying that nothing shows up in the cross references view even
when markers are generated?

* Is this happening for all projects, or for just the one you posted the
event trace for? Try creating a simple AJ project with a single advice and
see what happens.

* Can you attach a simple project that I can look at? You can create a bug
on bugzilla at https://bugs.eclipse.org/bugs/ and attach the project.

* Also, try updating to the latest dev build (it is the 1.6.4 RC and will
become the final release next week). It contains a crosscutting model
sanity checker. If you compile your code with the event trace enabled, then
it will go through the model and look for obvious problems with it. Try
this and paste the results here.

Hope this can help,
--a
Re: No advice markers or cross references [message #599459 is a reply to message #72827] Thu, 18 December 2008 18:59 Go to previous message
Andrew Eisenberg is currently offline Andrew Eisenberg
Messages: 77
Registered: July 2009
Member
Don't know what's going on.

You can see if any exceptions are thrown during Eclipse startup. My guess
is that an exception is being thrown early on that prevents the loading of
AJDT.

Report back here if you find anything suspicious.
Re: No advice markers or cross references [message #599554 is a reply to message #72845] Tue, 20 January 2009 15:08 Go to previous message
Steve Kuo is currently offline Steve Kuo
Messages: 8
Registered: July 2009
Junior Member
I also encounter missing advise markers in editor. Here are my
investigation result.

Setup
=====

Eclipse 3.4.1
ApsectJ (JDT Weaving) 1.6.2.20090105113441


I create a new sample project packaged with AJDT -- TJP Example. The
source code is in /src/tjp and the advise markers appears both in
Demo.java and GetInfo.aj.

As I am using maven 2 in my work, I then created
/src/main/java/com/abc/tjp and duplicated Demo.java and GetInfo.aj in this
directory. The advise markers do not appear for these files even they do
for files in /src/tjp.

Thanks in advance for your help.
Re: No advice markers or cross references [message #599564 is a reply to message #73033] Tue, 20 January 2009 19:52 Go to previous message
Andrew Eisenberg is currently offline Andrew Eisenberg
Messages: 77
Registered: July 2009
Member
Some simple things to look at to make sure:

1. is the AspectJ nature enabled?
2. is the AJBuilder included instead of JavaBuilder (look at the .project
file)?
3. Any errors in the error log?
4. Any problems in the problem view?
5. Open up the AJDT Event trace view and do a full build. What do you see?
6. Edit the options for the event trace view so that all things are logged.
And try again. What do you see?
7. Are the package statements in the two files correct? (Silly question,
but for legacy reasons, ajc doesn't consider this an error, but AJDT doesn't
recognize it).

If none of these helps you fix your problem, paste the contents of your
event trace here and I will look at it.
Re: No advice markers or cross references [message #599571 is a reply to message #73052] Tue, 20 January 2009 20:34 Go to previous message
Steve Kuo is currently offline Steve Kuo
Messages: 8
Registered: July 2009
Junior Member
Attached is the output in AJDT Event Trace. It indicated that three .aj
files were compiled and used to weave the target .java files correctly.
Running the main() in the two Demo.java indicate that they are woven
correctly. It's just the markers are not showing up for
com.eharmony.tjp.*.aj(.java) files.

17:25:00 Startup information:
AJDT version: 1.6.2.20090105113441 for Eclipse 3.3
AspectJ Compiler version: 1.6.3
usingVisualiser=true
usingXref=true
usingCUprovider=true
ajde.version.at.previous.startup = @AJDEVERSION@
promptForAutoOpenCrossReference = false
org.eclipse.ajdt.internal.ui.tracing.checked.filters = set:
Compiler,Compiler / Progress messages,Compiler / Task list
messages,Builder,Builder / Classpath
17:25:35 Removed problems and tasks for project TJPExample
17:25:35 Builder: Tidied output folder(s), removed class files and derived
resources
17:25:35 Timer event: 30ms: Delete markers: TJPExample (Finished deleting
markers for TJPExample)
17:25:35 Compiler configuration for project TJPExample doesn't know
previous state, so assuming EVERYTHING has changed.
17:25:35
============================================================ ===============================
17:25:35 Build kind = FULLBUILD
17:25:35 Project=TJPExample, kind of build requested=Full AspectJ
compilation
17:25:35 Builder: Tidied output folder(s), removed class files and derived
resources
17:25:35 Classpath =
/home/skuo/workspace/TJPExample/target/classes:/home/skuo/wo rkspace/TJPExample/target/test-classes:/usr/local/jdk1.6.0_0 6/jre/lib/resources.jar:/usr/local/jdk1.6.0_06/jre/lib/rt.ja r:/usr/local/jdk1.6.0_06/jre/lib/jsse.jar:/usr/local/jdk1.6. 0_06/jre/lib/jce.jar:/usr/local/jdk1.6.0_06/jre/lib/charsets .jar:/usr/local/jdk1.6.0_06/jre/lib/ext/sunjce_provider.jar: /usr/local/jdk1.6.0_06/jre/lib/ext/sunpkcs11.jar:/usr/local/ jdk1.6.0_06/jre/lib/ext/dnsns.jar:/usr/local/jdk1.6.0_06/jre /lib/ext/localedata.jar:/usr/local/eclipse-3.4.1/plugins/org .aspectj.runtime_1.6.3.20081216194500/aspectjrt.jar:
17:25:35 Timer event: 13ms: Pre compile
17:25:35 Compiler configuration for project TJPExample has been read by
compiler. Resetting.
17:25:35 Configuration was [PROJECTSOURCEFILES_CHANGED,
JAVAOPTIONS_CHANGED, ASPECTPATH_CHANGED, CLASSPATH_CHANGED,
INPATH_CHANGED, NONSTANDARDOPTIONS_CHANGED, OUTJAR_CHANGED,
PROJECTSOURCERESOURCES_CHANGED, OUTPUTDESTINATIONS_CHANGED, INJARS_CHANGED]
17:25:35 Resetting list of modified source files. Was null
17:25:35 Preparing for build: not going to be incremental because no
successful previous full build
17:25:35 AJC: compiling source files
17:25:35 Timer event: 196ms: Time to first compiled message
17:25:35 AJC: compiled:
/home/skuo/workspace/TJPExample/src/tjp/GetInfoAspect.aj
17:25:35 AJC: compiled:
/home/skuo/workspace/TJPExample/src/main/java/com/eharmony/t jp/GetInfoAspect.aj
17:25:35 AJC: compiled:
/home/skuo/workspace/TJPExample/src/main/aspect/com/eharmony /tjp/DemoAspect.aj
17:25:35 Timer event: 212ms: Time to first woven message
17:25:35 AJC: woven aspect tjp.GetInfoAspect (from
/home/skuo/workspace/TJPExample/src/tjp/GetInfoAspect.aj)
17:25:35 AJC: woven aspect com.eharmony.tjp.GetInfoAspect (from
/home/skuo/workspace/TJPExample/src/main/java/com/eharmony/t jp/GetInfoAspect.aj)
17:25:35 AJC: woven aspect com.eharmony.tjp.DemoAspect (from
/home/skuo/workspace/TJPExample/src/main/aspect/com/eharmony /tjp/DemoAspect.aj)
17:25:36 AJC: compiled: /home/skuo/workspace/TJPExample/src/tjp/Demo.java
17:25:36 AJC: woven class tjp.Demo (from
/home/skuo/workspace/TJPExample/src/tjp/Demo.java)
17:25:36 AJC: compiled:
/home/skuo/workspace/TJPExample/src/test/java/com/eharmony/t jp/SimpleTest.java
17:25:36 AJC: woven class com.eharmony.tjp.SimpleTest (from
/home/skuo/workspace/TJPExample/src/test/java/com/eharmony/t jp/SimpleTest.java)
17:25:36 AJC: compiled:
/home/skuo/workspace/TJPExample/src/main/java/com/eharmony/t jp/Demo.java
17:25:36 AJC: woven class com.eharmony.tjp.Demo (from
/home/skuo/workspace/TJPExample/src/main/java/com/eharmony/t jp/Demo.java)
17:25:36 AspectJ reports build successful, build was: FULL
17:25:36 AJDE Callback: finish. Was full build: true
17:25:36 Timer event: 300ms: Total time spent in AJDE
17:25:36 Timer event: 4ms: Refresh after build
17:25:36 Types affected during build = 6
17:25:36 Timer event: 318ms: Total time spent in AJBuilder.build()
17:25:36 Timer event: 1ms: Delete markers: TJPExample (Finished deleting
markers for TJPExample)
17:25:36 Timer event: 22ms: Create markers: TJPExample (Finished creating
markers for TJPExample)
17:25:36 Timer event: 0ms: Post compile
Re: No advice markers or cross references [message #599580 is a reply to message #73070] Tue, 20 January 2009 23:35 Go to previous message
Andrew Eisenberg is currently offline Andrew Eisenberg
Messages: 77
Registered: July 2009
Member
Looks like it is being compiled properly.

Do you use any linked folders? Creating markers for linked folders does not
always work properly

Also, did you say that the only thing different between the version that
works and the one that doesn't is that the source folder is several levels
deep?


On 20/01/09 5:34 PM, in article
0e0bd8a4ac68c2590c4b36494900faf6$1@www.eclipse.org, "Steve Kuo"
<kuosenhao@yahoo.com> wrote:

> Attached is the output in AJDT Event Trace. It indicated that three .aj
> files were compiled and used to weave the target .java files correctly.
> Running the main() in the two Demo.java indicate that they are woven
> correctly. It's just the markers are not showing up for
> com.eharmony.tjp.*.aj(.java) files.
>
> 17:25:00 Startup information:
> AJDT version: 1.6.2.20090105113441 for Eclipse 3.3
> AspectJ Compiler version: 1.6.3
> usingVisualiser=true
> usingXref=true
> usingCUprovider=true
> ajde.version.at.previous.startup = @AJDEVERSION@
> promptForAutoOpenCrossReference = false
> org.eclipse.ajdt.internal.ui.tracing.checked.filters = set:
> Compiler,Compiler / Progress messages,Compiler / Task list
> messages,Builder,Builder / Classpath
> 17:25:35 Removed problems and tasks for project TJPExample
> 17:25:35 Builder: Tidied output folder(s), removed class files and derived
> resources
> 17:25:35 Timer event: 30ms: Delete markers: TJPExample (Finished deleting
> markers for TJPExample)
> 17:25:35 Compiler configuration for project TJPExample doesn't know
> previous state, so assuming EVERYTHING has changed.
> 17:25:35
> ============================================================ ==================
> =============
> 17:25:35 Build kind = FULLBUILD
> 17:25:35 Project=TJPExample, kind of build requested=Full AspectJ
> compilation
> 17:25:35 Builder: Tidied output folder(s), removed class files and derived
> resources
> 17:25:35 Classpath =
> /home/skuo/workspace/TJPExample/target/classes:/home/skuo/wo rkspace/TJPExample
> /target/test-classes:/usr/local/jdk1.6.0_06/jre/lib/resource s.jar:/usr/local/j
> dk1.6.0_06/jre/lib/rt.jar:/usr/local/jdk1.6.0_06/jre/lib/jss e.jar:/usr/local/j
> dk1.6.0_06/jre/lib/jce.jar:/usr/local/jdk1.6.0_06/jre/lib/ch arsets.jar:/usr/lo
> cal/jdk1.6.0_06/jre/lib/ext/sunjce_provider.jar:/usr/local/j dk1.6.0_06/jre/lib
> /ext/sunpkcs11.jar:/usr/local/jdk1.6.0_06/jre/lib/ext/dnsns. jar:/usr/local/jdk
> 1.6.0_06/jre/lib/ext/localedata.jar:/usr/local/eclipse-3.4.1 /plugins/org.aspec
> tj.runtime_1.6.3.20081216194500/aspectjrt.jar:
> 17:25:35 Timer event: 13ms: Pre compile
> 17:25:35 Compiler configuration for project TJPExample has been read by
> compiler. Resetting.
> 17:25:35 Configuration was [PROJECTSOURCEFILES_CHANGED,
> JAVAOPTIONS_CHANGED, ASPECTPATH_CHANGED, CLASSPATH_CHANGED,
> INPATH_CHANGED, NONSTANDARDOPTIONS_CHANGED, OUTJAR_CHANGED,
> PROJECTSOURCERESOURCES_CHANGED, OUTPUTDESTINATIONS_CHANGED, INJARS_CHANGED]
> 17:25:35 Resetting list of modified source files. Was null
> 17:25:35 Preparing for build: not going to be incremental because no
> successful previous full build
> 17:25:35 AJC: compiling source files
> 17:25:35 Timer event: 196ms: Time to first compiled message
> 17:25:35 AJC: compiled:
> /home/skuo/workspace/TJPExample/src/tjp/GetInfoAspect.aj
> 17:25:35 AJC: compiled:
>
/home/skuo/workspace/TJPExample/src/main/java/com/eharmony/t jp/GetInfoAspect.a >
j
> 17:25:35 AJC: compiled:
> /home/skuo/workspace/TJPExample/src/main/aspect/com/eharmony /tjp/DemoAspect.aj
> 17:25:35 Timer event: 212ms: Time to first woven message
> 17:25:35 AJC: woven aspect tjp.GetInfoAspect (from
> /home/skuo/workspace/TJPExample/src/tjp/GetInfoAspect.aj)
> 17:25:35 AJC: woven aspect com.eharmony.tjp.GetInfoAspect (from
> /home/skuo/workspace/TJPExample/src/main/java/com/eharmony/t jp/GetInfoAspect.a
> j)
> 17:25:35 AJC: woven aspect com.eharmony.tjp.DemoAspect (from
>
/home/skuo/workspace/TJPExample/src/main/aspect/com/eharmony /tjp/DemoAspect.aj >
)
> 17:25:36 AJC: compiled: /home/skuo/workspace/TJPExample/src/tjp/Demo.java
> 17:25:36 AJC: woven class tjp.Demo (from
> /home/skuo/workspace/TJPExample/src/tjp/Demo.java)
> 17:25:36 AJC: compiled:
> /home/skuo/workspace/TJPExample/src/test/java/com/eharmony/t jp/SimpleTest.java
> 17:25:36 AJC: woven class com.eharmony.tjp.SimpleTest (from
>
/home/skuo/workspace/TJPExample/src/test/java/com/eharmony/t jp/SimpleTest.java >
)
> 17:25:36 AJC: compiled:
> /home/skuo/workspace/TJPExample/src/main/java/com/eharmony/t jp/Demo.java
> 17:25:36 AJC: woven class com.eharmony.tjp.Demo (from
> /home/skuo/workspace/TJPExample/src/main/java/com/eharmony/t jp/Demo.java)
> 17:25:36 AspectJ reports build successful, build was: FULL
> 17:25:36 AJDE Callback: finish. Was full build: true
> 17:25:36 Timer event: 300ms: Total time spent in AJDE
> 17:25:36 Timer event: 4ms: Refresh after build
> 17:25:36 Types affected during build = 6
> 17:25:36 Timer event: 318ms: Total time spent in AJBuilder.build()
> 17:25:36 Timer event: 1ms: Delete markers: TJPExample (Finished deleting
> markers for TJPExample)
> 17:25:36 Timer event: 22ms: Create markers: TJPExample (Finished creating
> markers for TJPExample)
> 17:25:36 Timer event: 0ms: Post compile
>
>
Re: No advice markers or cross references [message #599588 is a reply to message #73087] Thu, 22 January 2009 12:20 Go to previous message
Steve Kuo is currently offline Steve Kuo
Messages: 8
Registered: July 2009
Junior Member
If linked folder means soft linked folder on Linux, then the answer is no.


The only difference between the code with markers and the one without is
that the one without is several level deeper.

I can zip up the project and attach it if it can be of use.
Re: No advice markers or cross references [message #599594 is a reply to message #73104] Thu, 22 January 2009 17:49 Go to previous message
Andrew Eisenberg is currently offline Andrew Eisenberg
Messages: 77
Registered: July 2009
Member
Yes. Please attach.
Re: No advice markers or cross references [message #599599 is a reply to message #73122] Fri, 23 January 2009 12:11 Go to previous message
Steve Kuo is currently offline Steve Kuo
Messages: 8
Registered: July 2009
Junior Member
It appears that there is no way to attach a zipped project file. One way
to address this problem is for you to send me your address to
bookofthree@hotmail.com and I will send the zip file to you.

Any other solution is most welcome.
Re: No advice markers or cross references [message #599737 is a reply to message #73139] Mon, 09 March 2009 15:54 Go to previous message
paul freeman is currently offline paul freeman
Messages: 6
Registered: July 2009
Junior Member
I have run into this same issue. I have a project that will not show any
markers or cross references when compiled with Eclipse 3.4 and the latest
ajdt for aspectj 1.6 (org.aspectj.ajde_1.6.4.20090106083800). If I
compile the same project with Eclipse 3.2 and aspectj 1.5
(org.aspectj.ajde_1.5.3.200611221118), it works as expected showing cross
refereneces and markers. When compiled in eclipse 3.4 I have turned on
the option to export weaving info to the problems pain, and there I see
that it is indeed weaving into my code. So this would appear to be a bug
in this release. I have tried it with both linked and unlinked source
folders and have experienced the same result.
Re: No advice markers or cross references [message #599743 is a reply to message #73424] Tue, 10 March 2009 09:57 Go to previous message
paul freeman is currently offline paul freeman
Messages: 6
Registered: July 2009
Junior Member
One more piece of info... in the eclipse 3.4 environment, if I turn off
JDT Weaving, I get markers but still no cross cutting information.

If I turn on the AJDT Event Trace view I get the following - notice the
last 3 statements (Delete markers, create markers, delete markers):
9:53:55 Startup information:
AJDT version: 1.6.3.20090122141228 for Eclipse 3.3
AspectJ Compiler version: DEVELOPMENT
usingVisualiser=true
usingXref=true
usingCUprovider=false
org.eclipse.ajdt.internal.ui.xref.checked.filters = set:
ajde.version.at.previous.startup = @AJDEVERSION@
9:54:24 Removed problems and tasks for project WFC_Monitoring_POC
9:54:25 Builder: Tidied output folder(s), removed class files and derived
resources
9:54:25 Compiler configuration for project WFC_Monitoring_POC doesn't know
previous state, so assuming EVERYTHING has changed.
9:54:25
============================================================ ===============================
9:54:25 Build kind = FULLBUILD
9:54:25 Project=WFC_Monitoring_POC, kind of build requested=Full AspectJ
compilation
9:54:25 Builder: Tidied output folder(s), removed class files and derived
resources
9:54:25 Timer event: 62ms: Pre compile
9:54:25 Compiler configuration for project WFC_Monitoring_POC has been
read by compiler. Resetting.
9:54:25 Configuration was [PROJECTSOURCEFILES_CHANGED,
JAVAOPTIONS_CHANGED, ASPECTPATH_CHANGED, CLASSPATH_CHANGED,
INPATH_CHANGED, NONSTANDARDOPTIONS_CHANGED, OUTJAR_CHANGED,
PROJECTSOURCERESOURCES_CHANGED, OUTPUTDESTINATIONS_CHANGED, INJARS_CHANGED]
9:54:25 Resetting list of modified source files. Was null
9:54:25 Preparing for build: not going to be incremental because no
successful previous full build
9:54:27 Timer event: 2328ms: Time to first compiled message
9:54:27 Timer event: 2531ms: Time to first woven message
9:54:37 AspectJ reports build successful, build was: FULL
9:54:37 AJDE Callback: finish. Was full build: true
9:54:37 Timer event: 11688ms: Total time spent in AJDE
9:54:37 Timer event: 390ms: Refresh after build
9:54:37 Types affected during build = 458
9:54:37 Timer event: 0ms: Post compile
9:54:37 Timer event: 12421ms: Total time spent in AJBuilder.build()
9:54:37 Timer event: 15ms: Delete markers: WFC_Monitoring_POC (Finished
deleting markers for WFC_Monitoring_POC)
9:54:38 Timer event: 578ms: Create markers: WFC_Monitoring_POC (Finished
creating markers for WFC_Monitoring_POC)
9:54:38 Timer event: 78ms: Delete markers: WFC_Monitoring_POC (Finished
deleting markers for WFC_Monitoring_POC)
Re: No advice markers or cross references [message #599750 is a reply to message #73442] Tue, 10 March 2009 11:13 Go to previous message
paul freeman is currently offline paul freeman
Messages: 6
Registered: July 2009
Junior Member
sigh... JDT does not seem to have an impact. The order of the Delete
markers statements varies from build to build regardless of whether or not
JDT is enabled. The order of their output definitely affects whether or
not the markers show up. Here is the AJDT Event Trace output for one that
succeeded (i.e. showed markers after the compile) with JDT on (I can't
seem to figure out a way to get cross references to show up):

11:7:44 Startup information:
AJDT version: 1.6.3.20090122141228 for Eclipse 3.3
AspectJ Compiler version: DEVELOPMENT
usingVisualiser=true
usingXref=true
usingCUprovider=true
org.aspectj.ajdt.core.compiler.BuildOptions.showweavemessage s = true
ajde.version.at.previous.startup = @AJDEVERSION@
org.aspectj.ajdt.core.compiler.weaver.outxml = true
org.eclipse.ajdt.internal.ui.tracing.checked.filters = set:
Compiler,Builder
org.eclipse.ajdt.internal.ui.xref.checked.filters = set:
11:8:1 Removed problems and tasks for project WFC_Monitoring_POC
11:8:5 Builder: Tidied output folder(s), removed class files and derived
resources
11:8:5 Compiler configuration for project WFC_Monitoring_POC doesn't know
previous state, so assuming EVERYTHING has changed.
11:8:6
============================================================ ===============================
11:8:6 Build kind = FULLBUILD
11:8:6 Project=WFC_Monitoring_POC, kind of build requested=Full AspectJ
compilation
11:8:6 Builder: Tidied output folder(s), removed class files and derived
resources
11:8:6 Timer event: 203ms: Pre compile
11:8:7 Compiler configuration for project WFC_Monitoring_POC has been read
by compiler. Resetting.
11:8:7 Configuration was [PROJECTSOURCEFILES_CHANGED,
JAVAOPTIONS_CHANGED, ASPECTPATH_CHANGED, CLASSPATH_CHANGED,
INPATH_CHANGED, NONSTANDARDOPTIONS_CHANGED, OUTJAR_CHANGED,
PROJECTSOURCERESOURCES_CHANGED, OUTPUTDESTINATIONS_CHANGED, INJARS_CHANGED]
11:8:7 Resetting list of modified source files. Was null
11:8:7 Preparing for build: not going to be incremental because no
successful previous full build
11:8:15 Timer event: 8109ms: Time to first compiled message
11:8:15 Timer event: 8469ms: Time to first woven message
11:8:27 AspectJ reports build successful, build was: FULL
11:8:27 AJDE Callback: finish. Was full build: true
11:8:27 Timer event: 20953ms: Total time spent in AJDE
11:8:28 Timer event: 547ms: Refresh after build
11:8:28 Types affected during build = 458
11:8:28 Timer event: 0ms: Post compile
11:8:28 Timer event: 22141ms: Total time spent in AJBuilder.build()
11:8:29 Timer event: 0ms: Delete markers: WFC_Monitoring_POC (Finished
deleting markers for WFC_Monitoring_POC)
11:8:29 Timer event: 0ms: Delete markers: WFC_Monitoring_POC (Finished
deleting markers for WFC_Monitoring_POC)
11:8:29 Timer event: 265ms: Create markers: WFC_Monitoring_POC (Finished
creating markers for WFC_Monitoring_POC)
Re: No advice markers or cross references [message #599767 is a reply to message #73461] Sat, 14 March 2009 12:58 Go to previous message
Andrew Eisenberg is currently offline Andrew Eisenberg
Messages: 77
Registered: July 2009
Member
Hi Paul,

Apologies for not answering earlier, but I've been away. This newsgroup is
not used very often. You can try the mailing list instead and probably get
a quicker response.

I have not seen this problem before. For some reason, the Delete markers
job is getting called a second time after the markers are being created.
Some questions:

* Are you running on RSA?

* Do you have any errors in the error log?

* When you do see the markers generated, can you use them for navigation
(eg- click on them and follow the "advised by" link)?

* Are you saying that nothing shows up in the cross references view even
when markers are generated?

* Is this happening for all projects, or for just the one you posted the
event trace for? Try creating a simple AJ project with a single advice and
see what happens.

* Can you attach a simple project that I can look at? You can create a bug
on bugzilla at https://bugs.eclipse.org/bugs/ and attach the project.

* Also, try updating to the latest dev build (it is the 1.6.4 RC and will
become the final release next week). It contains a crosscutting model
sanity checker. If you compile your code with the event trace enabled, then
it will go through the model and look for obvious problems with it. Try
this and paste the results here.

Hope this can help,
--a
Previous Topic:Problema class nested
Next Topic:Problema class nested
Goto Forum:
  


Current Time: Mon Sep 01 03:51:28 EDT 2014

Powered by FUDForum. Page generated in 0.02462 seconds