-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: UnimplementedOperationException!
PostPosted: Wed Apr 26, 2006 3:51 am 
Newbie

Joined: Tue Apr 25, 2006 8:50 am
Posts: 2
[i][i]Need help with Hibernate?

Hibernate version: 3.1.3

5-Apr-06 15:22:41 DEBUG A Throwable occurred while trying to reset the typeMap property of our Connection to Collections.EMPTY_MAP!
com.sybase.jdbc3.utils.UnimplementedOperationException: The method com.sybase.jdbc3.jdbc.SybConnection.setTypeMap(java.util.Map) has not been completed and should not be called.
at com.sybase.jdbc3.jdbc.ErrorMessage.raiseRuntimeException(ErrorMessage.java:957)
at com.sybase.jdbc3.utils.Debug.notImplemented(Debug.java:387)
at com.sybase.jdbc3.jdbc.SybConnection.setTypeMap(SybConnection.java:2010)
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 com.mchange.v1.db.sql.ConnectionUtils.attemptClose(ConnectionUtils.java:41)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1.testPooledConnection(C3P0PooledConnectionPool.java:182)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1.refurbishIdleResource(C3P0PooledConnectionPool.java:136)
at com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask.run(BasicResourcePool.java:1394)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:368)

Database i am using.
JDBC -3 , JConnect -6
WebSphere 5.1
c3po- connection pooling
The above exception is coming when i run a cron job (Batch Job) Nothing to do with Websphere. If the method is not implemented in jdbc3.jdbc.SybConnection.setTypeMap then how do i go about regarding the connection pooling.

Regards
Sailaja Baluvu


Top
 Profile  
 
 Post subject: Re: UnimplementedOperationException!
PostPosted: Wed Apr 26, 2006 7:57 am 
Senior
Senior

Joined: Mon Aug 22, 2005 5:45 am
Posts: 146
Sailaja Baluvu wrote:
[i][i]Need help with Hibernate?

Hibernate version: 3.1.3

5-Apr-06 15:22:41 DEBUG A Throwable occurred while trying to reset the typeMap property of our Connection to Collections.EMPTY_MAP!
com.sybase.jdbc3.utils.UnimplementedOperationException: The method com.sybase.jdbc3.jdbc.SybConnection.setTypeMap(java.util.Map) has not been completed and should not be called.
at com.sybase.jdbc3.jdbc.ErrorMessage.raiseRuntimeException(ErrorMessage.java:957)
at com.sybase.jdbc3.utils.Debug.notImplemented(Debug.java:387)
at com.sybase.jdbc3.jdbc.SybConnection.setTypeMap(SybConnection.java:2010)
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 com.mchange.v1.db.sql.ConnectionUtils.attemptClose(ConnectionUtils.java:41)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1.testPooledConnection(C3P0PooledConnectionPool.java:182)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1.refurbishIdleResource(C3P0PooledConnectionPool.java:136)
at com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask.run(BasicResourcePool.java:1394)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:368)

Database i am using.
JDBC -3 , JConnect -6
WebSphere 5.1
c3po- connection pooling
The above exception is coming when i run a cron job (Batch Job) Nothing to do with Websphere. If the method is not implemented in jdbc3.jdbc.SybConnection.setTypeMap then how do i go about regarding the connection pooling.

Regards
Sailaja Baluvu


have you tried updating your JDBC driver?

_________________
Please don't forget to give credit, if my posting helped to solve your problem.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 27, 2006 4:50 am 
Newbie

Joined: Tue Apr 25, 2006 8:50 am
Posts: 2
Hi Thanks a lot ,
I will try to upgrade the drivers and will let you know.
Regards
Sailaja


Top
 Profile  
 
 Post subject: Experience the same issue
PostPosted: Wed Mar 14, 2007 10:29 am 
Newbie

Joined: Wed Mar 14, 2007 10:20 am
Posts: 1
Location: Chicago, IL, USA
I am having similar error after updating c2po connection pooling utility from version 8 to version 9: c3p0-0.8.5.2.jar -> c3p0-0.9.1.jar. I use the latest Sybase JDBC drivers. Hibernate version is 3.0:
[i]
13 Mar 2007 16:41:59,085 [DEBUG] com.mchange.v2.c3p0.impl.NewPooledConnection - com.mchange.v2.c3p0.impl.NewPooledConnection@1712193 handling a throwable.
com.sybase.jdbc3.utils.UnimplementedOperationException: The method com.sybase.jdbc3.jdbc.SybDatabaseMetaData.getDatabaseMajorVersion() has not been completed and should not be called.
...
[/i]

Looks like Hibernate of c3p0 tries read the database meta information. Is it possible to turn this option off in Hibernate?

Thanks,
Andrei.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.