Skip to Content.
Sympa Menu

freetds - Trouble connecting to MS SQL7 using Sun JRE plugin 1.3.0

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Bern Bray" <Bernard_Bray AT Maxtor.com>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: Trouble connecting to MS SQL7 using Sun JRE plugin 1.3.0
  • Date: Fri, 25 May 2001 15:05:59 -0400


I am getting the error shown below when I try to connect to a MS SQL7
database using the Sun JRE1.3.0 plugin through an applet. This same applet
works under the Sun JRE1.2.2 plugin.

The freetds_jdbc version I am using has a latest date of 2000/01/24. I
tried the latest snapshot (2000/02/22) and it would not work as a simple
application or with any level of plugin or as a simple applet.

My client is Win 98
The web and database server is NT 4
The webserver is MS IIS
I am letting the TDS default to 4.2
The database version string is:
Microsoft SQL Server 7.00 - 7.00.623 (Intel X86)
Nov 27 1998 22:20:07
Copyright (c) 1988-1998 Microsoft Corporation
Standard Edition on Windows NT 4.0 (Build 1381: Service Pack 6)

Error text
----------------------------------------
Java(TM) Plug-in: Version 1.3.0-C
Using JRE version 1.3.0 Java HotSpot(TM) Client VM
User home directory = C:\WINDOWS
Proxy Configuration: no proxy
JAR cache enabled.
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)
at java.sql.DriverManager.getConnection(Unknown Source)
at EmployeeA.init(EmployeeA.java:12)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
----------------------------------------------------------

Applet code:
-------------------------------------------------------
import java.sql.*;
import java.applet.*;
import java.awt.*;

public class EmployeeA extends Applet
{
public void init ()

{
try{
Class.forName ("com.internetcds.jdbc.tds.Driver");
Connection conn =
DriverManager.getConnection
("jdbc:freetds:sqlserver://134.6.69.12:1433/Rep_Training",
"Reporter", "indian");
Statement stmt = conn.createStatement ();
ResultSet rset = stmt.executeQuery ("select count(*) from
masterview");
while (rset.next ())
add(new Label(rset.getString (1)));
}
catch (Exception e) {
e.printStackTrace();
};
}
}
Thanks
Bern Bray




Archive powered by MHonArc 2.6.24.

Top of Page