Bug 306606 - java.lang.NoSuchMethodError: org.aspectj.weaver.bcel.BcelWorld.setXmlConfigured(Z)V
Summary: java.lang.NoSuchMethodError: org.aspectj.weaver.bcel.BcelWorld.setXmlConfigur...
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Build (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-20 12:18 EDT by Palam CLA
Modified: 2010-03-22 16:18 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Palam CLA 2010-03-20 12:18:46 EDT
[iajc] ABORT
     [iajc] 	
     [iajc] Exception thrown from AspectJ 1.6.6
     [iajc] This might be logged as a bug already -- find current bugs at
     [iajc]   http://bugs.eclipse.org/bugs/buglist.cgi?product=AspectJ&component=Compiler
     [iajc] Bugs for exceptions thrown have titles File:line from the top stack, 
     [iajc] e.g., "SomeFile.java:243"
     [iajc] If you don't find the exception below in a bug, please add a new bug
     [iajc] at http://bugs.eclipse.org/bugs/enter_bug.cgi?product=AspectJ
     [iajc] To make the bug a priority, please include a test program
     [iajc] that can reproduce this exception.
     [iajc] org.aspectj.weaver.bcel.BcelWorld.setXmlConfigured(Z)V
     [iajc] when batch building BuildConfig[null] #Files=79 AopXmls=#0
     [iajc] org.aspectj.weaver.bcel.BcelWorld.setXmlConfigured(Z)V
     [iajc] java.lang.NoSuchMethodError: org.aspectj.weaver.bcel.BcelWorld.setXmlConfigured(Z)V
     [iajc] 	at org.aspectj.ajdt.internal.core.builder.AjBuildManager.initBcelWorld(AjBuildManager.java:817)
     [iajc] 	at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performBuild(AjBuildManager.java:245)
     [iajc] 	at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:182)
     [iajc] 	at org.aspectj.ajdt.ajc.AjdtCommand.doCommand(AjdtCommand.java:112)
     [iajc] 	at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java:60)
     [iajc] 	at org.aspectj.tools.ajc.Main.run(Main.java:355)
     [iajc] 	at org.aspectj.tools.ajc.Main.runMain(Main.java:234)
     [iajc] 	at org.aspectj.tools.ajc.Main.main(Main.java:84)
     [iajc] 20 Mar, 2010 9:14:03 PM org.aspectj.weaver.tools.Jdk14Trace info
Comment 1 Andrew Clement CLA 2010-03-22 16:18:17 EDT
that error suggests a mismatch in Aspectj versions on the classpath.

This:

org.aspectj.weaver.bcel.BcelWorld.setXmlConfigured(Z)V
org.aspectj.ajdt.internal.core.builder.AjBuildManager.initBcelWorld(AjBuildManager.java:817

is the point where it crosses over from aspectjtools.jar to aspectjweaver.jar. What classpath are you using?  It looks like a more up to date aspectjtools.jar is being used with an old aspectjweaver.jar - and the weaver is ahead of aspectjtools on the classpath.