wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 60748
    
  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
 
jQuery in Action, 2nd edition
 
subject: PWC1406: Servlet.service() for servlet threw exception:java.io.FileNotFoundException
 
Similar Threads
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
JasperReport error while connecting from Struts action class
Exception executing servlet with database connectivity