i am getting the following error , it happens just in sqlserver, not in
oracle .
i replaces the driver from JTDS to the regular microsoft driver ,
but still i see this error .
DEBUG NewPooledConnection : A Throwable occurred while trying to reset the
typeMap property of our Connection to Collections.EMPTY_MAP!
com.microsoft.sqlserver.jdbc.SQLServerException: This operation is not
supported.
at com.microsoft.sqlserver.jdbc.SQLServerException.
makeFromDriverError(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.
NotImplemented(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.setTypeMap(Unknown
Source)
at com.mchange.v2.c3p0.impl.NewPooledConnection.reset(NewPooledConnection.
java:290)
at com.mchange.v2.c3p0.impl.NewPooledConnection.
markClosedProxyConnection(NewPooledConnection.java:247)
at com.mchange.v2.c3p0.impl.NewProxyConnection.close(NewProxyConnection.
java:1148)
at org.hibernate.connection.C3P0ConnectionProvider.
closeConnection(C3P0ConnectionProvider.java:42)
at org.hibernate.jdbc.ConnectionManager.closeConnection(ConnectionManager.
java:445)
at org.hibernate.jdbc.ConnectionManager.
aggressiveRelease(ConnectionManager.java:400)
at org.hibernate.jdbc.ConnectionManager.
afterTransaction(ConnectionManager.java:287)
i saw that in the following link they refer to this issue as a non-issue .
http://forum.hibernate.org/viewtopic.php?
p=2248886&highlight=&sid=818161f20bb6ca2db515f8de6af86aeb
still, i would like to remove this from the log ....
if it is indeed not an error ....
Please advise ,
Thanks ,
Yair
Functionally in your context, it's a non-issue. The JDBC connection
is being returned to the pool, and it's being reset to a standard
condition so it's ready for the next user. One of the calls being
made to reset the connection is that setTypeMap() call, and the
driver is throwing that exception because the driver doesn't support
that call (It *should* be smart enough to accept such a call if it
intends to set an existing/default condition). The pool is catching
and ignoring the exception, but the SQLException will still be logged.
Joe Weinstein at BEA Systems
In that case, you will need to get Microsoft's official attention.
They
should be able to improve the behavior in this case to not throw an
exception.
Which version of Microsoft SQL Server 2005 JDBC Driver are you using? If
you use v1.2 you should be able to call the setTypeMap method with empty
map without getting any errors. Note that trying to set the type map to a
non-empty or null map will still throw a SQLException.
Thanks!
Yesim [ MSFT]
thanks,
Yair
"Yesim Koman" wrote:
hi yesim ,
i am using v1.2 .
all this setTypeMap code in internally, i didn't changed there nothing , just
using the hibernate ordinary....
the same code works fine on oracle .
note that i have tried to use JTDS driver and it didn't solve the problem .
please help ASAP , it is exploding my log and it is becoming a huge issue!
we can not deliver the product in this state to the client ...
thanks,
Yair
Evan
--------------------
>Thread-Topic: "This Operation is not supported" on sqlserver
>thread-index: AchvDbLbacoGY9PrRnqMJ3JAzryE/w==
>X-WBNR-Posting-Host: 207.46.192.207
>From: =?Utf-8?B?15nXkNeZ16g=?= <@discussions.microsoft.com>
>References: <d8148dd9c67e45e3...@newspe.com> <c5a55c77-92bb-47ab...@i7g2000prf.googlegroups.com>
<zoe7BtTX...@TK2MSFTNGHUB02.phx.gbl>
>Subject: Re: "This Operation is not supported" on sqlserver
>Date: Thu, 14 Feb 2008 05:30:00 -0800
>Lines: 27
>Message-ID: <92CBDA3C-AA84-4F87...@microsoft.com>
>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.2992
>Newsgroups: microsoft.public.sqlserver.jdbcdriver
>Path: TK2MSFTNGHUB02.phx.gbl
>Xref: TK2MSFTNGHUB02.phx.gbl microsoft.public.sqlserver.jdbcdriver:434
>NNTP-Posting-Host: tk2msftsbfm01.phx.gbl 10.40.244.148
>X-Tomcat-NG: microsoft.public.sqlserver.jdbcdriver
Evan T. Basalik
This posting is provided “AS IS” with no warranties, and confers no rights.