Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367800

Summary: NPE in JavaEEProjectUtilities.isJEEComponent(line 497)
Product: [WebTools] WTP Java EE Tools Reporter: Rosendo Martinez <rosendo>
Component: jst.j2eeAssignee: Rosendo Martinez <rosendo>
Status: RESOLVED FIXED QA Contact: Chuck Bridgham <cbridgha>
Severity: normal    
Priority: P3 CC: ccc, shr31223
Version: 3.3.1Flags: cbridgha: review+
Target Milestone: 3.3.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed R3_3_maintenance patch shr31223: iplog+

Description Rosendo Martinez CLA 2012-01-03 17:05:35 EST
Build Identifier: 

NPE at JavaEEProjectUtilities.isJEEComponent. See the log trace:


[exec] !ENTRY org.eclipse.wst.validation 4 0 2011-10-06 03:45:28.520
     [exec] java.lang.NullPointerException
     [exec]     at org.eclipse.jst.j2ee.project.JavaEEProjectUtilities.isJEEComponent(JavaEEProjectUtilities.java:497)
     [exec]     at org.eclipse.jst.j2ee.project.JavaEEProjectUtilities.isLegacyJ2EEComponent(JavaEEProjectUtilities.java:661)
     [exec]     at org.eclipse.jst.j2ee.internal.classpathdep.ClasspathDependencyValidator.validateInJob(ClasspathDependencyValidator.java:90)
     [exec]     at org.eclipse.wst.validation.internal.operations.ValidatorJob.run(ValidatorJob.java:78)
     [exec]     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

The use of ModuleCoreNature.isFlexibleProject() is suggested to avoid this NPE.

Reproducible: Always
Comment 1 Rosendo Martinez CLA 2012-01-05 12:43:46 EST
Created attachment 209091 [details]
Proposed R3_3_maintenance patch
Comment 2 Chuck Bridgham CLA 2012-01-05 17:05:21 EST
approved
Comment 3 Roberto Sanchez Herrera CLA 2012-01-11 11:11:59 EST
Code committed to R3_3_maintenance and HEAD for WTP 3.3.2 and 3.4. Resolving defect