Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » JSP isErrorPage="true" validation
JSP isErrorPage="true" validation [message #814289] Tue, 06 March 2012 09:15 Go to next message
Eugene is currently offline Eugene
Messages: 3
Registered: July 2009
Junior Member
Eclipse Platform
3.7.1.M20110909-1335

Eclipse Java Web Developer Tools
3.3.1.v201108102009-7F7AFO3C25TohHcojh0Zyz-B7FyifIcGz-xuz-_W

error_page.jsp

<%@ page language="java" contentType="text/html;charset=UTF-8"
pageEncoding="UTF-8" isErrorPage="true"%>
<%
exception.printStackTrace();
%>

Validation message:
Null pointer access: The variable exception can only be null at this
location

Why?!
Re: JSP isErrorPage=&quot;true&quot; validation [message #814671 is a reply to message #814289] Tue, 06 March 2012 18:50 Go to previous messageGo to next message
Nick Sandonato is currently offline Nick Sandonato
Messages: 126
Registered: July 2009
Senior Member
Hi Eugene,

Looks like we were missing the initialization of the 'exception' field during JSP translation. This caused 'exception' to only ever be null, and thus producing the problem that you see. I've gone ahead and fixed this via https://bugs.eclipse.org/373410.

If it is hampering your development, there are validation severity settings that are accessible from the Preferences. Navigate to Web > JSP Files > Validation and then under the Java section, you can change "Null pointer access" to something less severe.

Thanks for catching this!
Re: JSP isErrorPage=&amp;quot;true&amp;quot; validation [message #830021 is a reply to message #814671] Tue, 27 March 2012 04:27 Go to previous messageGo to next message
Eugene is currently offline Eugene
Messages: 3
Registered: July 2009
Junior Member
07.03.2012 0:50, Nick Sandonato написал:
> Hi Eugene,
>
> Looks like we were missing the initialization of the 'exception' field
> during JSP translation. This caused 'exception' to only ever be null,
> and thus producing the problem that you see. I've gone ahead and fixed
> this via https://bugs.eclipse.org/373410.
>
> If it is hampering your development, there are validation severity
> settings that are accessible from the Preferences. Navigate to Web > JSP
> Files > Validation and then under the Java section, you can change "Null
> pointer access" to something less severe.
>
> Thanks for catching this!

Thanks
But:
Target Milestone: 3.4 M6
Can you add bugfix in 3.3.2 ?
Re: JSP isErrorPage=&amp;quot;true&amp;quot; validation [message #830490 is a reply to message #830021] Tue, 27 March 2012 17:58 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2314
Registered: July 2009
Senior Member
3.3.2 shipped nearly a month ago; there is no adding to it. 3.4 will be out in June.

---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:web project deployment on apache httpd server
Next Topic:Content assist for taglibs not working in JSP editor
Goto Forum:
  


Current Time: Fri Oct 31 15:55:31 GMT 2014

Powered by FUDForum. Page generated in 0.01828 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software