<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Arial">The error I am getting from a product called JAMWiki
is below. I get the same error when I used OpenOfice Base. The error
does not change if the DSN is valid or not. No log files are being
created, which leads me to believe that </font>libodbc.so is not being
invoked (I have logging/tracing enabled for unixODBC and the driver). <br>
<font face="Arial"><br>
java.lang.NullPointerException<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
sun.jdbc.odbc.JdbcOdbcDriver.initialize(JdbcOdbcDriver.java:436)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:153)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.sql.DriverManager.getConnection(DriverManager.java:582)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.sql.DriverManager.getConnection(DriverManager.java:185)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.jamwiki.db.DatabaseConnection.getTestConnection(DatabaseConnection.java:323)<br>
<br>
You mentioned that you thought it was "</font>just a case of making
sure the JVM could load libodbc.so" Is there anything that must be done
to allow a JVM to access a library such as this? I just assumed that
having the library in a well known place (/usr/lib) and having it world
readable/executable is enough. I am not very familiar with java, are
you aware of anything like an env variable that must be set?<br>
<font face="Arial"><br>
</font>Thanks for any help,<br>
<br>
Andy<br>
<br>
Nick Gorham wrote:
<blockquote cite="mid:49C8A8F5.9000709@easysoft.com" type="cite">Andy
Warner wrote:
  <br>
  <br>
  <blockquote type="cite">Hello,
    <br>
    <br>
I am attempting to use SUN's JDBC-ODBC bridge to connect to an odbc
data source (CentOS 5.2 and most recent unixODBC). The odbc data source
works fine using isql, the DataManager, and OpenOffice Base. When I
attempt to access the odbc data source through the jdbc bridge I get a
java error that makes me think the jdbc bridge is not "finding" the
unixODBC odbc libraries (a null pointer exception during the
initialization call). I have both unixODBC and the odbc data source
logging, and neither creates their log files. So, I do not believe they
are getting called. Using OpenOffice Base, I was able to test and
verify that the jdbc bridge driver is being loaded.
    <br>
    <br>
Does anyone have any experience using this bridge with unixODBC? Is
there any special configuration that is needed (such as passing the
odbc driver library path as a connection argument) to link the jdbc
bridge with the unixODBC odbc libs? I realize that sun's jdbc bridge is
very sub-par, but unfortunately I am stuck with it for a demo project
(for now at least).
    <br>
    <br>
Andy help would be greatly appreciated,
    <br>
    <br>
Andy Warner
    <br>
    <br>
&nbsp;
    <br>
    <br>
  </blockquote>
Whats the actual error you are getting?
  <br>
  <br>
Last tine I checked it was just a case of making sure the JVM could
load libodbc.so
  <br>
  <br>
</blockquote>
</body>
</html>