This happens when the previous step (or view) never called HttpServletResponse.getOutputStream() or getWriter(). I believe I recently checked in a patch that prints a better error message in this case.
Maybe the jsp page is misnamed? I would normally expect that to cause getRequestDispatcher() to return null, but it would explain the problem. What container/version are you using? Jeff Schnitzer [EMAIL PROTECTED] > -----Original Message----- > From: Tim Bardzil [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 19, 2003 1:46 PM > To: [EMAIL PROTECTED] > Subject: [Mav-user] Strange NullPointerException > > I am a newbie to Maverick. I wrote a simple webapp to produce a PDF > from a JSP page using Docbook XML -> XSL:FO (w/ XSLT) -> PDF (w/ FOP). > This is working fine but now I'm trying to integrate Maverick into our > existing webapp. I'm pretty sure I have everything set up the same but > when I try to run in in the existing webapp I'm getting a strange > NullPointerException: > > java.lang.NullPointerException > at > org.infohazard.maverick.util.FakeHttpServletResponse.getOutputAsReader(F ak > eHttpServletResponse.java:67) > at > org.infohazard.maverick.transform.XSLTransform$Step.done(XSLTransform.ja va > :186) > at > org.infohazard.maverick.view.DispatchedViewFactory$DispatchedView.go(Dis pa > tchedViewFactory.java:106) > at > org.infohazard.maverick.view.DocumentView.go(DocumentView.java:52) > at > org.infohazard.maverick.flow.ViewWithTransforms.go(ViewWithTransforms.ja va > :39) > at org.infohazard.maverick.flow.CommandBase.go(CommandBase.java:50) > at org.infohazard.maverick.Dispatcher.service(Dispatcher.java:179) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > > Any ideas?? > > Thanks, > Tim > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > [INVALID FOOTER] ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge [INVALID FOOTER]