Andrew,
Here is a bit more information. After deploying my project, which had
no error markers after incremental compilation, and finding there was
a compile error from a runtime exception containing:
Caused by: java.lang.AbstractMethodError:
mhc.jobbank.JobListingQuery.setSuppressed(Ljava/lang/Boolean;)V
I went back, did a clean / rebuild, found the error, applied the fix
and saved. This changed the error marker on the line from a red x to
a gray x, and did not clear the error from the problems view. I re-
saved and checked the AJDT Event Trace which is included below:
12:17:30
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
========================================================================
12:17:30 Build kind = AUTOBUILD
12:17:30 Project=mhc-ejb, kind of build requested=Incremental AspectJ
compilation
12:17:30 Timer event: 0ms: Flush included source file cache
12:17:30 Timer event: 1ms: Check delta
12:17:30 File: /Users/dave/Workspace/mhc/mhc-ejb/src/main/aspectj/mhc/
jobbank/JobListingQuery.java has changed.
12:17:30 build: Examined delta - 1 changed, 0 added, and 0 deleted
source files in required project mhc-ejb
12:17:30 Timer event: 2ms: Looking for and marking configuration
changes in mhc-ejb
12:17:30 Configuration changes found: true
12:17:30 Timer event: 2ms: Look for source/resource changes
12:17:30 Setting list of classpath elements with modified contents:
12:17:30 []
12:17:30 Classpath = /Users/dave/Workspace/mhc/mhc-ejb/target/classes:/
System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/
classes.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/
Classes/ui.jar:/System/Library/Frameworks/JavaVM.framework/Versions/
1.6.0/Classes/laf.jar:/System/Library/Frameworks/JavaVM.framework/
Versions/1.6.0/Classes/jsse.jar:/System/Library/Frameworks/
JavaVM.framework/Versions/1.6.0/Classes/jce.jar:/System/Library/
Frameworks/JavaVM.framework/Versions/1.6.0/Classes/charsets.jar:/
System/Library/Java/Extensions/AppleScriptEngine.jar:/System/Library/
Java/Extensions/CoreAudio.jar:/System/Library/Java/Extensions/
dns_sd.jar:/System/Library/Java/Extensions/j3daudio.jar:/System/
Library/Java/Extensions/j3dcore.jar:/System/Library/Java/Extensions/
j3dutils.jar:/System/Library/Java/Extensions/jai_codec.jar:/System/
Library/Java/Extensions/jai_core.jar:/System/Library/Java/Extensions/
mlibwrapper_jai.jar:/System/Library/Java/Extensions/MRJToolkit.jar:/
System/Library/Java/Extensions/QTJava.zip:/System/Library/Java/
Extensions/vecmath.jar:/System/Library/Frameworks/JavaVM.framework/
Versions/1.6.0/Home/lib/ext/apple_provider.jar:/System/Library/
Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/ext/dnsns.jar:/
System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/ext/
localedata.jar:/System/Library/Frameworks/JavaVM.framework/Versions/
1.6.0/Home/lib/ext/sunjce_provider.jar:/System/Library/Frameworks/
JavaVM.framework/Versions/1.6.0/Home/lib/ext/sunpkcs11.jar:/Users/
dave/.m2/repository/commons-logging/commons-logging/1.1/commons-
logging-1.1.jar:/Users/dave/.m2/repository/log4j/log4j/1.2.13/
log4j-1.2.13.jar:/Users/dave/.m2/repository/h2/h2-core/1.0.0-SNAPSHOT/
h2-core-1.0.0-SNAPSHOT.jar:/Users/dave/.m2/repository/jboss-seam/jboss-
seam/2.1.1.GA/jboss-seam-2.1.1.GA.jar:/Users/dave/.m2/repository/
commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar:/
Users/dave/.m2/repository/commons-digester/commons-digester/1.6/
commons-digester-1.6.jar:/Users/dave/.m2/repository/commons-
collections/commons-collections/3.1/commons-collections-3.1.jar:/Users/
dave/.m2/repository/commons-lang/commons-lang/2.1/commons-
lang-2.1.jar:/Users/dave/.m2/repository/jboss-el/jboss-el/1.0_02.CR2/
jboss-el-1.0_02.CR2.jar:/Users/dave/.m2/repository/jboss-seam/jboss-
seam-ui/2.1.1.GA/jboss-seam-ui-2.1.1.GA.jar:/Users/dave/.m2/repository/
jsf-facelets/jsf-facelets/1.1.15.B1/jsf-facelets-1.1.15.B1.jar:/Users/
dave/.m2/repository/lucene-core/lucene-core/2.3.2/lucene-
core-2.3.2.jar:/Users/dave/.m2/repository/hibernate-validator/
hibernate-validator/3.0.0.GA/hibernate-validator-3.0.0.GA.jar:/Users/
dave/.m2/repository/hibernate-commons-annotations/hibernate-commons-
annotations/3.0.0.GA/hibernate-commons-annotations-3.0.0.GA.jar:/Users/
dave/.m2/repository/hibernate-search/hibernate-search/3.0.0.GA/
hibernate-search-3.0.0.GA.jar:/Users/dave/.m2/repository/aspectj/
aspectjrt/1.6.1/aspectjrt-1.6.1.jar:/Users/dave/.m2/repository/javacsv/
javacsv/2.0/javacsv-2.0.jar:/Users/dave/.m2/repository/commons-codec/
commons-codec/1.3/commons-codec-1.3.jar:/Users/dave/.m2/repository/h2/
h2-onet/1.0.0-SNAPSHOT/h2-onet-1.0.0-SNAPSHOT.jar:/Users/dave/.m2/
repository/h2/h2-seam/1.0.0-SNAPSHOT/h2-seam-1.0.0-SNAPSHOT.jar:/Users/
dave/.m2/repository/h2/h2-web/1.0.0-SNAPSHOT/h2-web-1.0.0-
SNAPSHOT.jar:/Users/dave/.m2/repository/h2/h2-actions/1.0.0-SNAPSHOT/
h2-actions-1.0.0-SNAPSHOT.jar:/Users/dave/.m2/repository/richfaces/
richfaces-ui/3.3.1.GA/richfaces-ui-3.3.1.GA.jar:/Users/dave/.m2/
repository/richfaces/richfaces-api/3.3.1.GA/richfaces-
api-3.3.1.GA.jar:/Users/dave/.m2/repository/richfaces/richfaces-impl/
3.3.1.GA/richfaces-impl-3.3.1.GA.jar:/Users/dave/.m2/repository/jee-
api/jee-api/5/jee-api-5.jar:/Users/dave/.m2/repository/jboss/jboss-
annotations-ejb3/4.2.2.GA/jboss-annotations-ejb3-4.2.2.GA.jar:/Users/
dave/.m2/repository/hibernate/hibernate/3.2.2.GA/
hibernate-3.2.2.GA.jar:/Users/dave/.m2/repository/cglib/cglib/2.1_3/
cglib-2.1_3.jar:/Users/dave/.m2/repository/asm/asm/1.3.4/
asm-1.3.4.jar:/Users/dave/.m2/repository/asm-util/asm-util/1.3.4/asm-
util-1.3.4.jar:/Users/dave/.m2/repository/dom4j/dom4j/1.6.1/
dom4j-1.6.1.jar:/Users/dave/.m2/repository/antlr/antlr/2.7.6/
antlr-2.7.6.jar:/Users/dave/.m2/repository/ehcache/ehcache/1.2.3/
ehcache-1.2.3.jar:/Users/dave/.m2/repository/jaxen/jaxen/1.1-beta-7/
jaxen-1.1-beta-7.jar:/Users/dave/.m2/repository/hibernate-annotations/
hibernate-annotations/3.3.0.GA/hibernate-annotations-3.3.0.GA.jar:/
Users/dave/.m2/repository/hibernate-annotations/hibernate-commons-
annotations/3.3.0.GA/hibernate-commons-annotations-3.3.0.GA.jar:/Users/
dave/.m2/repository/jakarta-oro/jakarta-oro/2.0.8/jakarta-
oro-2.0.8.jar:/Users/dave/.m2/repository/fop/fop/0.95/fop-0.95.jar:/
Users/dave/.m2/repository/avalon-framework/avalon-framework/4.2.0/
avalon-framework-4.2.0.jar:/Users/dave/.m2/repository/batik/batik/1.7/
batik-1.7.jar:/Users/dave/.m2/repository/commons-io/commons-io/1.3.2/
commons-io-1.3.2.jar:/Users/dave/.m2/repository/serializer/serializer/
2.7.0/serializer-2.7.0.jar:/Users/dave/.m2/repository/xmlgraphics-
commons/xmlgraphics-commons/1.3.1/xmlgraphics-commons-1.3.1.jar:/Users/
dave/.m2/repository/jbosscache-core/jbosscache-core/2.2.0.GA/
jbosscache-core-2.2.0.GA.jar:/Users/dave/.m2/repository/jgroups/
jgroups-all/2.2.0.GA/jgroups-all-2.2.0.GA.jar:/Users/dave/.m2/
repository/jboss-aop/jboss-aop/1.5.6.GA/jboss-aop-1.5.6.GA.jar:/Users/
dave/.m2/repository/iradix-gis/iradix-gis/1.0/iradix-gis-1.0.jar:/
Users/dave/.m2/repository/nekohtml/nekohtml/1.9.6.1/
nekohtml-1.9.6.1.jar:/Users/dave/.m2/repository/jboss-seam/jboss-seam-
pdf/2.1.1.GA/jboss-seam-pdf-2.1.1.GA.jar:/Users/dave/.m2/repository/
itext/itext/2.1.7/itext-2.1.7.jar:/Users/dave/.m2/repository/itext/
itext-rtf/2.1.7/itext-rtf-2.1.7.jar:/Users/dave/.m2/repository/jboss-
seam/jboss-seam-excel/2.1.1.GA/jboss-seam-excel-2.1.1.GA.jar:/Users/
dave/.m2/repository/jxl/jxl/2.6.10/jxl-2.6.10.jar:/Applications/
Eclipse/Eclipse-3.5/plugins/org.aspectj.runtime_1.6.6.20090930185500/
aspectjrt.jar:
12:17:30 Timer event: 18ms: Pre compile
12:17:30 Sending the following configuration changes to the compiler: []
12:17:30 1 source file changes since last build
12:17:30 Compiler configuration for project mhc-ejb has been read by
compiler. Resetting.
12:17:30 Configuration was []
12:17:30 Resetting list of modified source files. Was [/Users/dave/
Workspace/mhc/mhc-ejb/src/main/aspectj/mhc/jobbank/JobListingQuery.java]
12:17:30 Preparing for build: planning to be an incremental build
12:17:30 Starting incremental compilation loop 1 of possibly 5
12:17:30 AJC: compiling source files
12:17:30 Timer event: 341ms: Time to first compiled message
12:17:30 AJC: compiled: /Users/dave/Workspace/mhc/mhc-ejb/src/main/
aspectj/mhc/jobbank/JobListingQuery.java
12:17:30 Timer event: 373ms: Time to first woven message
12:17:30 AJC: woven class mhc.jobbank.JobListingQuery (from /Users/
dave/Workspace/mhc/mhc-ejb/src/main/aspectj/mhc/jobbank/
JobListingQuery.java)
12:17:30 AJC: woven class mhc.jobbank.JobListingQuery$AjcClosure1
(from /Users/dave/Workspace/mhc/mhc-ejb/src/main/aspectj/mhc/jobbank/
JobListingQuery.java)
12:17:30 AJC: woven class mhc.jobbank.JobListingQuery$AjcClosure3
(from /Users/dave/Workspace/mhc/mhc-ejb/src/main/aspectj/mhc/jobbank/
JobListingQuery.java)
12:17:30 AJC: woven class mhc.jobbank.JobListingQuery$AjcClosure5
(from /Users/dave/Workspace/mhc/mhc-ejb/src/main/aspectj/mhc/jobbank/
JobListingQuery.java)
12:17:30 addSourcelineTask message=The method appendConstraints() of
type JobListingQuery should be tagged with @Override since it actually
overrides a superclass method file=/Users/dave/Workspace/mhc/mhc-ejb/
src/main/aspectj/mhc/jobbank/JobListingQuery.java line=50
12:17:30 addSourcelineTask message=advice defined in
h2.core.partitioned.PartitionedQueryAspect has not been applied
[Xlint:adviceDidNotMatch] file=/Users/dave/.m2/repository/h2/h2-core/
1.0.0-SNAPSHOT/h2-core-1.0.0-SNAPSHOT.jar!h2/core/partitioned/
PartitionedQueryAspect.class line=13
12:17:30 addSourcelineTask message=advice defined in
h2.core.partitioned.PartitionedQueryAspect has not been applied
[Xlint:adviceDidNotMatch] file=/Users/dave/.m2/repository/h2/h2-core/
1.0.0-SNAPSHOT/h2-core-1.0.0-SNAPSHOT.jar!h2/core/partitioned/
PartitionedQueryAspect.class line=25
12:17:30 addSourcelineTask message=advice defined in
h2.core.collections.SyncAspect has not been applied
[Xlint:adviceDidNotMatch] file=/Users/dave/.m2/repository/h2/h2-core/
1.0.0-SNAPSHOT/h2-core-1.0.0-SNAPSHOT.jar!h2/core/collections/
SyncAspect.class line=12
12:17:30 addSourcelineTask message=advice defined in
h2.core.localized.LocalizedQueryAspect has not been applied
[Xlint:adviceDidNotMatch] file=/Users/dave/.m2/repository/h2/h2-core/
1.0.0-SNAPSHOT/h2-core-1.0.0-SNAPSHOT.jar!h2/core/localized/
LocalizedQueryAspect.class line=46
12:17:30 addSourcelineTask message=advice defined in h2.web.jsf.JSFAspect
has not been applied [Xlint:adviceDidNotMatch] file=/Users/dave/.m2/
repository/h2/h2-web/1.0.0-SNAPSHOT/h2-web-1.0.0-SNAPSHOT.jar!h2/web/
jsf/JSFAspect.class line=12
12:17:30 addSourcelineTask message=advice defined in h2.web.jsf.JSFAspect
has not been applied [Xlint:adviceDidNotMatch] file=/Users/dave/.m2/
repository/h2/h2-web/1.0.0-SNAPSHOT/h2-web-1.0.0-SNAPSHOT.jar!h2/web/
jsf/JSFAspect.class line=29
12:17:30 addSourcelineTask message=advice defined in
h2.core.utils.LazyAspect has not been applied
[Xlint:adviceDidNotMatch] file=/Users/dave/.m2/repository/h2/h2-core/
1.0.0-SNAPSHOT/h2-core-1.0.0-SNAPSHOT.jar!h2/core/utils/
LazyAspect.class line=14
12:17:30 AspectJ reports build successful, build was: INCREMENTAL
12:17:30 AJDE Callback: finish. Was full build: false
12:17:30 Timer event: 396ms: Total time spent in AJDE
12:17:30 Timer event: 0ms: Refresh after build
12:17:30 Types affected during build = 1
12:17:30 Not adding marker for problem because it's against a resource
which is not in the list of affected resources provided by the
compiler. Resource=L/mhc-ejb/src/main/aspectj/mhc/jobbank/
JobListingQuery.java Problem message=The method appendConstraints() of
type JobListingQuery should be tagged with @Override since it actually
overrides a superclass method line=50
12:17:30 Not adding marker for problem because it's against a resource
which is not in the list of affected resources provided by the
compiler. Resource=P/mhc-ejb Problem message=advice defined in
h2.core.partitioned.PartitionedQueryAspect has not been applied
[Xlint:adviceDidNotMatch] line=13
12:17:30 Not adding marker for problem because it's against a resource
which is not in the list of affected resources provided by the
compiler. Resource=P/mhc-ejb Problem message=advice defined in
h2.core.partitioned.PartitionedQueryAspect has not been applied
[Xlint:adviceDidNotMatch] line=25
12:17:30 Not adding marker for problem because it's against a resource
which is not in the list of affected resources provided by the
compiler. Resource=P/mhc-ejb Problem message=advice defined in
h2.core.collections.SyncAspect has not been applied
[Xlint:adviceDidNotMatch] line=12
12:17:30 Not adding marker for problem because it's against a resource
which is not in the list of affected resources provided by the
compiler. Resource=P/mhc-ejb Problem message=advice defined in
h2.core.localized.LocalizedQueryAspect has not been applied
[Xlint:adviceDidNotMatch] line=46
12:17:30 Not adding marker for problem because it's against a resource
which is not in the list of affected resources provided by the
compiler. Resource=P/mhc-ejb Problem message=advice defined in h2.web.jsf.JSFAspect
has not been applied [Xlint:adviceDidNotMatch] line=12
12:17:30 Not adding marker for problem because it's against a resource
which is not in the list of affected resources provided by the
compiler. Resource=P/mhc-ejb Problem message=advice defined in h2.web.jsf.JSFAspect
has not been applied [Xlint:adviceDidNotMatch] line=29
12:17:30 Not adding marker for problem because it's against a resource
which is not in the list of affected resources provided by the
compiler. Resource=P/mhc-ejb Problem message=advice defined in
h2.core.utils.LazyAspect has not been applied
[Xlint:adviceDidNotMatch] line=14
12:17:31 Timer event: 15ms: Delete markers: mhc-ejb (Finished deleting
markers for mhc-ejb)
12:17:31 Timer event: 50ms: Create markers: mhc-ejb (Finished creating
markers for mhc-ejb)
12:17:31 Created 2 markers in 1 files
On Oct 13, 2009, at 12:01 PM, Andrew Eisenberg wrote:
I've also noticed that incremental compilation often seems to not
update the
markers in the IDE until I've done a full rebuild. Several times
I've
deployed code from a project with no markers only to have it fail
with an
exception when running that is equivalent to what the build error
was.
After a clean/rebuild the appropriate error shows up in Eclipse.
Any
recommended steps for debugging that?
Hi David,
The first steps would be to get a better idea of when this is
happening (obviously for incremental builds, but when it has happened,
do you know if you've changed an aspect recently, or only classes?,
are generics involved?), for what kinds of projects (are in path and
aspect path involved?), and what kinds of markers (are advice markers
included, or just warnings and errors?).
Then we can start trying to recreate it on a smaller project.
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users