You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Daniel WAMARA <dw...@hotmail.com> on 2001/11/13 19:40:27 UTC
File upload - Help needed in emergecy
Hi each and everyone,
I'm just back from the Servlets.com website and I'm now more lost than I was
when I entered there :
I'm trying to make a file upload thru a multi-part/formdata and for getting
the file, I've just implemented a class implenting the Struts FormFile and
everything should work well I think but as soon as I click on the "Upload"
button, this is what I get in my page :
Error: 500
Location: /mailorder/upload.do
Internal Servlet Error:
javax.servlet.ServletException: BeanUtils.populate
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.servlet.ServletException(java.lang.String, java.lang.Throwable)
void org.apache.struts.util.RequestUtils.populate(java.lang.Object,
java.lang.String, java.lang.String, javax.servlet.http.HttpServletRequest)
void
org.apache.struts.action.ActionServlet.processPopulate(org.apache.struts.action.ActionForm,
org.apache.struts.action.ActionMapping,
javax.servlet.http.HttpServletRequest)
.
.
.
.
Root cause:
java.lang.IllegalArgumentException
java.lang.Throwable()
java.lang.Exception()
java.lang.RuntimeException()
java.lang.IllegalArgumentException()
I will surely not copy paste all the things under this stacktrace.
So someone could tell me what it means and how I should resolve the problem
(I must give back the upload method before the end of the week), so please
help.
Daniel WAMARA
_________________________________________________________________
Téléchargez MSN Explorer gratuitement à l'adresse
http://explorer.msn.fr/intl.asp
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: File upload - Help needed in emergecy
Posted by "John M. Corro" <jo...@cornerstone.net>.
Might want to check for these things
- The form tag's enctype is set as "multipart/formdata."
- In the FormBean, the corresponding instance variable is of type FormFile
- The setter/getter in the FormBean return/accept an object of type FormFile
(not String)
----- Original Message -----
From: "Daniel WAMARA" <dw...@hotmail.com>
To: <st...@jakarta.apache.org>
Sent: Tuesday, November 13, 2001 10:40 AM
Subject: File upload - Help needed in emergecy
> Hi each and everyone,
>
> I'm just back from the Servlets.com website and I'm now more lost than I
was
> when I entered there :
>
> I'm trying to make a file upload thru a multi-part/formdata and for
getting
> the file, I've just implemented a class implenting the Struts FormFile and
> everything should work well I think but as soon as I click on the "Upload"
> button, this is what I get in my page :
>
> Error: 500
> Location: /mailorder/upload.do
> Internal Servlet Error:
>
> javax.servlet.ServletException: BeanUtils.populate
> java.lang.Throwable(java.lang.String)
> java.lang.Exception(java.lang.String)
> javax.servlet.ServletException(java.lang.String, java.lang.Throwable)
> void org.apache.struts.util.RequestUtils.populate(java.lang.Object,
> java.lang.String, java.lang.String, javax.servlet.http.HttpServletRequest)
> void
>
org.apache.struts.action.ActionServlet.processPopulate(org.apache.struts.act
ion.ActionForm,
> org.apache.struts.action.ActionMapping,
> javax.servlet.http.HttpServletRequest)
> .
> .
> .
> .
>
> Root cause:
> java.lang.IllegalArgumentException
> java.lang.Throwable()
> java.lang.Exception()
> java.lang.RuntimeException()
> java.lang.IllegalArgumentException()
>
> I will surely not copy paste all the things under this stacktrace.
>
> So someone could tell me what it means and how I should resolve the
problem
> (I must give back the upload method before the end of the week), so please
> help.
>
> Daniel WAMARA
>
> _________________________________________________________________
> Téléchargez MSN Explorer gratuitement à l'adresse
> http://explorer.msn.fr/intl.asp
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>