freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Antonio Vazquez" <vazquezf AT aucland.com>
- To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
- Subject: Problem with Database Connection
- Date: Mon, 14 May 2001 11:16:24 +0200
Hi all,
I try to connect to database in SQLServer. I use:
Class.forName("com.internetcds.jdbc.tds.Driver")
and the dsn string:
jdbc:freetds:sqlserver://server:1433/data
and I receive the follow error:
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(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at ConPool.crearConNueva(ConPool.java:125)
at ConPool.<init>(ConPool.java:29)
at StartUp.init(StartUp.java:32)
at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
at org.apache.tomcat.core.Handler.init(Handler.java:215)
at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
Interceptor.java:130)
at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
Can anybody help me?
Thanks in advance.
Antonio
-
Problem with Database Connection,
Antonio Vazquez, 05/14/2001
- <Possible follow-up(s)>
- Re: Problem with Database Connection, Bob Kline, 05/14/2001
Archive powered by MHonArc 2.6.24.