Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Null Pointer Exception in the New AspectJ version

Hi,
I just upgraded my AspectJ version through Update Sites in Eclipse. My AspectJ refactored project that was working fine with the old version, is now giving me the following compilation error:
 
Internal compiler error
java.lang.NullPointerException
 at org.aspectj.org.eclipse.jdt.internal.compiler.ast.AllocationExpression.generateCode(AllocationExpression.java:97)
 at org.aspectj.org.eclipse.jdt.internal.compiler.ast.ArrayInitializer.generateCode(ArrayInitializer.java:99)
 at org.aspectj.org.eclipse.jdt.internal.compiler.ast.ArrayAllocationExpression.generateCode(ArrayAllocationExpression.java:62)
 at org.aspectj.org.eclipse.jdt.internal.compiler.ast.ReturnStatement.generateCode(ReturnStatement.java:116)
 at org.aspectj.org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:222)
 at org.aspectj.org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:169)
 at org.aspectj.ajdt.internal.compiler.ast.InterTypeConstructorDeclaration.generateCode(InterTypeConstructorDeclaration.java:266)
 at org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:562)
 at org.aspectj.ajdt.internal.compiler.ast.AspectDeclaration.generateCode(AspectDeclaration.java:261)
 at org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:623)
 at org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.generateCode(CompilationUnitDeclaration.java:180)
 at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:556)
 at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:365)
 at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:727)
 at org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuild(AjBuildManager.java:206)
 at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:140)
 at org.aspectj.ajde.internal.CompilerAdapter.compile(CompilerAdapter.java:121)
 at org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread.run(AspectJBuildManager.java:191)
 ClockPublisher.aj RefactoredPrevaylerSystem/aspects/censorclock/weave  July 14, 2005 1:09:46 PM
 
I looked at the source code, and it is happening at the point, where I have a constructor as an introduction, and I am invoking the "super( )" constructor from it. Following is the constructor, where I get the error. If I comment out the "super " statement, it works fine.
 
 public CentralPublisher.new(Clock clock, TransactionCensor censor, TransactionLogger logger) {
     super(new PausableClock(clock));    
  _pausableClock = (PausableClock)_clock; 
  _censor = censor;
   _logger = logger;  
  
   }
 
I will appreciate your help.


Thanks,
Sincerely,
Irum Godil.

 


Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.

Back to the top