freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
RE: problem creating new connection with FreeTDS_JDBC
- From: Edson Carlos Ericksson Richter <richter AT viaapia.com.br>
- To: "'TDS Development Group'" <freetds AT franklin.oit.unc.edu>
- Subject: RE: problem creating new connection with FreeTDS_JDBC
- Date: Sun, 16 Jul 2000 19:08:38 -0300
Are you using JDK 1.3?
If so, you need to modify some sources, and recompile.
If you want, I can send personally to you my own .JAR file, that works fine
for me (but I can't give you any type of support in the future, because I'm
very, very, very busy with long time development process into my company).
I had the same message at the past, and correct with this single action.
Edson Richter.
----------
De: Ian Struble
Enviada: Terça-feira, 11 de Julho de 2000 13:42
Para: TDS Development Group
Assunto: [freetds] problem creating new connection with FreeTDS_JDBC
After many happy months with FreeTDS under perl, I have finally come to the
point where I need to do something with FreeTDS_JDBC. The only thing is
that I am having some weird problems. It works fine on a unix
box(FreeBSD-3.x,4.0-STABLE,5.0-CURRENT) but I am having problems on an NT
machine(NT4 sp6, which has a patch that seemed to fix the TCP stack that sp6
broke).
Here is the snippet of code where it throws an exception:
Class.forName("com.internetcds.jdbc.tds.Driver");
con =
DriverManager.getConnection("jdbc:freetds:sqlserver://sql.foo.com/Testing",
"test_user", "test_password");
And here is a little bit of the stack trace:
Exception- java.lang.NullPointerException
java.sql.SQLException
at
com.internetcds.jdbc.tds.Constructors.newConnection(Constructors.java:305)
at com.internetcds.jdbc.tds.Driver.connect(Driver.java:257)
at java.sql.DriverManager.getConnection(Unknown Source)
So the question is, has anyone else run into this before? And before I
forget, this code is trying to be run from inside a servlet on a Tomcat 3.1
server. I know that this is not much to go on but I am rather green when it
comes to the java so let me know what else would be helpful and I will add
it next time.
Thanks for any help!
Ian
---
You are currently subscribed to freetds as: richter AT viaapia.com.br
To unsubscribe, forward this message to
<<application/ms-tnef>>
-
problem creating new connection with FreeTDS_JDBC,
Ian Struble, 07/11/2000
- <Possible follow-up(s)>
- Re: problem creating new connection with FreeTDS_JDBC, Bob Kline, 07/11/2000
- Re: problem creating new connection with FreeTDS_JDBC, Ian Struble, 07/11/2000
- RE: problem creating new connection with FreeTDS_JDBC, Edson Carlos Ericksson Richter, 07/11/2000
- Re: problem creating new connection with FreeTDS_JDBC, Bob Kline, 07/11/2000
- Re: problem creating new connection with FreeTDS_JDBC, Ian Struble, 07/13/2000
Archive powered by MHonArc 2.6.24.