Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] AJDT 1.2.0M1 problem


Hi,

The latest AJDT (1.2.0M1)  includes an *extremely* up to date version of AspectJ.  That AspectJ has a new feature in it that gives us better line numbers in the UI.  It does this by adding extra attributes to the class file - the 'org.aspectj.weaver.MethodDeclarationLineNumber' you see in your error message.  If you build some code with AJDT it will put these attributes into the class files generated.  If you *then* use those files in an external compile with a 'basic' AspectJ1.2 version of the compiler, if fails with the error you see because the old compiler doesn't understand the new attributes.  We will be releasing AspectJ1.2.1 soon - in the meantime the best suggestion would be to download the best-so-far build of AspectJ and install it as your external compiler, that version will understand these new attributes.  The best-so-far build of AspectJ is available here:

http://download.eclipse.org/technology/ajdt/dev/aspectj-DEVELOPMENT.jar

regards,
Andy.
===
Andy Clement
AspectJ/AJDT



André Dantas Rocha <ad-rocha@xxxxxxxxxx>
Sent by: aspectj-users-admin@xxxxxxxxxxx

15/10/2004 19:39

Please respond to
aspectj-users@xxxxxxxxxxx

To
<aspectj-users@xxxxxxxxxxx>
cc
Subject
[aspectj-users] AJDT 1.2.0M1 problem





Hi,
 
After install AJDT 1.2.0M1 I experienced a problem when I try to compile the project using Ant (the ant project is created dynamically -- no xml file). Stack is shown below.
 
The compilation is OK using version 1.1.12...
 
Thanks,
 
André
 
 
 
 
ABORT

Exception thrown from AspectJ DEVELOPMENT

 
This might be logged as a bug already -- find current bugs at
 
http://bugs.eclipse.org/bugs/buglist.cgi?product=AspectJ&component=Compiler
 
Bugs for exceptions thrown have titles File:line from the top stack,
e.g., "SomeFile.java:243"

 
If you don't find the exception below in a bug, please add a new bug
at
http://bugs.eclipse.org/bugs/enter_bug.cgi?product=AspectJ
To make the bug a priority, please include a test program
that can reproduce this exception.
unknown attributeorg.aspectj.weaver.MethodDeclarationLineNumber
unknown attributeorg.aspectj.weaver.MethodDeclarationLineNumber
org.aspectj.weaver.BCException: unknown attributeorg.aspectj.weaver.MethodDeclarationLineNumber
at org.aspectj.weaver.AjAttribute.read(AjAttribute.java:109)
at org.aspectj.weaver.bcel.BcelAttributes.readAjAttributes(BcelAttributes.java:38)
at org.aspectj.weaver.bcel.BcelMethod.unpackAjAttributes(BcelMethod.java:83)
at org.aspectj.weaver.bcel.BcelMethod.<init>(BcelMethod.java:49)
at org.aspectj.weaver.bcel.BcelObjectType.getDeclaredMethods(BcelObjectType.java:123)
at org.aspectj.weaver.ResolvedTypeX$Name.getDeclaredMethods(ResolvedTypeX.java:596)
at org.aspectj.weaver.ResolvedTypeX.getDeclaredAdvice(ResolvedTypeX.java:444)
at org.aspectj.weaver.ResolvedTypeX.getDeclaredShadowMungers(ResolvedTypeX.java:455)
at org.aspectj.weaver.ResolvedTypeX.collectShadowMungers(ResolvedTypeX.java:395)
at org.aspectj.weaver.ResolvedTypeX.collectCrosscuttingMembers(ResolvedTypeX.java:330)
at org.aspectj.weaver.CrosscuttingMembersSet.addOrReplaceAspect(CrosscuttingMembersSet.java:57)
at org.aspectj.weaver.bcel.BcelWeaver.prepareForWeave(BcelWeaver.java:331)
at org.aspectj.ajdt.internal.compiler.AjCompilerAdapter.weave(AjCompilerAdapter.java:222)
at org.aspectj.ajdt.internal.compiler.AjCompilerAdapter.afterCompiling(AjCompilerAdapter.java:114)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:383)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:671)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuild(AjBuildManager.java:167)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:101)
at org.aspectj.ajdt.ajc.AjdtCommand.doCommand(AjdtCommand.java:108)
at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java:59)
at org.aspectj.tools.ajc.Main.run(Main.java:289)
at org.aspectj.tools.ajc.Main.runMain(Main.java:226)
at org.aspectj.tools.ant.taskdefs.AjcTask.executeInSameVM(AjcTask.java:1158)
at org.aspectj.tools.ant.taskdefs.AjcTask.execute(AjcTask.java:955)
at org.apache.tools.ant.Task.perform(Task.java:364)
at aftt.util.ant.AntRunner.compile(AntRunner.java:120)
at aftt.core.Project.instrument(Project.java:628)
at aftt.ui.MainWindow$8.actionPerformed(MainWindow.java:425)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

 
[Log4jListener.java:124] Task "iajc" finished with error.
fail due to BCException "unknown attributeorg.aspectj.weaver.MethodDeclarationLineNumber""ABORT" (1 exceptions)
at org.aspectj.tools.ant.taskdefs.AjcTask.executeInSameVM(AjcTask.java:1208)
at org.aspectj.tools.ant.taskdefs.AjcTask.execute(AjcTask.java:955)
at org.apache.tools.ant.Task.perform(Task.java:364)
at aftt.util.ant.AntRunner.compile(AntRunner.java:120)
at aftt.core.Project.instrument(Project.java:628)
at aftt.ui.MainWindow$8.actionPerformed(MainWindow.java:425)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)


Back to the top