Re: JDBC-ODBC-Bridge
- From: Herman Timmermans <timmermansdot.hermanat@xxxxxxxxx>
- Date: Tue, 29 Nov 2005 20:14:59 +0100
Christian Vallant wrote:
> Hello!
>
> I have an ODBC-Driver under Linux running. Now I need a connection from
> java to the Database.
> I will use the java-odbc-bridge to connect to the server. But i get the
> following 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:525)
> at java.sql.DriverManager.getConnection(DriverManager.java:193)
> at ProConnection.getConnection(ProConnection.java:14)
> at testmain.main(testmain.java:12)
>
> Under Openoffice2 I can connect with the ODBC-Driver to the database,
> but under java it doesn't work. Also in the console the connection works
> fine.
>
> Can anyone help me to solve the problem. I don't want to bye a jdbc
> driver, because it is very expensive and i need only a simple query from
> the database.
> I use ubuntu 5.10 and an openlink odbc-driver.
>
> Best regards
> Christian
Christian,
a little bit of more detailed information would be helpfull :
1) what database are you connecting to ? What release? (I suspect MS SQL??)
2) how do you connect ? From where, what ( code ?)
3) local or remote ?
4) what is your datasource config you are using under OO
5) how do you connect at the console ?
Maybe we can help you if we get some more meaningfull info,
Rgds,
Herman
--
Suse Linux Professional 9.2 on Athlon 1.1 Ghz 512 Mb
Anti Spam = remove the "dot" and the "at"
Registered Linux User #264690
Visit us : http://users.skynet.be/herman.timmermans
.
- Follow-Ups:
- Re: JDBC-ODBC-Bridge
- From: Christian Vallant
- Re: JDBC-ODBC-Bridge
- References:
- JDBC-ODBC-Bridge
- From: Christian Vallant
- JDBC-ODBC-Bridge
- Prev by Date: JDBC-ODBC-Bridge
- Next by Date: Re: JDBC-ODBC-Bridge
- Previous by thread: JDBC-ODBC-Bridge
- Next by thread: Re: JDBC-ODBC-Bridge
- Index(es):
Relevant Pages
|