Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception - To connect excel sheet

bala kumar
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i got the following error when i get the data from XL sheet to store the data into oracle db in LINUX .

String path = "/home/nfsmnt/resource_uploads/web_links/"+fileName;
connection = DriverManager.getConnection("jdbcdbcriver={Microsoft Excel Driver (*.xls)};DBQ="+path+";DriverID=22;READONLY=false","","");
Statement stmt = connection.createStatement();


java.lang.NullPointerException at sun.jdbc.odbc.JdbcOdbcDriver.initialize( at sun.jdbc.odbc.JdbcOdbcDriver.connect( at java.sql.DriverManager.getConnection( at java.sql.DriverManager.getConnection( at com.thomsonhighereducation.DAO.ResourceOrderDAO.addWeblinkData( at
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic