Bug 34779 - cannot get aspectj compiler to work in ant build
Summary: cannot get aspectj compiler to work in ant build
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P2 major (vote)
Target Milestone: ---   Edit
Assignee: Jim Hugunin CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 37504 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-03-11 21:07 EST by karim qazi CLA
Modified: 2003-05-19 16:46 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 karim qazi CLA 2003-03-11 21:07:51 EST
I keep getting the following error:
     [echo] Compiling source code...
     [iajc] Exception thrown from AspectJ 1.1b2

     [iajc] This might be logged as a bug already -- see the bug database at
     [iajc]   http://dev.eclipse.org (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] To make the bug a priority, please include a test program
     [iajc] that can reproduce this exception.
     [iajc] corrupted file parser2.rsc
     [iajc] corrupted file parser2.rsc
     [iajc] java.lang.ExceptionInInitializerError: corrupted file parser2.rsc
     [iajc]     at org.eclipse.jdt.internal.compiler.parser.Parser.<clinit>(Unknown Source)
     [iajc]     at org.eclipse.jdt.internal.compiler.Compiler.<init>(Unknown Source)
     [iajc]     at org.aspectj.ajdt.internal.compiler.AjCompiler.<init>(Unknown Source)
     [iajc]     at org.aspectj.ajdt.internal.core.builder.AjBuildManager.makeCompiler(Unknown Source)
     [iajc]     at org.aspectj.ajdt.internal.core.builder.AjBuildManager$BatchBuilder.<init>(Unknown Source)
     [iajc]     at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(Unknown Source)
     [iajc]     at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(Unknown Source)
     [iajc]     at org.aspectj.tools.ajc.Main.run(Unknown Source)
     [iajc]     at org.aspectj.tools.ajc.Main.runMain(Unknown Source)
     [iajc]     at org.aspectj.tools.ant.taskdefs.AjcTask.execute(Unknown Source)
     [iajc]     at org.apache.tools.ant.Task.perform(Task.java:319)
     [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:1306)
     [iajc]     at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
     [iajc]     at org.apache.tools.ant.Main.runBuild(Main.java:610)
     [iajc]     at org.apache.tools.ant.Main.start(Main.java:196)
     [iajc]     at org.apache.tools.ant.Main.main(Main.java:235)

Do I have something set up in my environment wrong?
I am running mac os x 10.2.4 with jdk1.4.1.
Comment 1 Jim Hugunin CLA 2003-03-12 18:19:07 EST
Can you run the compiler successfully from the command-line and not from ant 
and compile one of the example applications?  I haven't seen this error 
reported before, but it does look like a detailed configuration issue.  I'd
recommend that you try working from the command-line with a small example so 
that you can examine exactly what's on your classpath.

I'd also suggest that you try the latest version of the compiler.  1.1rc1 
should be out in the next couple of days.

If none of this works, then we'll want to bring this up on the aspectj-dev 
mailing list.  This appears to be an OS X configuration issue and while the 
core committers to AspectJ work on Windows/Linux, I know that a number of 
people on the aspectj-dev list work with AspectJ on OS X quite effectively.
Comment 2 Jim Hugunin CLA 2003-04-10 14:12:40 EDT
This bug should be fixed in the current cvs tree.  The fix was to move AspectJ 
to the eclipse 2.1 code base rather than 2.0 where they had already fixed this 
error.

Note: I don't have access to a Mac so this fix is unverified.
Comment 3 Jim Hugunin CLA 2003-05-12 12:45:48 EDT
*** Bug 37504 has been marked as a duplicate of this bug. ***
Comment 4 Wöginger Martin CLA 2003-05-14 10:03:29 EDT
I have Eclipse 2.1 and aspectj 1.1 rc2 and still get this error with every compile. i tried the ajc 
command line tool and the ant tasks. so i cannot get aspectj to work at all ?!

i have osx 10.2.6 and java 1.4.1.
Comment 5 Wöginger Martin CLA 2003-05-14 10:20:00 EDT
i am awfully sorry folks, i had rc1.....
Comment 6 Jim Hugunin CLA 2003-05-19 16:46:42 EDT
This is fixed in rc2, the reopening was a mistake, see comments below.