File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes NullPointerException in MultipartRequest--Urgent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "NullPointerException in MultipartRequest--Urgent" Watch "NullPointerException in MultipartRequest--Urgent" New topic

NullPointerException in MultipartRequest--Urgent

Saravanan Viswanathan

Joined: Oct 16, 2001
Posts: 20
I am using Oreilly package for file upload.In that i am getting NullPointerException for the MultipartRequest.Can anyone help in this.I have included the jar file in the classpath and in the form tag also i am passing as "multipart/form-data".Help me to solve out this.
Here i am getting the NullPointerException.
MultipartRequest multi=new MultipartRequest(request,"c:/weblogic/myserver/upload",1024*1024)
To add some more :-
The same thing was working well with websphere appl server and now when i use it in weblogic its throwing this error(NullPointerException)..I have checked for the request object and the content type and length.Everything seems to be fine.Can anyone explain in detail reg this.
I am attaching the error below..
at uploadFiles.doPost(, Compiled Code)
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(, Compiled Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(, Compiled Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(, Compiled Code)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(, Compiled Code)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(, Compiled Code)
at weblogic.socket.MuxableSocketHTTP.execute(, Compiled Code)
at, Compiled Code)
I agree. Here's the link:
subject: NullPointerException in MultipartRequest--Urgent
It's not a secret anymore!