Intermittent error establishing socket on SQL Server 2000

I have a suite of 130 JUnit tests. Recently, they started to give me intermittent "error establishing socket" errors when trying to connect to a local instance of SQL Server 2000 via JDBC.
Each test creates one or more connections. I've used wrappers to prove that I'm closing all of the connections, statements, prepared statements and result sets. The first 70 or 80 tests succeed. After that every test gets the "error establishing socket" exception. Sometimes (but not always) SQL Server continues to refuse connections when I re-run the suite. When that happens I have to let it sit for 30 seconds or so (or restart the server) before it will accept connections.
I've tested this with both Microsoft's and WebLogic's JDBC drivers with the same results. There's nothing in the SQL Server logs when this happens. There's nothing in the Windows event logs, either.
If I sleep for 5 seconds between each test the problem goes away.
I installed the latest service pack (SP3a) for SQL Server 2000 with no change in behavior.
All of this leads me to believe that something is wrong with SQL Server. Has anyone else run into this problem? Any ideas?

I am not overly familiar with the SQL Server network architecture, but there are scenarios that could explain your intermittent failures.
When you connect to a database one of two things can happen, you can start your own process on the server that acts as communication to from the server locally, or you are put in a queue for a static (shared) process that does the same thing.
Assuming that most databases are initially setup with singular processes per connection, and you have established a connection then you disconnect from the database you do not automatically or instantly kill your process running on the server. There are two primary reasons for this as far as I know. First, the database puts more priority on doing something then doing nothing. Cleaning up and removing your process would be considered doing nothing, accepting incoming connections would be considered doing something. Second, the process may have to stay around to ensure all commit or rollback is completed properly (not always true in every database).
So, I would expect that there is a connection limit (perhaps between 50-80) that you are exceeding because you are firing these connections rapidly and even though you close the connection in your remote program, the database simply doesn't keep up. Most databases will "cleanup" reasonably quickly if they have the resources to do so, so if you were to put a 30 second delay between every connection it would probably work just fine. It would probably work fine if you put a 30 second delay between after every 20 connections too. It's a bit of balancing act.
There would be a couple of ways to alleviate this constraint. Putting in delays can demonstrate that this is in fact a work load problem (constrained by total count of connections), but doesn't really help in production instances. You can change the maximum number of connections allowed by the database, however this threshold may be caused by hardware resource (memory) limitations as much as it is a parameter in the database. You may have to add memory to accommodate this many connections. You may have to constrain how much memory each connection gets (again controlled by database parameters). You may have to accept this as a resource constraint and write your code accordingly. This often manifests itself by taking advantage of transaction managers (or transaction manager logic) that will queue up requests until database resources are available.
Again, I'm not a SQL Server expert, but I'm reasonably certain that most of what I said applies if not specifically at least generally.
Good Luck.

Similar Messages

  • Error establishing socket (Microsoft SQL Server 2000 Driver for JDBC)

    I tray connect to MS-SQL2000 using JDeveloper and retrieve an error: "[Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.[Microsoft][SQLServer 2000 Driver for JDBC]PC160832\NCI_DBA_01"
    I followed the steps:
    1 - Install the JDBC Driver for MS-SQL2000
    2 - Create a new AddJavaLibPath :"AddJavaLibPath C:/Program files/Microsoft SQL Server 2000 Driver for JDBC/lib"
    3 - Specify Default Project Libraries: "msbase.jar, msutil.jar and mssqlserver.jar"
    4 - Create a new connection: "Java class name: com.microsoft.jdbc.sqlserver.SQLServerDriver" "URL: jdbc:microsoft:sqlserver://PC160832\NCI_DBA_01:1433;SelectMethod=cursor"
    5 - Retrieve the error: "[Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.[Microsoft][SQLServer 2000 Driver for JDBC]PC160832\NCI_DBA_01"

    Were you able to resolve this? If so could you tell me how. I have the same problem.
    Thanks!!!

  • Error Establishing Socket with SQL Server 2000

    I have a java application that uses JDBC to connect to a source of data.
    The application has been installed on many platforms using many different data sources, but one combination has beaten me.
    I am using Windows Server 2003 and SQL Server 2000 Enterprise, when the application starts up it fails to connect to the database with the following message:
    [Microsoft][SQL Server 2000 Driver for JDBC] Error Establishing Socket
    I have looked at a lot of forums and tried many things but nothing has fixed the problem for me:
    To summarise:
    The URL I am using is jdbc:microsoft:sqlserver://locahost:1433
    I have also tried using the name of the machine and it's actual IP address
    I have checked that TCP/IP is enabled and using the correct port (1433)
    Both SQL Server and Windows authentication are enabled and I can connect using both method from ODBC
    I can connect to it and use it with c#.net, vb.net and ODBC from the same machine
    I have installed the latest SQL Server 2000 service pack
    The application works with SQL Server 2000 Developer on Windows XP
    If anyone has any other suggestions, I would love to hear from you.

    If you printed out the SQL state and error code that would be a bit more info:
    catch (SQLException e)
        e.printStackTrace();
        System.err.println("SQL state: " + e.getSQLState());
        System.err.println("SQL error: " + e.getErrorCode());
    }Maybe that will give you more detail as to exactly why this is happening.
    The only other thought I had was security. Maybe there's a permission to access the port that would have to be granted explicitly as part of M$'s new emphasis on security. You did say it was Windoze Server 2003. Maybe that's the difference between all the other installs and this one.
    No joy from me, sorry. - MOD

  • Error while connecting to SQL Server 2000 using Heteregenous Services 11g

    Hope this is the right thread to post on! We have been given the challenge of connecting to and reading data from a SQL Server 2000 database.
    Our Infrastructure guys have set up the network access.
    The SQL Server DB is set to windows NT Authentication only (N.B. NOT Mixed Mode) as there is an application running against the DB locally that will not run under Mixed Mode.
    Our Oracle partner has download and installed the 11g Heteregenous Services. all works fine until the point we try to create the DBLink and then connect to the SQL Server DB when we get:
    SQL> CREATE DATABASE LINK infoteam1.sco.infoteam.co.uk CONNECT TO "sco.infoteam.co.uk/infoteam" IDENTIFIED BY "########" USING 'dg4msql';
    Database link created.
    SQL> select * from "systables"@infoteam1.sco.infoteam.co.uk;
    select * from "systables"@infoteam1.sco.infoteam.co.uk
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Oracle][ODBC SQL Server Driver][SQL Server]Login failed for user
    'sco.infoteam.co.uk/infoteam'. Reason: Not associated with a trusted SQL Server
    connection.[Oracle][ODBC SQL Server Driver]Invalid connection string attribute
    ORA-02063: preceding 2 lines from INFOTEAM1.SCO.INFOTEAM.CO.UK
    The question is can we (and if so how)?) connect to the SQL Server using an NT Windows Authorised account?
    Jeremy

    Hi,
    Please look at MOS note
    ORA-28500: Generic connectivity using ODBC DSN over mapped drive fails [ID 105210.1]
    Ora-28500 with Ms Sqlserver - Not associated with a trusted SQL Server connection [ID 333775.1]
    Regards,
    Edited by: gjilevski1 on Aug 31, 2010 8:23 AM

  • Error: "PackageFromTheweb" when install SQL Server 2000 cluster

    Hi,
    I am trying to setup a WAS 6.40 system. When I am installing SQL Server 2000 on cluster, I got following error: "This program is used internally by PackageFromTheWeb. It should not be executed directly." Our OS is Windows 2003 Enterprise SP2. Search on the internet many have the same problem but seems no answers. We even completed rebuild OS and install again got the same error message. Very frustration! Realizing the installation has NOT even get to SAP part yet, but any of you see this kind error message when you install SQL Server? How do you fix it?
    Any helpful anwsers are appreciated and reward points.
    Thanks,
    Yujun Ran
    Edited by: Yujun Ran on Mar 18, 2008 3:53 PM

    Suhas,
    Not sure I understand what you are asking. But to answer your question, No, I did not install any software on my desktop. I am logon to the server remotely to install SQL Server 2000.
    Thanks,
    Yujun Ran

  • Communication Failing with Corrupted Chars . Sql Server 2000 and AS400

    Hi Experts,
    I am facing this below error after 9 yrs. sql server 2000 and As400 on prod server. while on dev and stage it's running properly. Here username is ABCD, while it's showing BCD
    The OLE DB provider "MSDASQL" for linked server "" reported an error. Authentication failed. [SQLSTATE 42000] (Error 7399) Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "xxxxx".
    [SQLSTATE 42000] (Error 7303)  OLE DB provider "MSDASQL" for linked server "" returned message "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed".
    [SQLSTATE 01000] (Error 7412)  OLE DB provider "MSDASQL" for linked server returned message "[IBM][iSeries Access ODBC Driver]Communication link failure. comm rc=8001 - CWBSY0001 -
    User  BCD on server does not exist, Password length = 8, Prompt Mode = Never, System IP Address = "xxxxx". [SQLSTATE 01000] (Error 7412).  The step failed.
    Here ABCD user is also disabling/locking the profile on AS400 server.
    When we tried on Dev server, linked server through DSN working properly. Last time when it appeared 2 yrs ago, it resolved automatically. but now more than 10 days passed and still Failing.
    Please Guide Me.
    Regards,
    Manish

    So this setup has worked for nine years, and all of a sudden stopped working with this error message? Does not look trivial...
    What does Here ABCD user is also disabling/locking the profile on AS400 server mean? Is ABCD able to log in directly on the AS400 box?
    One possibility is that the user ABCD has been dropped or disabled, and then there is a bug in the ODBC driver where the first character of the username is distorted in the error message. I note that there are two spaces between "User" and "BCD".
    The other possibility is that the AS400 is receiving a login attempt from BCD (or something that ends in BCD with an invisible leading character). This sounds very difficult to troubleshoot...
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Access denial on connecting SQL server 2000 with Microsoft JDBC driver

    Hi guys,
    I am developping a BMP invoking procedures stored in a SQL server 2000 instance on the Sun RI platform. I am using the Microsoft type 4 JDBC driver.
    the connection pattern is something like
    jdbc:microsoft:sqlserver://ambassador:1433;User=sa;Password;DataBase=Forethought;SelectMethod=cursor
    An type-like "access denied" exception is raised when trying to get the connection from the DataSource object with some code similar to :
    DataSource objDS = (DataSource)objCtx.lookup("jdbc/Forethought");
    Connection objConn = ds.getConnection();
    I have realised a CMP to access the database and everything works fine.
    It seems that the SunRI tries to get the db connection with an "impersonated " user even if i have specified the user name and password in the connection string.
    Does anyone have an idea how to force the connection with SQL Server user name and password ??

    I come accorss the same problem too,
    my URL jdbc:microsoft:sqlserver://ambassador:1433;User=sa;Password=123;DatabaseName=pubs
    and the password is right.I can establish connection to SQL server 2000 by JDBC Driver Manager,the code as follow:
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    Connection conn = DriverManager.getConnection
    ("jdbc:microsoft:sqlserver://localhost:1433;User=sa;Password=123");

  • SQL Server 2000 Driver for JDBC - Error establishing sockets

    Hi there
    I am using Microsoft SQL Server 2000 Driver for JDBC to connect to SQL Sever 2000. It is just a test application to see if it would connect to the datacase successfully. But I got the following errors. I already set up the classpath and installed all SQL Server 2000 Driver for JDBC sp 3. Dont know why it still failed...can anyone help me out of this? Thanks.
    When i am using simple JDBC-ODBC bridge Driver it's working fine.
    For this Server Pack3 , i have checked every thing like--
    TCP / IP Poart is Enable.
    I am working in client machine, my MSSQLServer 2000 Placed in server Machine.
    when i am giving Telnet ServerIP 1433 it's giving following response.
    connecting to ServerIP ....... could not open connection to the host , on port 1433:connection Failed
    My Sample Code is :--
    String user="sa";
    String password="imcindia";
    Connection con1 = null;
    CallableStatement cstmt = null;
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
    con1=DriverManager.getConnection("jdbc:microsoft:sqlserver://ServerName:1433;DatabaseName=dmo1o2d",user,password);
    Statement st=con1.createStatement();
    st.execute("use dm0102d");
    st.execute("setuser 'dm01012'");
    cstmt = con1.prepareCall("{?=Call dms_ex_create_folder('ABC','18753','NB21','u')}");
    cstmt.execute();
    Here are Error Code :
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
         at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
         at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
         at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Connection refused: connect
         at java.sql.DriverManager.getConnection(Unknown Source)
         at TestConnection1.main(TestConnection1.java:24)
    one can help me to over come this problm,
    Thanks in advance.
    venkat

    hey i also have this problem i have been looking for solution for this problem for along time i tried every possible solution i tried every service pack for the SQL but it didn't connect to the port!!!
    it's a network problem ur java code is correct dont worry about it.
    finally i had to install MySQL and it's work fine now but if u insist on usning SQL u have to use the JDBC-ODBC Bridge it will work by :
    first add data source database , follow these steps
    1- go to Administrative tools
    2-Data Sources(ODBC)
    3-System DNS tab and add then choose SQL SERVER the last option then finish
    4-write the name; Note: this name is the one that u will write in ur URL for example if u write Hello the URL will be "jdbc:odbc:Hello"
    5- choose the server, its recommended to write "." or (local)
    6-change the database to its an important step to choose the database that u want to use, choose northwind if u want to use it
    finish
    second
    adding this code:
    import java.sql.*;
    class JdbcTest1 { 
    public static void main (String[] args) { 
    try { 
    // Step 1: Load the JDBC driver.
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    // Step 2: Establish the connection to the database.
    String url = "jdbc:odbc:Hello";
    Connection conn = DriverManager.getConnection(url,"user1","password");
    } catch (Exception e) { 
    System.err.println("Got an exception! ");
    System.err.println(e.getMessage());
    it will work without any problems

  • Content Server SQL Server 2000 Connection Error (very annoying)

    All of the diagnostic tests are failing because of SQLServer connection error (see below for diagnosticTests.jsp output).
    I checked database.content.properties file, all connection information is correct. The portal is running on the same SQL server. So I know that the SQL server is running just fine. I just could not isolate the problem. Can you help?------------------------------------------------------------------------
    Content Server DB Connection FAIL
    Settings JDBC Driver: com.plumtree.jdbc.sqlserver.SQLServerDriver JDBC URL: jdbc:plumtree:sqlserver://OXO-SRV03:1433;DatabaseName=ptcsdb DB Driver: com.plumtree.jdbc.sqlserver.SQLServerDriver DB Vendor: com.plumtree.content.rdbms.impl.VendorSqlServer User Name: ptcsdbuser Possible Resolution Check the Content DB JDBC Server, JDBC Port, JDBC User, JDBC Password, and JDBC Databse settings in the content.properties file. Error Details Exception Message: [plumtree][SQLServer JDBC Driver]Error establishing socket. Connection refused: connect com.plumtree.jdbc.base.BaseSQLException: [plumtree][SQLServer JDBC Driver]Error establishing socket. Connection refused: connect at com.plumtree.jdbc.base.BaseExceptions.createException(Unknown Source) at com.plumtree.jdbc.base.BaseExceptions.getException(Unknown Source) at com.plumtree.jdbc.sqlserver.tds.TDSConnection.(Unknown Source) at com.plumtree.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source) at com.plumtree.jdbc.base.BaseConnection.connect(Unknown Source) at com.plumtree.jdbc.base.BaseConnectionStartup.run(Unknown Source) Content DB Table CREATE and DELETE FAIL
    Settings Unable to get a connection to the content server DB Possible Resolution Check the Content DB JDBC Server, JDBC Port, JDBC User, JDBC Password, and JDBC Databse settings in the content.properties file. Also ensure that the Content Database Server is running. Error Details Exception Message: [plumtree][SQLServer JDBC Driver]Error establishing socket. Connection refused: connect com.plumtree.jdbc.base.BaseSQLException: [plumtree][SQLServer JDBC Driver]Error establishing socket. Connection refused: connect at com.plumtree.jdbc.base.BaseExceptions.createException(Unknown Source) at com.plumtree.jdbc.base.BaseExceptions.getException(Unknown Source) at com.plumtree.jdbc.sqlserver.tds.TDSConnection.(Unknown Source) at com.plumtree.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source) at com.plumtree.jdbc.base.BaseConnection.connect(Unknown Source) at com.plumtree.jdbc.base.BaseConnectionStartup.run(Unknown Source) Content DB Update and Query FAIL
    Settings Unable to get a connection to the Content DB Table Name: PCSSYSTEM Column Name: CREATEDVERSION Possible Resolution Check the Content DB JDBC Server, JDBC Port, JDBC User, JDBC Password, and JDBC Databse settings in the content.properties file. Also ensure that the Content Database Server is running. Error Details Exception Message: [plumtree][SQLServer JDBC Driver]Error establishing socket. Connection refused: connect com.plumtree.jdbc.base.BaseSQLException: [plumtree][SQLServer JDBC Driver]Error establishing socket. Connection refused: connect at com.plumtree.jdbc.base.BaseExceptions.createException(Unknown Source) at com.plumtree.jdbc.base.BaseExceptions.getException(Unknown Source) at com.plumtree.jdbc.sqlserver.tds.TDSConnection.(Unknown Source) at com.plumtree.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source) at com.plumtree.jdbc.base.BaseConnection.connect(Unknown Source) at com.plumtree.jdbc.base.BaseConnectionStartup.run(Unknown Source) Portal DB Connection FAIL
    Settings JDBC Driver: com.plumtree.jdbc.sqlserver.SQLServerDriver JDBC URL: jdbc:plumtree:sqlserver://OXO-SRV03:1433;DatabaseName=plumdb DB Driver: com.plumtree.jdbc.sqlserver.SQLServerDriver DB Vendor: com.plumtree.content.rdbms.impl.VendorSqlServer User Name: plumdbuser Possible Resolution Check the Portal DB JDBC Server, JDBC Port, JDBC User, JDBC Password, and JDBC Databse settings in the content.properties file. Error Details Exception Message: [plumtree][SQLServer JDBC Driver]Error establishing socket. Connection refused: connect com.plumtree.jdbc.base.BaseSQLException: [plumtree][SQLServer JDBC Driver]Error establishing socket. Connection refused: connect at com.plumtree.jdbc.base.BaseExceptions.createException(Unknown Source) at com.plumtree.jdbc.base.BaseExceptions.getException(Unknown Source) at com.plumtree.jdbc.sqlserver.tds.TDSConnection.(Unknown Source) at com.plumtree.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source) at com.plumtree.jdbc.base.BaseConnection.connect(Unknown Source) at com.plumtree.jdbc.base.BaseConnectionStartup.run(Unknown Source) Portal DB Query FAIL
    Settings Unable to get a connection to the Portal DB Table Name: PTUSERS Column Name: OWNERID Possible Resolution Check the Portal DB JDBC Server, JDBC Port, JDBC User, JDBC Password, and JDBC Databse settings in the content.properties file. Also ensure that the Portal Database Server is running. Error Details Exception Message: [plumtree][SQLServer JDBC Driver]Error establishing socket. Connection refused: connect com.plumtree.jdbc.base.BaseSQLException: [plumtree][SQLServer JDBC Driver]Error establishing socket. Connection refused: connect at com.plumtree.jdbc.base.BaseExceptions.createException(Unknown Source) at com.plumtree.jdbc.base.BaseExceptions.getException(Unknown Source) at com.plumtree.jdbc.sqlserver.tds.TDSConnection.(Unknown Source) at com.plumtree.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source) at com.plumtree.jdbc.base.BaseConnection.connect(Unknown Source) at com.plumtree.jdbc.base.BaseConnectionStartup.run(Unknown Source) Document Repository OK Workflow Server FAIL
    Settings Workflow Server Base URL: http://OXO-SRV03:7087 Content Server URL: http://OXO-SRV03:7777/ptcs Workflow Server Portlet URL: http://OXO-SRV03:7087/workflow Possible Resolution Verify that the Plumtree Workflow service has been started. Also, check the Workflow Serverdiagnostics for more detailed information. Error Details Exception Message: Cannot access Burlap service at [http://localhost:7087/wfserver/caucho/workflowsvc-burlap]; nested exception is com.caucho.burlap.client.BurlapProtocolException: org.springframework.remoting.RemoteAccessException: Cannot access Burlap service at [http://localhost:7087/wfserver/caucho/workflowsvc-burlap]; nested exception is com.caucho.burlap.client.BurlapProtocolException: com.caucho.burlap.client.BurlapProtocolException: at com.caucho.burlap.client.BurlapProxy.invoke(BurlapProxy.java:171) at $Proxy2.connectPortalUser(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.springframework.remoting.caucho.BurlapClientInterceptor.invoke

    Don't know if anyone is still having problems with this, but just in case...
    I was getting a similar error. I had an Event Viewer record (It wasn't a Warning or an Error, just an Information) reading:You are running a version of Microsoft SQL Server 2000 or Microsoft SQL Server 2000 Desktop Engine (also called MSDE) that has known security vulnerabilities when used in conjunction with this version of Windows. To reduce your computer's vulnerability to certain virus attacks, the TCP/IP and UDP network ports of Microsoft SQL Server 2000, MSDE, or both have been disabled. To enable these ports, you must install a patch, or the most recent service pack for Microsoft SQL Server 2000 or MSDE from http://www.microsoft.com/sql/downloads/default.asp
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    I installed SQL SP4 and it corrected the problem

  • Sql server 2000 type4 driver for jdbc connection error

    hello,
    I am trying to connect m ms sql server 2000 database server with type 4 driver.But I am getting an connection error like *"Error Establishing Socket"* .Can any one please help me out?

    Well i personally prefer usage of open source MS SQL SERVER 2k jdbc driver called jtds instead of the driver provided by MS themselves(which is proproteriry) as i had similar problem which i personally encountered when i was using it.
    go through the below link for further info.
    http://jtds.sourceforge.net/
    REGARDS,
    RaHuL

  • I got error when i had connectivity SQL server 2000 by using jsp page plz

    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
         org.apache.jsp.Admin.Login_jsp._jspService(org.apache.jsp.Admin.Login_jsp:179)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
         com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
         com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
         com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
         com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
         com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
         com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
         java.sql.DriverManager.getConnection(DriverManager.java:525)
         java.sql.DriverManager.getConnection(DriverManager.java:140)
         org.apache.jsp.Admin.Login_jsp._jspService(org.apache.jsp.Admin.Login_jsp:75)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.

    http://support.microsoft.com/kb/313178

  • Cannot establish connection - JDBC driver for MS SQL server 2000

    Hi,
    We are facing problems in connecting to SQL server 2000.
    We have installed the latest version of the driver from followin link and following
    https://websmp108.sap-ag.de/msplatforms    > SQL Server > JDBC Driver for MS SQL Server (Version 3.70.10)
    We have given the following entries in our communication channel:
    JDBC Driver : com.microsoft.sqlserver.jdbc.SQLServerDriver
    Connection:  jdbc:sqlserver://<SQLserver IP>:1433;databaseName=production_info
    Please let us know the procedure to find if the JDBC driver for SQL 2000 is installed from our SAP XI.
    ERROR DETAILS:
    Error during database connection to the database URL 'jdbc:sqlserver://<SQLserverIP>:1433;databaseName=production_info' using the JDBC driver 'com.microsoft.sqlserver.jdbc.SQLServerDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:sqlserver://<SQLserverIP>:1433;databaseName=production_info': SAPClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver'
    Please help.
    Regards,
    Rehan

    Hi Chris,
    We have used the same because we have downloaded the driver from following location
    https://websmp108.sap-ag.de/msplatforms ;   > SQL Server > JDBC Driver for MS SQL Server (Version 3.70.10)
    I have tried with both "com.microsoft.jdbc.sqlserver.SQLServerDriver"; and "com.microsoft.sqlserver.jdbc.SQLServerDriver";, but still I am facing the same error.
    Service market place has given the driver as "JDBC Driver for MS SQL Server (Version 3.70.10)", is there a way to find out if it is for 2000 or 2005?
    Thanks for your reply.
    Regards,
    Rehan

  • Error with SQL Server 2000 and Tomcat 4.1.12

    I'm using a JDBC Datasource with Tomcat 4.1.12 as follows.
    Server.xml snippet:
    <Resource name="jdbc/indemand" scope="Shareable" type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/indemand">
    <parameter>
    <name>validationQuery</name>
    <value>select top 100 * from Subscriber</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:microsoft:sqlserver://vc34:1433;databaseName=TibcoClearHouse</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>tibco_user</value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>10</value>
    </parameter>
    <parameter>
    <name>maxWait</name>
    <value>5000</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>com.microsoft.jdbcx.sqlserver.SQLServerDataSource</value>
    </parameter>
    <parameter>
    <name>username</name>
    <value>tibco_user</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>2</value>
    </parameter>
    </ResourceParams>
    END OF Server.xml Snippet
    My Web XML specifies the JDBC resource as follows:
    <resource-ref>
         <description>Clearinghouse DB Connectio</description>
         <res-ref-name>jdbc/indemand</res-ref-name>
         <res-type>com.microsoft.jdbcx.sqlserver.SQLServerDataSource</res-type>
         <res-auth>Container</res-auth>
    </resource-ref>
    When I cause a database access within my application, I get the following horrifying result. It's the "Error Establishing Socket" error that's worrying me, as I'm using the native Microsoft SQL Server Drivers. The ones in my lib directory are msutil.jar, msutil.jar, and mssqlserver.jar
    Any thoughts?
    John
    java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Error establishing socket.
    at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
    at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
    at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
    at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
    at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:140)
    at com.thoughtworks.util.pool.JDCConnectionPool.getConnection(JDCConnectionPool.java:174)
    at com.thoughtworks.clearinghouse.util.ConnectionFactory.createConnectionForTibco(ConnectionFactory.java:59)
    at com.thoughtworks.clearinghouse.util.ConnectionFactory.createConnection(ConnectionFactory.java:40)
    at com.thoughtworks.clearinghouse.util.DatabaseUtility.getUserByName(DatabaseUtility.java:123)
    at com.thoughtworks.clearinghouse.web.service.UserProfileService.validateUserNamePassword(UserProfileService.jav
    a:16)
    at com.thoughtworks.clearinghouse.web.servlet.LogonAction.actionExecuted(LogonAction.java:48)
    at com.thoughtworks.clearinghouse.web.servlet.AbstractAction.execute(AbstractAction.java:38)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:437)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:264)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
    at java.lang.Thread.run(Thread.java:536)
    com.thoughtworks.clearinghouse.util.SystemException: failed to load user
    at com.thoughtworks.clearinghouse.util.DatabaseUtility.getUserByName(DatabaseUtility.java:147)
    at com.thoughtworks.clearinghouse.web.service.UserProfileService.validateUserNamePassword(UserProfileService.jav
    a:16)
    at com.thoughtworks.clearinghouse.web.servlet.LogonAction.actionExecuted(LogonAction.java:48)
    at com.thoughtworks.clearinghouse.web.servlet.AbstractAction.execute(AbstractAction.java:38)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:437)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:264)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
    at java.lang.Thread.run(Thread.java:536)
    Caused by: java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Error establishing socket.
    at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
    at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
    at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
    at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
    at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:140)
    at com.thoughtworks.util.pool.JDCConnectionPool.getConnection(JDCConnectionPool.java:174)
    at com.thoughtworks.clearinghouse.util.ConnectionFactory.createConnectionForTibco(ConnectionFactory.java:59)
    at com.thoughtworks.clearinghouse.util.ConnectionFactory.createConnection(ConnectionFactory.java:40)
    at com.thoughtworks.clearinghouse.util.DatabaseUtility.getUserByName(DatabaseUtility.java:123)
    ... 38 more
    Cause:
    java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Error establishing socket.
    at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
    at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
    at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
    at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
    at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:140)
    at com.thoughtworks.util.pool.JDCConnectionPool.getConnection(JDCConnectionPool.java:174)
    at com.thoughtworks.clearinghouse.util.ConnectionFactory.createConnectionForTibco(ConnectionFactory.java:59)
    at com.thoughtworks.clearinghouse.util.ConnectionFactory.createConnection(ConnectionFactory.java:40)
    at com.thoughtworks.clearinghouse.util.DatabaseUtility.getUserByName(DatabaseUtility.java:123)
    at com.thoughtworks.clearinghouse.web.service.UserProfileService.validateUserNamePassword(UserProfileService.jav
    a:16)
    at com.thoughtworks.clearinghouse.web.servlet.LogonAction.actionExecuted(LogonAction.java:48)
    at com.thoughtworks.clearinghouse.web.servlet.AbstractAction.execute(AbstractAction.java:38)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:437)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:264)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
    at java.lang.Thread.run(Thread.java:536)

    You can check two things
    1. Whether the ports to the database server are blocked by a fire wall.
    2. And more simpler and most probably the case here, you can try to findout if you can see the database server from the webserver. i.e. ping the database server from a console in the webserver.

  • ODBC errors for Oracle Migration Workbench and SQL Server 2000 on Windows

    Hi all-
    I setup a new ODBC connection for the Oracle 10g Migration Workbench to MS SQL Server 2000 on Windows XP and keep getting the following errors when I try to
    either test the new ODBC connection to MS SQL Server 2000 for use with the Oracle Migration Workbench tool. Goal is to fix these errors so that I can migrate our test SQL Server 2000 databases to Oracle 10g.
    Current configuration
    - Oracle 10.1 Migration Workbench
    - Oracle 10g Database (target)
    - MS SQL Server 2000 (source database)
    -Windows XP
    -ODBC 3.85.1117 driver for Windows XP with SQL Server and Oracle
    Errors:
    I. When I test the ODBC connection:
    Microsoft SQL Server ODBC Driver Version 03.85.1117
    Running connectivity tests...
    Attempting connection
    [Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]Specified SQL server not found.
    TESTS FAILED!
    Now here is what has me totally confused:
    I can use the command line ISQL to access the database on the server and IP is all correct and port is available. So I can access the SQL Server database fine it is when I try to setup ODBC that it gives me problems.
    Any tips how to get this ODBC working?
    Thanks
    Ben Prusinski

    1. Jing Jin. If you had READ the post you would have seen that installing later versions is NOT an option.
    2. Not supported does NOT mean does NOT work, as Balmukund pointed out in the referenced thread.  The site that this databases supports is using ASP which is also NOT supported by Microsoft.  As it turns out Balmukund's solution actually turns
    out to be the correct solution.  I installed SS2K and its Service pack 4 on the machine last night.  Good answer Balmukund. as we say in the Navy, "BRAVO ZULU!!"  which means "WELL DONE!!
    3. Tom Li I just posted the question less than 48 hours ago.  My last post was less than 24 hours ago.  I think I have the right to be given the opportunity to determine whether a reply is the answer or not. I understand you don't like unanswered
    posts sitting around for weeks, months or years. (I don't like it either as I have a few that are still unanswered after several years.)  But you should not be showing replies as answers before I even get a chance to see them, much less try them out. 
    You should also not be showing replies as answers which don't address the criteria of the question.  I specifically stated that I had to install SS2K.  I went on to state, "And before anyone asks I need to install this version because that is what
    the customer is using and I need to duplicate their databases."  So the correct answer, if in fact SS2K did not work on Windows 7, would have been a virtual machine answer, as suggested on the thread Balmukund referenced.  So before you mark a reply
    as an answer read the question.
    Edward R. Joell MCSD MCDBA

  • *****Error in Microsoft JDBC drivers for SQL Server 2000****

    hi guys,
    I am getting the following error in my application. The error seems to have thrown by Microsoft JDBC drivers for SQL Server 2000
    The application tries to execute the the following query when the error is thorwn:
    SELECT getDate(); // getDate is a function which returns currebt date time. The error is thrown occassionally. Other times the same query is executed correctly by the application.
    Can any one help with this one.
    The error is:
    java.lang.NullPointerException
         at com.microsoft.jdbc.base.BaseImplStaticCursorResultSet.setupTempFiles(Unknown Source)
         at com.microsoft.jdbc.base.BaseImplStaticCursorResultSet.<init>(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.chainInServiceImplResultSets(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.getNextResultSet(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.commonGetNextResultSet(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
         at com.microsoft.jdbc.base.BaseStatement.executeQuery(Unknown Source)
         at com.sanderson.tallyman.util.TallymanDB.executeQuery(Unknown Source)
         at com.sanderson.tallyman.util.TallymanDB.getCurrentDate(Unknown Source)
         at com.sanderson.tallyman.operations.interfaces.RecordUpdateControl.updateRecord(Unknown Source)
         at com.sanderson.tallyman.operations.interfaces.DebtInterfaceControl.processUpdate(Unknown Source)
         at com.sanderson.tallyman.operations.interfaces.DebtInterfaceControl.processInterface(Unknown Source)
         at com.sanderson.tallyman.operations.interfaces.InterfaceHandler$ProcessRecord.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    rgds,

    Hi,
    Did you ever get an answer to this? I am also having this problem.

Maybe you are looking for