Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331981 - NullPointerException BuilderManager when save any class
Summary: NullPointerException BuilderManager when save any class
Status: CLOSED DUPLICATE of bug 324190
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 1.6.11   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-07 02:23 EST by David CLA
Modified: 2011-01-21 11:47 EST (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 David CLA 2010-12-07 02:23:43 EST
Build Identifier: STS 2.5.1 CI-R6236-B157

When I save an annotated class this fail occurrs (the annotation used is not for aspects).

java.lang.NullPointerException
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.findOutputDirsForAspects(AjBuildManager.java:724)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.writeOutxmlFile(AjBuildManager.java:652)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performBuild(AjBuildManager.java:367)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:181)
at org.aspectj.a ... oBuildJob.run(AutoBuildJob.java:242)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Compile error: NullPointerException thrown: null

Reproducible: Always

Steps to Reproduce:
1.Create a maven project and import dependencies for spring mvc
2.Create a controller annotated class
3.Save
4.Create a J2EE project
5.Create a j2ee component like an annotated sessionbean
6. save
Comment 1 Andrew Clement CLA 2010-12-07 11:19:05 EST
looks like a dup of bug 324190 (although the slight difference in line number is concerning).  Can you update your AJDT and see if it is resolved?  Use the dev update site for eclipse 3.6:

http://download.eclipse.org/tools/ajdt/36/dev/update
Comment 2 Andrew Clement CLA 2011-01-20 16:29:57 EST
Did you try with an updated AJDT to see if it was already fixed?
Comment 3 David CLA 2011-01-21 04:32:15 EST
Yes, I updated the AJDT and it works fine now. 
Thanks.

(In reply to comment #2)
> Did you try with an updated AJDT to see if it was already fixed?
Comment 4 Andrew Clement CLA 2011-01-21 11:47:14 EST
thanks for confirming.

*** This bug has been marked as a duplicate of bug 324190 ***