commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Askar Zaidi" <>
Subject FileUpload Servlet : Wierd Exception
Date Thu, 24 May 2007 14:55:32 GMT
Hi Folks,

Can someone help me with this exception. I am trying to upload a file from a
html form.

Heres the full stack trace: (in tomcat logs)

May 21, 2007 3:35:51 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet addItem threw exception
javax.servlet.ServletException: Servlet execution threw an exception
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
        at org.apache.catalina.core.StandardWrapperValve.invoke(
        at org.apache.catalina.core.StandardContextValve.invoke(
        at org.apache.catalina.core.StandardHostValve.invoke(
        at org.apache.catalina.valves.ErrorReportValve.invoke(
        at org.apache.catalina.core.StandardEngineValve.invoke(
        at org.apache.catalina.connector.CoyoteAdapter.service(
        at org.apache.coyote.http11.Http11Processor.process(

It seems that the exception occurs when I try to parse the request with :

List items = upload.parseRequest(request);
in my servlet code.

Heres my html page:

   <title>NeedTuNo Developer Index</title>
    <div id="main">
          <div id="sec_additem">
            <h1>Add Item</h1>
            <form action="/addItem" method="post"
                Title: <input name="meta_title" />
                <br />
                Tags: <input name="tags" />
                <br />
                Summary: <input name="summary" type="text" />
                <br />
                File: <input name="filename" type="file" />
                <br />
                <input type="submit" value="Add Item!" />

    <div id="footer">
        <p id="versionNum"></p>

I am clueless, any help would be great !


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message