Win a copy of Functional Reactive Programming this week in the Other Languages 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
  • 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: 65228
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply, will try
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic