Home > Archive > SQL Server JDBC > July 2005 > [Microsoft][SQLServer 2000 Driver for JDBC]net dll not initi









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author [Microsoft][SQLServer 2000 Driver for JDBC]net dll not initi
akraai

2005-07-13, 3:23 am

We are currently in the middle of piloting a new application using
MSDE, and some of our users are getting the following SQLException
when attempting to query the database. The exception occurs
sporadically, and it only seems to happen after the application is
used for an extended duraton of time. Also, once the exception
occurs, it seems like the only way to obtain a good connection again
is to restart the JVM. Successive calls to get a connection from the
drivermanager fail otherwise.

Our calling application uses JNI to call a java function which is
responsible for creating the database connection and querying the
database.

Any help would be appreciated!

Here's the exception:

[Microsoft][SQLServer 2000 Driver for JDBC]net dll not initialized
(WSAStartup): socket write error
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]net
dll not initialized (WSAStartup): socket write error
at com.microsoft.jdbc.base.BaseExceptions. createException(Unkn
own
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.TDSRPCRequest. submitRequest(Unknow
n
Source)
at
com.microsoft.jdbc.sqlserver.tds.TDSCursorRequest.openCursor(Unknown
Source)
at
com.microsoft.jdbc.sqlserver. SQLServerImplStateme
nt.execute(Unknown
Source)
at com.microsoft.jdbc.base.BaseStatement. commonExecute(Unknow
n
Source)
at com.microsoft.jdbc.base.BaseStatement. executeQueryInternal
(Unknown
Source)
at com.microsoft.jdbc.base. BasePreparedStatemen
t. executeQuery(Unknown

Source)

Kamil Sykora [MSFT]

2005-07-25, 1:26 pm

Hello,

WSAStartup is a Windows API that is called (typically once) during an
application's startup to start using Winsock calls. Since you have been
using sockets up until the failure, it had to be called prior to that. It
looks like somehow the Winsock got uninitialized or unloaded but the JVM is
unaware of that.

Can you try opening a socket directly when this happens to confirm? You
could try something like:

java.net.Socket conn = new java.net.Socket("localhost", 1433);

and if you get the same failure, I would say this is an issue in the JVM.

Thanks,
Kamil

Kamil Sykora
Microsoft Developer Support - Web Data

Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no rights.


Are you secure? For information about the Strategic Technology Protection
Program and to order your FREE Security Tool Kit, please visit
http://www.microsoft.com/secur_ity.



--------------------
| NNTP-Posting-Date: Wed, 13 Jul 2005 00:58:48 -0500
| Subject: [Microsoft][SQLServer 2000 Driver for JDBC]net dll not initi
| From: akraai@hotmail-dot-com.no-spam.invalid (akraai)
| Newsgroups: microsoft.public.sqlserver.jdbcdriver
| Mime-Version: 1.0
| Content-Type: text/plain; charset=ISO-8859-15
| Content-Transfer-Encoding: 8bit
| User-Agent: newsSync (SQL Server) 112669
| Message-ID: < foWdneohifEFMEnfRVn_
vg@giganews.com>
| Date: Wed, 13 Jul 2005 00:58:48 -0500
|
| We are currently in the middle of piloting a new application using
MSDE, and some of our users are getting the following SQLException
when attempting to query the database. The exception occurs
sporadically, and it only seems to happen after the application is
used for an extended duraton of time. Also, once the exception
occurs, it seems like the only way to obtain a good connection again
is to restart the JVM. Successive calls to get a connection from the
drivermanager fail otherwise.

Our calling application uses JNI to call a java function which is
responsible for creating the database connection and querying the
database.

Any help would be appreciated!

Here's the exception:

[Microsoft][SQLServer 2000 Driver for JDBC]net dll not initialized
(WSAStartup): socket write error
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]net
dll not initialized (WSAStartup): socket write error
at com.microsoft.jdbc.base.BaseExceptions. createException(Unkn
own
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.TDSRPCRequest. submitRequest(Unknow
n
Source)
at
com.microsoft.jdbc.sqlserver.tds.TDSCursorRequest.openCursor(Unknown
Source)
at
com.microsoft.jdbc.sqlserver. SQLServerImplStateme
nt.execute(Unknown
Source)
at com.microsoft.jdbc.base.BaseStatement. commonExecute(Unknow
n
Source)
at com.microsoft.jdbc.base.BaseStatement. executeQueryInternal
(Unknown
Source)
at com.microsoft.jdbc.base. BasePreparedStatemen
t. executeQuery(Unknown

Source)

|

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2009 droptable.com