-->
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: Database cannot set connection option SET_CATALOG
PostPosted: Tue Aug 05, 2008 1:14 pm 
Newbie

Joined: Tue Aug 05, 2008 12:47 pm
Posts: 1
Hi,

I'm using Hibernate3 with Sybase (jconnect3) with c3p0 for connection pooling. When I run the application, I get the following message:

Code:
2188 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] INFO  com.mchange.v2.c3p0.SQLWarnings  -010SK: Database cannot set connection option SET_CATALOG.

java.sql.SQLWarning: 010SK: Database cannot set connection option SET_CATALOG.

   at com.sybase.jdbc3.jdbc.ErrorMessage.createWarning(Unknown Source)

   at com.sybase.jdbc3.jdbc.ErrorMessage.raiseWarning(Unknown Source)

   at com.sybase.jdbc3.jdbc.MdaManager.getMetaDataAccessor(Unknown Source)

   at com.sybase.jdbc3.jdbc.MdaManager.getMetaDataAccessor(Unknown Source)

   at com.sybase.jdbc3.jdbc.MdaManager.getMetaDataAccessor(Unknown Source)

   at com.sybase.jdbc3.tds.Tds.setOption(Unknown Source)

   at com.sybase.jdbc3.jdbc.SybConnection.setCatalog(Unknown Source)

   at com.sybase.jdbc3.jdbc.SybConnection.init(Unknown Source)

   at com.sybase.jdbc3.jdbc.SybConnection.a(Unknown Source)

   at com.sybase.jdbc3.jdbc.SybConnection.a(Unknown Source)

   at com.sybase.jdbc3.jdbc.SybConnection.<init>(Unknown Source)

   at com.sybase.jdbc3.jdbc.SybConnection.<init>(Unknown Source)

   at com.sybase.jdbc3.jdbc.SybDriver.connect(Unknown Source)

   at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:135)

   at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)

   at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)

   at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)

   at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)

   at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)

   at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)

   at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)



Do you happen to know what the problem might be?

Thanks


Top
 Profile  
 
 Post subject: Database cannot set connection option SET_CATALOG
PostPosted: Wed Nov 26, 2008 9:35 am 
Newbie

Joined: Wed Nov 26, 2008 9:30 am
Posts: 2
try to remove database name from poolconnection url
in my case that works


Top
 Profile  
 
 Post subject: Database cannot set connection option SET_CATALOG
PostPosted: Wed Nov 26, 2008 9:36 am 
Newbie

Joined: Wed Nov 26, 2008 9:30 am
Posts: 2
try to remove database name from poolconnection url
in my case that works


Top
 Profile  
 
 Post subject: Re: Database cannot set connection option SET_CATALOG
PostPosted: Fri Jan 24, 2014 8:45 am 
Newbie

Joined: Fri Jan 24, 2014 6:35 am
Posts: 1
Removing dbname from the url solves the problem for Sybase db because we start db server per database. what about SQLServer or any other? where to specify the dbname?


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.