Bug 45522 - Exception thrown when doing ant build within AJDT
Summary: Exception thrown when doing ant build within AJDT
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: Core (show other bugs)
Version: 1.1.4   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Sian Whiting CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-24 13:03 EDT by Julie Waterhouse CLA
Modified: 2004-07-27 05:05 EDT (History)
0 users

See Also:


Attachments
Simple test project containing ant build script (3.04 KB, application/x-zip-compressed)
2003-10-24 13:09 EDT, Julie Waterhouse CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Julie Waterhouse CLA 2003-10-24 13:03:58 EDT
When trying to build a simple Aspect project in Eclipse/AJDT using ant, I get 
the following exception. If I run my build from the command line, I get no 
error.

This was also reported by someone else on the web newsgroup (Oct 23rd posting 
titled "Ant build Aspect Project from with eclipse").  I am on Eclipse 2.1.1.  
The poster tried with Eclipse 2.1, M4 and WSAD.

Here's the error:

        [iajc] ABORT
        [iajc] Exception thrown from AspectJ 1.1.1
        [iajc] 
        [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] 
        [iajc] Bugs for exceptions thrown have titles File:line from the top 
stack, 
        [iajc] e.g., "SomeFile.java:243"
        [iajc] 
        [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] (class: 
org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment, method: 
createBinaryTypeFrom signature: 
(Lorg/eclipse/jdt/internal/compiler/env/IBinaryType;Lorg/eclipse/jdt/internal/co
mpiler/lookup/PackageBinding;Z)Lorg/eclipse/jdt/internal/compiler(¨?Gè2`3
Ü6?õÄ(¨
        [iajc] (class: 
org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment, method: 
createBinaryTypeFrom signature: 
(Lorg/eclipse/jdt/internal/compiler/env/IBinaryType;Lorg/eclipse/jdt/internal/co
mpiler/lookup/PackageBinding;Z)Lorg/eclipse/jdt/internal/compiler(¨?Gè2`3
Ü6?õÄ(¨
        [iajc] java.lang.VerifyError: (class: 
org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment, method: 
createBinaryTypeFrom signature: 
(Lorg/eclipse/jdt/internal/compiler/env/IBinaryType;Lorg/eclipse/jdt/internal/co
mpiler/lookup/PackageBinding;Z)Lorg/eclipse/jdt/internal/compiler(¨?Gè2`3
Ü6?õÄ(¨
        [iajc] 	at 
org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation
(AjBuildManager.java:352)
        [iajc] 	at org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuild
(AjBuildManager.java:125)
        [iajc] 	at 
org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild
(AjBuildManager.java:70)
        [iajc] 	at org.aspectj.ajdt.ajc.AjdtCommand.doCommand
(AjdtCommand.java:99)
        [iajc] 	at org.aspectj.ajdt.ajc.AjdtCommand.runCommand
(AjdtCommand.java:53)
        [iajc] 	at org.aspectj.tools.ajc.Main.run(Main.java:217)
        [iajc] 	at org.aspectj.tools.ajc.Main.runMain(Main.java:155)
        [iajc] 	at org.aspectj.tools.ant.taskdefs.AjcTask.executeInSameVM
(AjcTask.java:1047)
        [iajc] 	at org.aspectj.tools.ant.taskdefs.AjcTask.execute
(AjcTask.java:904)
        [iajc] 	at org.apache.tools.ant.UnknownElement.execute
(UnknownElement.java:193)
        [iajc] 	at org.apache.tools.ant.Task.perform(Task.java:341)
        [iajc] 	at org.apache.tools.ant.Target.execute(Target.java:309)
        [iajc] 	at org.apache.tools.ant.Target.performTasks(Target.java:336)
        [iajc] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        [iajc] 	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run
(InternalAntRunner.java:571)
        [iajc] 	at org.eclipse.ant.internal.core.ant.InternalAntRunner.run
(InternalAntRunner.java:367)
        [iajc] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        [iajc] 	at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        [iajc] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        [iajc] 	at java.lang.reflect.Method.invoke(Method.java:324)
        [iajc] 	at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335)
        [iajc] 	at 
org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDelegate
$1.run(AntLaunchDelegate.java:172)
        [iajc] 	at java.lang.Thread.run(Thread.java:536)
        [iajc] 
        [iajc] BUILD FAILED: 
file:E:/eclipse_wkspc_enforcement/workspace/TestAntBuild/build.xml:45: fail due 
to VerifyError "(class: 
org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment, method: 
createBinaryTypeFrom signature: 
(Lorg/eclipse/jdt/internal/compiler/env/IBinaryType;Lorg/eclipse/jdt/internal/co
mpiler/lookup/PackageBinding;Z)Lorg/eclipse/jdt/internal/compiler(¨ˆGè2`3
Ü6�õÄ(¨""ABORT" (1 exceptions)
Comment 1 Julie Waterhouse CLA 2003-10-24 13:09:00 EDT
Created attachment 6546 [details]
Simple test project containing ant build script

To reproduce the bug, simply create a test AspectJ project called TestAntBuild,
and import the attached zip file.  Run Ant on the build.xml.
Comment 2 Sian Whiting CLA 2004-07-26 12:33:38 EDT
Tested in 1.1.11 (with a couple of environmental changes to the build.xml) and 
the build was successful.
Comment 3 Sian Whiting CLA 2004-07-27 05:05:44 EDT
Fixed in 1.1.11