Bug 148103 - java.lang.NoSuchMethodError
Summary: java.lang.NoSuchMethodError
Status: RESOLVED WORKSFORME
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-21 15:38 EDT by Wang Bin CLA
Modified: 2006-07-28 08:52 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wang Bin CLA 2006-06-21 15:38:37 EDT
java.lang.NoSuchMethodError
at org.aspectj.ajdt.internal.compiler.AjCompilerAdapter.weave(AjCompilerAdapter.java:298)
at org.aspectj.ajdt.internal.compiler.AjCompilerAdapter.afterCompiling(AjCompilerAdapter.java:192)
at org.aspectj.ajdt.internal.compiler.CompilerAdapter.ajc$afterReturning$org_aspectj_ajdt_internal_compiler_CompilerAdapter$2$f9cc9ca0(CompilerAdapter.aj:70)
at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:367)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:875)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuild(AjBuildManager.java:243)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:162)
at org.aspectj.ajde.internal.CompilerAdapter.compile(CompilerAdapter.java:122)
at org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread.run(AspectJBuildManager.java:191)

NoSuchMethodError thrown: org.aspectj.weaver.bcel.BcelWeaver.setIsBatchWeave(Z)V
Comment 1 Andrew Clement CLA 2006-06-22 03:46:31 EDT
errr, a bit of context might be nice?  What version of the compiler did you see this on? are you using eclipse? what code were you running? were you programmatically executing the compiler or just running AJDT?

The setIsBatchWeave() method has been in the BcelWeaver class for a while now, it was checked into version 1.90 of BcelWeaver on 11/05/2006.  If BcelWeaver is being found and yet that method can't be found it suggests an old version of the weaver class is on your classpath.
Comment 2 Wang Bin CLA 2006-06-22 09:54:29 EDT
I used AJDT ajdt_1.4.0.20060621130745_archive.zip in Eclipse RC7
Comment 3 Matt Chapman CLA 2006-06-23 06:43:44 EDT
updating component
Comment 4 Andrew Clement CLA 2006-07-04 05:26:45 EDT
Have you upgraded to the latest AJDT 1.4.0 (final release) - is it now working for you?
Comment 5 Andrew Clement CLA 2006-07-28 08:52:48 EDT
no feedback for 3 weeks, closing.  please reopen if the suggested solutions dont fix it.