This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 60810
    
  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
 
Consider Paul's rocket mass heater.
 
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
Exception executing servlet with database connectivity
IllegalStateException when inserting session attribute into a table
Problem in delete form
JasperReport error while connecting from Struts action class