[Mav-user] Strange NullPointerException

2003-02-19 Thread Tim Bardzil
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(FakeHttpServletResponse.java:67)
	at 
org.infohazard.maverick.transform.XSLTransform$Step.done(XSLTransform.java:186)
	at 
org.infohazard.maverick.view.DispatchedViewFactory$DispatchedView.go(DispatchedViewFactory.java:106)
	at org.infohazard.maverick.view.DocumentView.go(DocumentView.java:52)
	at 
org.infohazard.maverick.flow.ViewWithTransforms.go(ViewWithTransforms.java: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]


RE: [Mav-user] Strange NullPointerException

2003-02-19 Thread Schnitzer, Jeff
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]



RE: [Mav-user] Updates to maverick

2003-02-19 Thread Schnitzer, Jeff
The separated param collections and the absolute config path features
are checked in.  Take a look.

I'll get to the remaining issues soon.

Jeff

 From: Schnitzer, Jeff [EMAIL PROTECTED]
 
 Separating the three different param collections (controller, view,
 transform).
 
 Allowing file:, http:, ftp: in the maverick config file (and config
 transform) path.  Need to check to see if I can detect absolute vs
 relative URLs just by creating a URL and checking for
 MalformedURLException.  Oterhwise just explicit checks for those
strings
 will work.

 Review John-Mason's controller chaining code and figuring out how this
 can be morphed into a pluggable Controller framework.
 
 Adding a link to Roman's Tiers sample.
 
 Sorry about the lag.  Both work and life switched into high-gear at
the
 same time.
 
 Jeff Schnitzer
 [EMAIL PROTECTED]


---
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]