You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by BugRat Mail System <to...@cortexity.com> on 2000/12/19 21:51:24 UTC

BugRat Report #625 has been filed.

Bug report #625 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com/BugRatViewer/ShowReport/625>

REPORT #625 Details.

Project: Struts
Category: Bug Report
SubCategory: New Bug Report
Class: webbug
State: received
Priority: medium
Severity: serious
Confidence: public
Environment: 
   Release: .5
   JVM Release: 1.2.2
   Operating System: Win2k
   OS Release: Win2k
   Platform: Win2k

Synopsis: 
Errors Tag(NullPointerException) - missing override for pageContext.getAttribute(...)

Description:
In the Errors Tag.java file the doStartTag() will try to process this line of code:

MessageResources messages = (MessageResources) pageContext.getAttribute(Action.MESSAGES_KEY, PageContext.APPLICATION_SCOPE);

This class file does not override the PageContext's getAttribute(String, int) method in the javax.servlet.jsp.PageContext class.  So the attempt to call this method will result in a Null Pointer Exception when trying to display the error tags.