Thanks, I have solved it. I have changed my EVAL_BODY_INCLUDE to EVAL_BODY_BUFFERED and it worked.
Thanks again, Luis . ----- Original Message ----- From: "Shawn Bayern" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 28, 2002 3:58 PM Subject: Re: NullPointerException > On Mon, 28 Oct 2002, Luis A wrote: > > > I am getting the following exception: > > > > 2002-10-28 13:56:55 StandardWrapperValve[jsp]: Servlet.service() for servlet > > jsp threw exception > > java.lang.NullPointerException > > at star.DataAccessTag.doAfterBody(DataAccessTag.java:74) > > [...] > > public int doAfterBody() throws JspException { > > try { > > sb.append(body.getString()); > > The exception is most likely occurring because 'body' is null. Simply > try performing a check against 'null' before operating on it, as in > > if (body != null) > sp.append(body.getString()); > > I'm also not sure what the tag's supposed to do, but it's likely that > you're handling 'sb' incorrectly as well, and that you really mean to > reinitialize it in doStartTag(), not merely to clear it in release(). See > the guidelines I've written at > > http://jakarta.apache.org/taglibs/guidelines > > for information on properly managing tag-handler state. > > -- > Shawn Bayern > "JSTL in Action" http://www.jstlbook.com > > =========================================================================== > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com