Skip to Content.
Sympa Menu

freetds - RedHat 6.2 connection problems

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Aron Kramlik" <aron.kramlik AT itouch.com.au>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: RedHat 6.2 connection problems
  • Date: Wed, 27 Jun 2001 00:54:15 -0400


I get the following error on RedHat 6.2 with a test program.
I am not sure that I am doing everything correctly though.
I compile the sources onto my machine and then use the supplied
jar file to run a test java program. Here is what I do and
the output.

export
CLASSPATH=/usr/local/java/lib/tools.jar:/home/akramlik/tds/download/freetds_jdbc.jar:.

export SYBASE=/home/akramlik/freetds
export LD_LIBRARY_PATH=/home/akramlik/freetds/lib
export LIBPATH=:/home/akramlik/freetds/lib

java -classpath $CLASSPATH tds.TdsTest

[akramlik@akramlik akramlik]$ java -classpath $CLASSPATH tds.TdsTest
Exception- java.lang.NullPointerException
sqle.getErrorCode() = 0
sqle.getMessage() = null
sqle.getSQLState() = null
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 tds.TdsTest.ftdsjdbc(TdsTest.java:63)
at tds.TdsTest.<init>(TdsTest.java:28)
at tds.TdsTest.main(TdsTest.java:36)

* get the snapshot file (0.52)
* untar and change to the directory

./configure --prefix=/home/akramlik/freetds
gmake
gmake install
SYBASE=/home/akramlik/freetds
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$SYBASE/lib
LIBPATH=${LIBPATH}:$SYBASE/lib
export SYBASE LD_LIBRARY_PATH LIBPATH
vi ~/freetds/interfaces
make check
..
..
gcc -g -O2 -DTDS50 -o .libs/t0006 t0006.o common.o ../.libs/libtds.so
-Wl,--rpath -Wl,/home/akramlik/freetds/lib
creating t0006
make[4]: Leaving directory `/home/akramlik/tds/freetds/src/tds/unittests'
make check-TESTS
make[4]: Entering directory `/home/akramlik/tds/freetds/src/tds/unittests'
t0001.c: Testing login, logout
PASS: t0001
t0002.c: Test basic submit query, results
PASS: t0002
t0003.c: Testing DB change -- 'use tempdb'
PASS: t0003
t0004.c: Test large (>512 bytes) queries
tds_process_result_tokens() returned TDS_FAIL for long query
FAIL: t0004
t0005.c: Test large (>512 bytes) replies
PASS: t0005
t0006.c: Test SYBREAL, SYBFLT8 values
PASS: t0006
===================
1 of 6 tests failed
===================
make[4]: *** [check-TESTS] Error 1
make[4]: Leaving directory `/home/akramlik/tds/freetds/src/tds/unittests'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/home/akramlik/tds/freetds/src/tds/unittests'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/home/akramlik/tds/freetds/src/tds'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/akramlik/tds/freetds/src'
make: *** [check-recursive] Error 1
[akramlik@akramlik freetds]$





  • RedHat 6.2 connection problems, Aron Kramlik, 06/27/2001

Archive powered by MHonArc 2.6.24.

Top of Page