-->
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.  [ 1 post ] 
Author Message
 Post subject: c3p0 stored procedures problem
PostPosted: Tue Mar 31, 2009 5:33 am 
Newbie

Joined: Mon Mar 30, 2009 2:16 pm
Posts: 1
Hello,
I'm facing a problem trying to call a stored procedure using the c3p0 connection pooling.
The SP parameters values are being set dynamically : in one call only the ones on odd position, in other call the others (or something like that)
I've tried setting the parameters values by their name and not index and I get the same result.

After a few calls like that (I can't determine) I'm getting

java.sql.SQLException: Invalid column index
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
at oracle.jdbc.driver.OraclePreparedStatement.setLongInternal(OraclePreparedStatement.java:4018)
at oracle.jdbc.driver.OracleCallableStatement.setLong(OracleCallableStatement.java:2117)
at com.mchange.v2.c3p0.impl.NewProxyCallableStatement.setLong(NewProxyCallableStatement.java:1325)


I'm using c3p0-0.9.1.2.jar and hibernate3.jar on a oracle 10g db


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

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.