Bug 309171 - Error in JDT Core during reconcile - NullPointerException
Summary: Error in JDT Core during reconcile - NullPointerException
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.7 M1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2010-04-14 13:11 EDT by Tom CLA
Modified: 2010-08-03 08:17 EDT (History)
2 users (show)

See Also:


Attachments
Stack trace from internal JDT.Core error. (5.60 KB, text/plain)
2010-04-14 13:13 EDT, Tom CLA
no flags Details
Entire Eclipse log showing all errors and messages involved. (46.21 KB, application/octet-stream)
2010-04-14 15:35 EDT, Tom CLA
no flags Details
Source file which instigates the problem. (4.58 KB, text/plain)
2010-04-14 15:36 EDT, Tom CLA
no flags Details
Workspace settings files (minus source) (590.83 KB, application/x-zip-compressed)
2010-04-21 18:09 EDT, Tom CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom CLA 2010-04-14 13:11:45 EDT
Build Identifier: Build id: 20100218-1602

Executing Project->Clean->All Projects produces series of errors starting with java.lang.NullPointerException and culminating with Error in JDT Core during reconcile.   May be (my) project or code dependent, but is reported strictly as an internal Eclipse error.   I will attempt to attach a complete stack trace and session data.

Reproducible: Sometimes

Steps to Reproduce:
1.Load Workspace (multi-project workspace)
2.Select Project->Clean->All Projects
3.Errors are reported in Error Log tab during clean/rebuild workspace (Rebuild Automatically is selected.)
Comment 1 Tom CLA 2010-04-14 13:13:19 EDT
Created attachment 164857 [details]
Stack trace from internal JDT.Core error.
Comment 2 Olivier Thomann CLA 2010-04-14 13:43:31 EDT
Steps to reproduce would be welcome.
Comment 3 Tom CLA 2010-04-14 15:34:11 EDT
More detailed steps to reproduce:
1.  Load workspace, execute Project-Clean-All.  Rebuild runs without errors.
2.  Open source file (attached), make non-significant change (add whitespace, for example).   Save change.  Workspace rebuild runs without errors.
3.  Run Project-Clean-All.  Project error log produces errors shown in 2nd attachment.

I cannot attach entire workspace because of size and proprietary code.  However, I am attaching one Java source file which, when changed, will instigate the problem.
Comment 4 Tom CLA 2010-04-14 15:35:27 EDT
Created attachment 164882 [details]
Entire Eclipse log showing all errors and messages involved.

This is in response to a request for additional detail (steps to reproduce).
Comment 5 Tom CLA 2010-04-14 15:36:37 EDT
Created attachment 164883 [details]
Source file which instigates the problem.
Comment 6 Olivier Thomann CLA 2010-04-14 15:50:06 EDT
I'll take a look.
Comment 7 Olivier Thomann CLA 2010-04-14 20:40:21 EDT
Do you have any annotation processors installed ?
Comment 8 Tom CLA 2010-04-15 10:34:45 EDT
(In reply to comment #7)
> Do you have any annotation processors installed ?

Tons.   So far this project is using annotations from:

Spring (3.0)
Lombok (0.9.2)
JUnit4 (4.7)
Hibernate (3.4)
 
We also have a custom annotation type written in-house.
Comment 9 Olivier Thomann CLA 2010-04-15 10:42:58 EDT
No, I meant annotation processors, not just annotations.
I'll try to reproduce today.
Comment 10 Olivier Thomann CLA 2010-04-15 11:24:08 EDT
(In reply to comment #8)
> Spring (3.0)
> Lombok (0.9.2)
> JUnit4 (4.7)
> Hibernate (3.4)
Could you please tell me where I can retrieve these bundles?
Thanks.

Also in the project where you have the problem, what do you have in this preference:
Properties>Java Compiler>Annotation Processing
?
Comment 11 Olivier Thomann CLA 2010-04-15 11:28:35 EDT
Once I can compile the given class without errors, I'll investigate the problem.
Comment 12 Olivier Thomann CLA 2010-04-15 11:41:56 EDT
I cannot reproduce the problem. I added all required classes in order to compile the attached source to remove compile errors.
Please provide your project settings.
Comment 13 Olivier Thomann CLA 2010-04-21 14:42:54 EDT
Tom,

More details are required for me to reproduce this issue. Without reproducable steps this won't be fixed.
Time is running out for 3.6.
Comment 14 Tom CLA 2010-04-21 18:00:57 EDT
No annotation processors installed.  As I said, I cannot attach all the source for our project, but I will attach the project settings and Maven POM files.
Comment 15 Tom CLA 2010-04-21 18:09:37 EDT
Created attachment 165666 [details]
Workspace settings files (minus source)

Copy of entire workspace, minus source.
Comment 16 Olivier Thomann CLA 2010-04-21 18:17:33 EDT
What the project contains the file that you attached ?

(In reply to comment #14)
> No annotation processors installed.  As I said, I cannot attach all the source
> for our project, but I will attach the project settings and Maven POM files.
I understand that you cannot attach the whole source, but right now I cannot reproduce.
So unless you can come up with steps that let me reproduce this issue, I am afraid I won't be able to fix this one.
Comment 17 Tom CLA 2010-04-21 19:08:23 EDT
The source file was from project "FirstCallDomain".   If it can't be duplicated, perhaps it was something wrong with my code and not Eclipse, in which case I apologize for taking your time with this.
Comment 18 Olivier Thomann CLA 2010-04-21 19:21:39 EDT
A compiler crash is never user's fault. So no need to apologize. I'd like to reproduce it to be able to fix it.
Comment 19 Olivier Thomann CLA 2010-05-04 12:53:47 EDT
Still no clue what could cause this issue.
If you could extract a workspace you could share with us, that would be great.
Comment 20 Tom CLA 2010-05-05 10:40:21 EDT
I can no longer duplicate the bug myself, unfortunately.   Hopefully what I have posted already will be of some help.  Sorry I can't do more at this time.  :(
Comment 21 Olivier Thomann CLA 2010-07-14 09:44:12 EDT
Closing as WORKSFORME.
Please reopen if you get it again.
Comment 22 Jay Arthanareeswaran CLA 2010-08-03 08:17:29 EDT
Verified for 3.7M1 using build I20100802-1800.