Home » Language IDEs » AspectJ » No advice markers or cross references
No advice markers or cross references [message #72827] |
Thu, 18 December 2008 22:01 |
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 23:59 |
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 #73052 is a reply to message #73033] |
Wed, 21 January 2009 00:52 |
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] |
Wed, 21 January 2009 01:34 |
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] |
Wed, 21 January 2009 04:35 |
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 #73442 is a reply to message #73424] |
Tue, 10 March 2009 13:57 |
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 15:13 |
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 16:58 |
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 #599571 is a reply to message #73052] |
Wed, 21 January 2009 01:34 |
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] |
Wed, 21 January 2009 04:35 |
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 #599743 is a reply to message #73424] |
Tue, 10 March 2009 13:57 |
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 15:13 |
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)
|
|
| |
Goto Forum:
Current Time: Sat Oct 19 17:14:13 GMT 2024
Powered by FUDForum. Page generated in 0.08415 seconds
|