Bug 271127 - getting Internal Compiler error, java.lang.NullPointerException during the build process
Summary: getting Internal Compiler error, java.lang.NullPointerException during the bu...
Status: VERIFIED DUPLICATE of bug 233359
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: 3.5 M7   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-03 09:25 EDT by Srinivas Surapaneni CLA
Modified: 2009-04-28 09:41 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Srinivas Surapaneni CLA 2009-04-03 09:25:34 EDT
Build ID:  M20090211-1700

Steps To Reproduce:
1.This is happening on large projects.
2.This happens after 5-6 builds in the iterative development
3.when this happens, we always have to close eclipse, open it again and clean build to resolve this issue


More information:
I am attaching the workspace log file which has the stack trace associated to this error
Comment 1 Srinivas Surapaneni CLA 2009-04-03 09:28:21 EDT
!ENTRY org.eclipse.jdt.core 4 2 2009-04-02 15:13:20.179
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.binarySearch(ReferenceBinding.java:108)
	at org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.getMethods(ParameterizedTypeBinding.java:569)
	at org.eclipse.jdt.internal.compiler.lookup.Scope.findMethod(Scope.java:1086)
	at org.eclipse.jdt.internal.compiler.lookup.Scope.findMethod(Scope.java:1057)
	at org.eclipse.jdt.internal.compiler.lookup.Scope.getMethod(Scope.java:2113)
	at org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:429)
	at org.eclipse.jdt.internal.compiler.ast.Expression.resolve(Expression.java:883)
	at org.eclipse.jdt.internal.compiler.ast.Block.resolve(Block.java:100)
	at org.eclipse.jdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:233)
	at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:443)
	at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:191)
	at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:405)
	at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1095)
	at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1185)
	at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:537)
	at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:697)
	at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:475)
	at org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:736)
	at org.eclipse.jdt.apt.core.internal.env.BaseProcessorEnv.createASTs(BaseProcessorEnv.java:857)
	at org.eclipse.jdt.apt.core.internal.env.ReconcileEnv.openPipeline(ReconcileEnv.java:109)
	at org.eclipse.jdt.apt.core.internal.env.AbstractCompilationEnv.newReconcileEnv(AbstractCompilationEnv.java:98)
	at org.eclipse.jdt.apt.core.internal.APTDispatchRunnable.reconcile(APTDispatchRunnable.java:213)
	at org.eclipse.jdt.apt.core.internal.APTDispatchRunnable.runAPTDuringReconcile(APTDispatchRunnable.java:160)
	at org.eclipse.jdt.apt.core.internal.AptCompilationParticipant.reconcile(AptCompilationParticipant.java:224)
	at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation$1.run(ReconcileWorkingCopyOperation.java:258)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.notifyParticipants(ReconcileWorkingCopyOperation.java:244)
	at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
	at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:716)
	at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:777)
	at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1230)
	at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:124)
	at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.access$0(JavaReconcilingStrategy.java:108)
	at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:89)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:87)
	at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:150)
	at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:102)
	at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:77)
	at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:208)

!ENTRY org.eclipse.jdt.core 4 4 2009-04-02 15:13:20.195
!MESSAGE Exception occurred in reconcile participant
!STACK 0
java.lang.NullPointerException
	at org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.binarySearch(ReferenceBinding.java:108)
	at org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.getMethods(ParameterizedTypeBinding.java:569)
	at org.eclipse.jdt.internal.compiler.lookup.Scope.findMethod(Scope.java:1086)
	at org.eclipse.jdt.internal.compiler.lookup.Scope.findMethod(Scope.java:1057)
	at org.eclipse.jdt.internal.compiler.lookup.Scope.getMethod(Scope.java:2113)
	at org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:429)
	at org.eclipse.jdt.internal.compiler.ast.Expression.resolve(Expression.java:883)
	at org.eclipse.jdt.internal.compiler.ast.Block.resolve(Block.java:100)
	at org.eclipse.jdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:233)
	at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:443)
	at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:191)
	at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:405)
	at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1095)
	at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1185)
	at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:537)
	at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:697)
	at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:475)
	at org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:736)
	at org.eclipse.jdt.apt.core.internal.env.BaseProcessorEnv.createASTs(BaseProcessorEnv.java:857)
	at org.eclipse.jdt.apt.core.internal.env.ReconcileEnv.openPipeline(ReconcileEnv.java:109)
	at org.eclipse.jdt.apt.core.internal.env.AbstractCompilationEnv.newReconcileEnv(AbstractCompilationEnv.java:98)
	at org.eclipse.jdt.apt.core.internal.APTDispatchRunnable.reconcile(APTDispatchRunnable.java:213)
	at org.eclipse.jdt.apt.core.internal.APTDispatchRunnable.runAPTDuringReconcile(APTDispatchRunnable.java:160)
	at org.eclipse.jdt.apt.core.internal.AptCompilationParticipant.reconcile(AptCompilationParticipant.java:224)
	at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation$1.run(ReconcileWorkingCopyOperation.java:258)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.notifyParticipants(ReconcileWorkingCopyOperation.java:244)
	at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:94)
	at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:716)
	at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:777)
	at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1230)
	at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:124)
	at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.access$0(JavaReconcilingStrategy.java:108)
	at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:89)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:87)
	at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:150)
	at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:102)
	at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:77)
	at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:208)

