RE: Connection Reset Error with SQLState() = 08S01
- From: evanba@xxxxxxxxxxxxxxxxxxxx (Evan T. Basalik (MSFT))
- Date: Tue, 11 Sep 2007 20:53:00 GMT
Wes,
This sounds like what would be called a general network error (GNE) in the non-JDBC world. You will likely need to take some network traces to identify the
cause. Most GNEs can be traced down to a piece of hardware inappropriately resetting a connection.
Evan
--------------------
Thread-Topic: Connection Reset Error with SQLState() = 08S01BA90-4499-8CFA-95703A3A4A8C@xxxxxxxxxxxxx> <kd32zVb6HHA.6140@xxxxxxxxxxxxxxxxxxxxxx>
thread-index: Acfp0g8qPEyeL9kcQKqoVf3yalbYDw==
X-WBNR-Posting-Host: 209.78.47.227
From: =?Utf-8?B?V2VzIENsYXJr?= <WesClark@xxxxxxxxxxxxxxxxxxxxxxxxx>
References: <F0F1C794-A805-4370-ACA7-4F633C460104@xxxxxxxxxxxxx> <F574478C-1843-420F-95E5-D1D6F52D4382@xxxxxxxxxxxxx> <C7A101C8-
Subject: RE: Connection Reset Error with SQLState() = 08S01(AbstractPreparedSelectStatementHandler.java:33)
Date: Tue, 28 Aug 2007 17:18:01 -0700
Lines: 89
Message-ID: <4203A20E-FC68-4CD8-A81A-488ECA4286F5@xxxxxxxxxxxxx>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2826
Newsgroups: microsoft.public.sqlserver.jdbcdriver
Path: TK2MSFTNGHUB02.phx.gbl
Xref: TK2MSFTNGHUB02.phx.gbl microsoft.public.sqlserver.jdbcdriver:279
NNTP-Posting-Host: tk2msftsbfm01.phx.gbl 10.40.244.148
X-Tomcat-NG: microsoft.public.sqlserver.jdbcdriver
I think it's the most recent production release of the MS JDBC driver:
1.1.1501.101.
We turned on a feature of DBCP to run a validation query when getting the
connection from the pool, and that eliminated the connection reset errors.
This implies the connections are going bad while idle in the pool. We saw
these errors when we started running intense batch jobs with long running
queries in the background on the same server using the same pool.
Here's the full stack trace. I had left out the lines from our code.
com.microsoft.sqlserver.jdbc.SQLServerException: Connection reset
at
com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown
Source)
at com.microsoft.sqlserver.jdbc.TDSWriter.flush(Unknown Source)
at com.microsoft.sqlserver.jdbc.TDSWriter.endRequest(Unknown Source)
at
com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(Unknown Source)
at
com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PreparedStatementExecutionRequest.executeStatement(Unknown Source)
at com.microsoft.sqlserver.jdbc.CancelableRequest.execute(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeRequest(Unknown
Source)
at
com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.executeQuery(Unknown
Source)
at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)
at
com.guidewire.pl.system.database.sqlhandler.AbstractPreparedSelectStatementHandler.executeQuery
at(SQLDataHolderPreparedStatementHandler.java:33)
com.guidewire.pl.system.database.query.impl.SQLDataHolderPreparedStatementHandler.executeQuery
at(VacationingUsersCacheImpl.java:39)
com.guidewire.pl.system.transaction.ConnectionHandlerImpl.executeQuery(ConnectionHandlerImpl.java:374)
at
com.guidewire.pl.system.transaction.ConnectionHandlerImpl.executeQueryCore(ConnectionHandlerImpl.java:310)
at
com.guidewire.pl.system.transaction.ConnectionHandlerImpl.executeQuery(ConnectionHandlerImpl.java:255)
at com.guidewire.pl.system.database.DBKernel.executeQuery(DBKernel.java:49)
at
com.guidewire.pl.system.database.StandardDatabase.read(StandardDatabase.java:514)
at
com.guidewire.pl.system.database.query.impl.QueryExecuterImpl.read(QueryExecuterImpl.java:49)
at
com.guidewire.pl.system.database.query.impl.QueryExecuterImpl.executeQuery(QueryExecuterImpl.java:151)
at
com.guidewire.pl.system.database.query.impl.QueryHelperImpl.doGetKeys(QueryHelperImpl.java:295)
at
com.guidewire.pl.system.database.query.impl.QueryHelperImpl.fetchKeys(QueryHelperImpl.java:58)
at
com.guidewire.pl.system.database.impl.QueryResultImpl.maybeLoadNextChunk(QueryResultImpl.java:103)
at
com.guidewire.pl.system.database.impl.QueryResultImpl.hasNext(QueryResultImpl.java:159)
at
com.guidewire.pl.system.util.CollectionUtil.addAllFromIterator(CollectionUtil.java:380)
at
com.guidewire.pl.system.util.CollectionUtil.buildListFromIterator(CollectionUtil.java:402)
at
com.guidewire.pl.system.database.impl.QueryProcessorBase.getResultsAsList(QueryProcessorBase.java:48)
at
com.guidewire.pl.domain.community.impl.VacationingUsersCacheImpl$VacationingUserEntry.ensureIsLoaded(VacationingUsersCacheImpl.java:47)
at
com.guidewire.pl.domain.community.impl.VacationingUsersCacheImpl$VacationingUserEntry.getVacationingUsers
atmatch
com.guidewire.pl.domain.community.impl.VacationingUsersCacheImpl.getVacationingUsers(VacationingUsersCacheImpl.java:76)
at
com.guidewire.pl.domain.community.impl.UserBaseImpl.getVacationingUsers(UserBaseImpl.java:478)
at
com.guidewire.cc.web.vacation.VacationFinder.usersOnVacation(VacationFinder.java:31)
at
com.guidewire.cc.web.vacation.VacationFinder.getVacationActivities(VacationFinder.java:40)
at
com.guidewire.cc.domain.activity.ActivityVacationViewFinderImpl.findVacationActivities(ActivityVacationViewFinderImpl.java:19)
at sun.reflect.GeneratedMethodAccessor530.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
"Evan T. Basalik (MSFT)" wrote:
Wes,
What version of the Microsoft JDBC driver are you running? Also, can you post your full code? The stack trace in the MSDN posting doesn't seem to
yours. Am I missing something here?
Evah
--------------------
Evan T. Basalik
This posting is provided ?AS IS? with no warranties, and confers no rights.
.
- Prev by Date: Re: sendStringParameterAsUnicode: How to insert unicode data corre
- Next by Date: RE: Connection Reset Error with SQLState() = 08S01
- Previous by thread: Re: sendStringParameterAsUnicode: How to insert unicode data correctly
- Next by thread: RE: Connection Reset Error with SQLState() = 08S01
- Index(es):
Relevant Pages
|
Loading