jQuery in Action, 3rd edition
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(uploadFiles.java, Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java, Compiled Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java, Compiled Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java, Compiled Code)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java, Compiled Code)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java, Compiled Code)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java, Compiled Code)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
I agree. Here's the link: http://aspose.com/file-tools
subject: NullPointerException in MultipartRequest--Urgent
jQuery in Action, 3rd edition