Personally I would log this as a bug
org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:844)
should *not* be allowing nulls as string

Anyone else ??

Martin Gainty

(cell) 617-852-7822
(e) [EMAIL PROTECTED]
(http)www.laconiadatasystems.com



Hi, Sebastien.

This might be caused since Struts logs what bean it created and is going to populate. Turn off the RequestProcessor's log4j category and the call to toString() should be gone.

Hiran

-----------------------------------------
Hiran Chaudhuri
SAG Systemhaus GmbH
Elsenheimer Straße 11
80867 München
Phone +49-89-54 74 21 34
Fax   +49-89-54 74 21 99




> -----Original Message----- > From: Sebastian Ho [mailto:[EMAIL PROTECTED] > Sent: Mittwoch, 6. Oktober 2004 12:27 > To: Struts Users Mailing List > Subject: RE: Cannot create ActionForm > > I traced it to a nullpointerexception. Didn't know why Struts > is calling > toString() which throws NullPointerException. Anyway, it > uncovers the bug in my toString. > > Thanks Hiran! > > Sebastian > > > > > > > 2004-10-06 17:47:33,268 ERROR [org.apache.struts.util.RequestUtils] > Error creating form bean of class > sg.edu.astar.flamingo.web.proteomics.form.FileForm > java.lang.NullPointerException > at > sg.edu.astar.flamingo.web.proteomics.form.FileForm.toString(Fi > leForm.java:200) > at java.lang.String.valueOf(String.java:2131) > at java.lang.StringBuffer.append(StringBuffer.java:370) > at > org.apache.struts.util.RequestUtils.createActionForm(RequestUt > ils.java:844) > at > org.apache.struts.action.RequestProcessor.processActionForm(Re > questProcessor.java:364) > at > org.apache.struts.action.RequestProcessor.process(RequestProce > ssor.java:253) > at > org.apache.struts.action.ActionServlet.process(ActionServlet.j > ava:1482) > at > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > > > On Wed, 2004-10-06 at 19:08, [EMAIL PROTECTED] wrote: > > Hi, Sebastian. > > > > It looks like the call to new FileForm() throws an exception. > > Have a look at your Tomcat logfiles. There might be more > information about the JSP compiler failing. > > > > If that is not the case, check that the class exists (class > name/package name). > > If it is the first instantiation in your application, it > might be a class loading problem. Maybe another class > FileForm relies on cannot be found. > > If it is a second, ... instantiation check what code runs > in the default constructor. > > > > This is what I'd go for. > > > > Hiran > > > > ----------------------------------------- > > Hiran Chaudhuri > > SAG Systemhaus GmbH > > Elsenheimer Straße 11 > > 80867 München > > Phone +49-89-54 74 21 34 > > Fax +49-89-54 74 21 99 > > > > > > > > > > > -----Original Message----- > > > From: Sebastian Ho [mailto:[EMAIL PROTECTED] > > > Sent: Mittwoch, 6. Oktober 2004 11:57 > > > To: Struts Users Mailing List > > > Subject: RE: Cannot create ActionForm > > > > > > You mean struts log file? Give me some time. Mean while > this is the > > > output from my server. > > > > > > 18:28:33,772 ERROR [Engine] ApplicationDispatcher[/Flamingo] > > > Servlet.service() for servlet jsp threw exception > > > org.apache.jasper.JasperException: Exception creating > bean of class > > > sg.edu.astar.flamingo.web.proteomics.form.FileForm: {1} > > > at > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to