Skip to Content.
Sympa Menu

freetds - Re: Trying to get started

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Mark MacRae <MarkM AT relais-intl.com>
  • To: 'TDS Development Group' <freetds AT franklin.oit.unc.edu>
  • Subject: Re: Trying to get started
  • Date: Mon, 19 Jun 2000 10:28:12 -0400


Here are the results:

java.sql.SQLException: Network error- Connection refused: no further
information
at
com.internetcds.jdbc.tds.Constructors.newConnection(Constructors.java:304)
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)

Now this looked like I had the connection information wrong. I asked our
support guy if for some reason SQLServer was listening on a port other than
default, and he said no.

I decided to "re-make" the entire driver again for fun, and this time
noticed that Result_Set_2_0.java doesn't get compiled because of some error
that I don't really understand: says '{ expected' and '} expected', but they
look fine to me.


-----Original Message-----
From: Stefan Bodewig [mailto:bodewig AT bost.de]
Sent: Monday, June 19, 2000 10:13 AM
To: TDS Development Group
Subject: [freetds] Re: Trying to get started


Hi Mark,

>>>>> "MM" == Mark MacRae <MarkM AT relais-intl.com> writes:

MM> I actually just added another else if to the section of
MM> Constructors.java to check for Java 1.3.

This should be sufficient.

Are you using a JIT? Sometimes the JIT masks other exceptions as
NullPointerExceptions which might be misleading.

Right at the end of Constructors.java you will find

catch (Throwable e)
{
System.err.println("Exception- " + e.getClass().getName());
throw new java.sql.SQLException(e.getMessage());
}

could you change this to

catch (Throwable e)
{
e.printStackTrace()
throw new java.sql.SQLException(e.getMessage());
}

end get back to us with whatever information is generated there?
The new Exception created unfortunately hides all the relevant
information.

Thank you

Stefan

---
You are currently subscribed to freetds as: MarkM AT relais-intl.com
To unsubscribe, forward this message to
$subst('Email.Unsub')




Archive powered by MHonArc 2.6.24.

Top of Page