RE: Cannot create ActionForm

2004-10-06 Thread Martin Gainty
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

2004-10-06 Thread Hiran.Chaudhuri
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

2004-10-06 Thread Sebastian Ho
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

2004-10-06 Thread Hiran.Chaudhuri
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

2004-10-06 Thread Sebastian Ho
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
at java.lang.Thread.run(Thread.java:534)

On Wed, 2004-10-06 at 18:51, [EMAIL PROTECTED] wrote:
> 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]
> 
> 


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



RE: Cannot create ActionForm

2004-10-06 Thread Hiran.Chaudhuri
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]



Cannot create ActionForm

2004-10-06 Thread Sebastian Ho
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]