Bug 49787 - Compiler throws NullPointerException
Summary: Compiler throws NullPointerException
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.1.1   Edit
Hardware: PC Windows 2000
: P3 blocker (vote)
Target Milestone: 1.2   Edit
Assignee: Jim Hugunin CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-09 14:30 EST by gary.cristofoli CLA
Modified: 2004-03-19 09:53 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gary.cristofoli CLA 2004-01-09 14:30:31 EST
Trying AspectJ for first time. Tried to compile my project from within JBuilder 
9 with the AspectJ compiler. I have not added any AspectJ syntax whatsoever to 
my project yet, just wanted to see a clean compile first. Near the end of the 
compile, 2 exceptions are thrown.  The project compiles fine with Java 1.4.2.  
Here are the 2 exceptions: 

Message: NullPointerException thrown: null
Stack trace: java.lang.NullPointerException

	at org.aspectj.ajdt.internal.core.builder.AjBuildManager$1.acceptResult
(AjBuildManager.java:397)

	at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:350)

	at 
org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation
(AjBuildManager.java:373)

	at org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuild
(AjBuildManager.java:125)

	at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild
(AjBuildManager.java:70)

	at org.aspectj.ajde.internal.CompilerAdapter.compile
(CompilerAdapter.java:103)

	at org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread.run
(AspectJBuildManager.java:165)



Message: NullPointerException thrown: null
Stack trace: java.lang.NullPointerException

	at org.aspectj.ajdt.internal.core.builder.AjBuildManager$1.acceptResult
(AjBuildManager.java:397)

	at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:350)

	at 
org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation
(AjBuildManager.java:373)

	at org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuild
(AjBuildManager.java:125)

	at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild
(AjBuildManager.java:70)

	at org.aspectj.ajde.internal.CompilerAdapter.compile
(CompilerAdapter.java:103)

	at org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread.run
(AspectJBuildManager.java:165)
Comment 1 gary.cristofoli CLA 2004-01-09 15:33:13 EST
I fixed it by changing the jbuilder.config file to have: vmparam -Xmx512m
Compiles ok now..
Comment 2 Adrian Colyer CLA 2004-03-19 09:53:45 EST
updating target flag to indicate inclusion in 1.2 release.