!ENTRY org.eclipse.core.resources 4 2 2009-04-02 15:13:24.320
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.binarySearch(ReferenceBinding.java:108)
	at org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.getMethods(ParameterizedTypeBinding.java:569)
	at org.eclipse.jdt.internal.compiler.lookup.Scope.findMethod(Scope.java:1086)
	at org.eclipse.jdt.internal.compiler.lookup.Scope.findMethod(Scope.java:1057)
	at org.eclipse.jdt.internal.compiler.lookup.Scope.getMethod(Scope.java:2113)
	at org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:429)
	at org.eclipse.jdt.internal.compiler.ast.Expression.resolve(Expression.java:883)
	at org.eclipse.jdt.internal.compiler.ast.Block.resolve(Block.java:100)
	at org.eclipse.jdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:233)
	at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:443)
	at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:191)
	at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:405)
	at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1095)
	at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1185)
	at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:537)
	at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:743)
	at org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:137)
	at java.lang.Thread.run(Thread.java:619)

Comment 2 Kent Johnson CLA 2009-04-03 09:37:58 EDT
We will need a reproduceable testcase to track this down.

Please try to isolate to a specific project & if possible a type
Comment 3 Srinivas Surapaneni CLA 2009-04-03 10:22:06 EDT
(In reply to comment #2)
> We will need a reproduceable testcase to track this down.
> 
> Please try to isolate to a specific project & if possible a type
> 

Hi

This does not happen on small projects. Ours is J2EE ear project with 8 utility projects and with 400 files using annotations.

It is very difficult to recreate that big project in a reproducer

Is it possible to find out anything from stack trace.?
Thanks
Comment 4 Kent Johnson CLA 2009-04-03 10:43:56 EDT
Sorry but this code is run by every eclipse user & works fine for them.

There has to be something unique about one of your types, or your setup.

Does every full build fail? Or just once in a while?

Please build individual projects in your workspace to see which one is affected.
Comment 5 Srinivas Surapaneni CLA 2009-04-03 11:32:53 EDT
(In reply to comment #4)
> Sorry but this code is run by every eclipse user & works fine for them.
> 
> There has to be something unique about one of your types, or your setup.
> 
> Does every full build fail? Or just once in a while?
> 
> Please build individual projects in your workspace to see which one is
> affected.
> 

This happens after every 5-6 builds

When this happens, we have to restart eclipse and do clean build to work again

We have a big project with beehive pageflows annotation processing. Most of the time is spent on that project during compilation/build. When compiling annotations, eclipse uses 1400 heap size ( we are using -Xms1200m -Xmx1400m ) for the vm heap size

In the last 6 months, our project has grown bigger. It used to work fine before.We are seeing this after the project became big
Comment 6 Kent Johnson CLA 2009-04-03 13:50:41 EDT
In most cases when its a compiler problem, its reproduceable every build (ie. every time you save a specific file) and not every 5-6 build.

Since this appears somewhat random, it could be caused by the annotation processor (just a guess), or something else that is generating slightly different results.

We need to be able to reproduce this problem to track it down.
Comment 7 Srinivas Surapaneni CLA 2009-04-03 13:53:34 EDT
(In reply to comment #6)
> In most cases when its a compiler problem, its reproduceable every build (ie.
> every time you save a specific file) and not every 5-6 build.
> 
> Since this appears somewhat random, it could be caused by the annotation
> processor (just a guess), or something else that is generating slightly
> different results.
> 
> We need to be able to reproduce this problem to track it down.
> 

can we start eclipse with any debug flags to know what the real issue is?
Comment 8 Kent Johnson CLA 2009-04-15 13:13:36 EDT
Which VM are you using ?

Since this appears somewhat random (happens every 5-6 builds), it may be caused by a VM bug.
Comment 9 Srinivas Surapaneni CLA 2009-04-15 13:29:45 EDT
I am using jrockit

I tried the latest sun JVM and it is working fine

Thanks
Srinivas



(In reply to comment #8)
> Which VM are you using ?
> 
> Since this appears somewhat random (happens every 5-6 builds), it may be caused
> by a VM bug.
> 

Comment 10 Kent Johnson CLA 2009-04-15 13:39:14 EDT
Then I'll close this as a dup of bug 233359 since it was also traced back to the jrockit vm.

*** This bug has been marked as a duplicate of bug 233359 ***
Comment 11 Jay Arthanareeswaran CLA 2009-04-28 09:35:05 EDT
Verified for 3.5M7