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

Bug 232127

Summary: NPE in JSPDirectiveValidator.getMessageSeverity
Product: [WebTools] WTP Source Editing Reporter: Gary Karasiuk <karasiuk>
Component: jst.jspAssignee: Nitin Dahyabhai <thatnitind>
Status: CLOSED WORKSFORME QA Contact: Nitin Dahyabhai <thatnitind>
Severity: major    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 232550    
Bug Blocks:    

Description Gary Karasiuk CLA 2008-05-14 13:30:14 EDT
This is related to bug 227623.

We are seeing many problems of this form:

!ENTRY org.eclipse.wst.validation 4 0 2008-05-05 11:21:20.687
!MESSAGE 
!STACK 0
java.lang.NullPointerException
        at
org.eclipse.jst.jsp.core.internal.validation.JSPDirectiveValidator.getMessageSeverity(Unknown
Source)
        at
org.eclipse.jst.jsp.core.internal.validation.JSPDirectiveValidator.loadPreferences(Unknown
Source)
        at
org.eclipse.jst.jsp.core.internal.validation.JSPDirectiveValidator.performValidation(Unknown
Source)
        at
org.eclipse.jst.jsp.core.internal.validation.JSPBatchValidator.performValidation(Unknown
Source)
        at
org.eclipse.jst.jsp.core.internal.validation.JSPBatchValidator.validateFile(Unknown
Source)
        at
org.eclipse.jst.jsp.core.internal.validation.JSPBatchValidator$2.run(Unknown
Source)
        at
org.eclipse.jdt.internal.core.BatchOperation.executeOperation(Unknown Source)
        at org.eclipse.jdt.internal.core.JavaModelOperation.run(Unknown Source)
        at org.eclipse.core.internal.resources.Workspace.run(Unknown Source)
Comment 1 Nitin Dahyabhai CLA 2008-05-14 14:27:39 EDT
This is NOT related to bug 227623.  Is the same validator instance being called from multiple threads?
Comment 2 Gary Karasiuk CLA 2008-05-14 14:37:40 EDT
Yes. There can be up to one thread per project.
Comment 3 Gary Karasiuk CLA 2008-05-16 13:52:28 EDT
If we do 232550 then we don't need to fix this bug.
Comment 4 Nitin Dahyabhai CLA 2009-03-12 02:47:46 EDT
Resolving as worksforme since bug 232550 has been fixed.
Comment 5 Gary Karasiuk CLA 2009-03-12 05:52:12 EDT
closing