RE: Cannot create ActionForm
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]
RE: Cannot create ActionForm
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]
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(FileForm.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(RequestUtils.java:844) at org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor.java:364) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:253) at org.apache.struts.action.ActionServlet.process(ActionServlet.java: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]
RE: Cannot create ActionForm
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]
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 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) at org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1012) at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:582) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:260) at org.apache.struts.action.ActionServlet.process(ActionServlet.java: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) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java: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) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at sg.edu.astar.flamingo.web.proteomics.security.SecurityFilter.doFilter(SecurityFilter.java:77) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apach
RE: Cannot create ActionForm
Hi, Sebastian. Seems like Struts cannot create an instance of your FileForm class. Something must be wrong during (class) construction. Do your log files reveal some more information? 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:34 > To: Struts Users Mailing List > Subject: Cannot create ActionForm > > Hi > > What can go wrong when this is thrown? > > javax.servlet.ServletException: Exception creating bean of class > sg.edu.astar.flamingo.web.proteomics.form.FileForm: {1} > > FileForm contains some FormFile variables and I have the > correct enctype in my JSP already. > > Tell me if codes are needed before I posted them. > > Thanks > > Sebastian Ho > > > - > 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]