Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Multipart Request problem

Reply
Thread Tools

Multipart Request problem

 
 
Gambito
Guest
Posts: n/a
 
      08-05-2004
Hi

I'm having some problems with the MultipartRequest
class by Oreilly.

I'm trying this code:

try {
MultipartRequest multi = new MultipartRequest(request, "/var/tmp",
10*1024*1024); // 10MB
} catch (Exception e) { out.println(e.getMessage());
}


and getting this error:

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

org.apache.jasper.JasperException: javax/servlet/ServletRequest
at org.apache.jasper.servlet.JspServletWrapper.servic e(Unknown Source)
at org.apache.jasper.servlet.JspServlet.serviceJspFil e(Unknown Source)
at org.apache.jasper.servlet.JspServlet.service(Unkno wn Source)
at javax.servlet.http.HttpServlet.service(HttpServlet .java)
at
org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(Unknown
Source)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(Unknown Source)
....
....
....


root cause

javax.servlet.ServletException: javax/servlet/ServletRequest
at
org.apache.jasper.runtime.PageContextImpl.handlePa geException(Unknown
Source)
at org.apache.jsp.adjuntar2_jsp._jspService(adjuntar_ jsp.java:1389)
at org.apache.jasper.runtime.HttpJspBase.service(Unkn own Source)
at javax.servlet.http.HttpServlet.service(HttpServlet .java)
at org.apache.jasper.servlet.JspServletWrapper.servic e(Unknown Source)
....
....
....


maybe i'm missing a configuration or it's a tomcat bug. I'm using Tomcat
4.1. It works fine on Tomcat 3.3. Any idea?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MIME Structure Multipart/Mixed with attachment and Multipart/Alternative blaine@worldweb.com Perl Misc 1 04-04-2007 08:23 PM
Encoding of text in HTTP multipart request news4schuster@freenet.de Java 1 05-11-2005 10:32 AM
Reading parameters from a Multipart Request kevin.conaway@gmail.com Java 0 03-17-2005 09:52 PM
Encoding of text in HTTP multipart request Matthias Java 0 03-09-2005 10:08 AM
Sending http-request with multipart/form-data Axel Heck C++ 1 10-20-2003 12:18 PM



Advertisments