aspose file tools
The moose likes JDBC and the fly likes Problem connecting MS Access  using jdbc:odbc Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Problem connecting MS Access  using jdbc:odbc" Watch "Problem connecting MS Access  using jdbc:odbc" New topic
Author

Problem connecting MS Access using jdbc:odbc

slav agui
Greenhorn

Joined: Jan 15, 2008
Posts: 4
Hello,
I am trying to "select" rows from a MS access table using:
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver") ;
jdbcdbcriver={Microsoft Access Driver (*.mdb)};DBQ="+ filenamek + ";READONLY=true}";

It works prefectly on my local machine (XP) but when the project is deployed (web application) in a unix box and I am getting this error:
java.lang.NullPointerException
at sun.jdbc.odbc.JdbcOdbcDriver.initialize(JdbcOdbcDriver.java:436)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:153)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at TEST.ACCESS_dbConnection.ACCESS_connect(ACCESS_dbConnection.java:38)
at _accessgetdata._jspService(_accessgetdata.java:79)[SRC:/accessgetdata.jsp:34]
.....
.....

is it possible to connect into a MS table through a web application?
The user is going to select a MS access DB from his/her computer and the system is going to read all the rows to insert them into a oracle table.

Thanks a lot for ANY help!!!
Slav
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Problem connecting MS Access using jdbc:odbc
 
Similar Threads
tomcat jdbc help(!)
Problem in Connecting to remote database
JdbcOdbc Connection
connecting to ms access database
URL error (DSN not found)