File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
lisy jessica
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64185
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
lisy jessica
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply, will try
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic