File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes PWC1406: Servlet.service() for servlet threw exception:java.io.FileNotFoundException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "PWC1406: Servlet.service() for servlet threw exception:java.io.FileNotFoundException" Watch "PWC1406: Servlet.service() for servlet threw exception:java.io.FileNotFoundException" New topic
Author

PWC1406: Servlet.service() for servlet threw exception:java.io.FileNotFoundException

lisy jessica
Ranch Hand

Joined: Oct 27, 2010
Posts: 47
I am trying to upload a csv file to Oracle database but am getting this java.io.FileNotFoundException C:\new_upload\Demo_24_10.csv (The system cannot find the path specified), This is my servlet Upload.java


The full stack message in log file is



Please can anyone look into my code, and help me out. I am stuck here
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60056
    
  65

You can't just read a file from the client file system. Please see the JspFaq entry on file uploads for information on how to properly set up a file upload operation.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
lisy jessica
Ranch Hand

Joined: Oct 27, 2010
Posts: 47
Thanks for the reply, will try
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PWC1406: Servlet.service() for servlet threw exception:java.io.FileNotFoundException
 
Similar Threads
JasperReport error while connecting from Struts action class
upload works well in a .html file but when I call it from a .xhtml file it shows an error
Problem in delete form
IllegalStateException when inserting session attribute into a table
Exception executing servlet with database connectivity