-->
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.  [ 2 posts ] 
Author Message
 Post subject: problem with stored procedures with Sybase and Webspehere 5
PostPosted: Tue May 10, 2005 8:15 am 
Newbie

Joined: Tue May 10, 2005 8:08 am
Posts: 3
Summary:

If I call a stored procedure on Sybase from Websphere 5.0 then I receive "Caused by: java.sql.SQLException: JZ00F: Cursor property cannot be changed after the cursor has been declared" exception.
It seems to be a known problem (http://www-1.ibm.com/support/docview.ws ... wg1PQ83999) However I don't know what could be a workaround. Could somebody help me?
Martin

Hibernate version:

3.0

Mapping documents:

<sql-query name="availablePositions" callable="true">
<return alias="pos" class="com.ubs.pp.pojo.AvailablePoisitonBean">
<return-property name="id" column="outright_position_uid"/>
<return-property name="settledQuantity" column="settled_quantity"/>
<return-property name="settledAllocatedQuantity" column="settled_allocated_quantity"/>
<return-property name="datedPendingSalesQuantity" column="dated_pending_sales_quantity"/>
<return-property name="datedSettledAllocatedQuantity" column="dated_settled_alloc_quantity"/>
<return-property name="datedPendingAllocatedQuantity" column="dated_pending_alloc_quantity"/>


</return>
{call tr_get_alloc_positions_lite(:counterpartyId, :financialInstrumentId, :dividendRequirementValue, :depositoryId, :date, :include_buys, :selection, :requires_matching_depot, :streetside_counterparty_code, :pbm_quantity, :today) }
</sql-query>

Code between sessionFactory.openSession() and session.close():



Full stack trace of any exception that occurs:

Caused by: java.sql.SQLException: JZ00F: Cursor property cannot be changed after the cursor has been declared.
at com.sybase.jdbc2.jdbc.ErrorMessage.raiseError(ErrorMessage.java:500)
at com.sybase.jdbc2.tds.TdsCursor.checkState(TdsCursor.java:493)
at com.sybase.jdbc2.tds.TdsCursor.setName(TdsCursor.java:68)
at com.sybase.jdbc2.jdbc.SybStatement.setCursorName(SybStatement.java:630)
at com.ibm.websphere.rsadapter.SybaseDataStoreHelper.doStatementCleanup(SybaseDataStoreHelper.java:146)
at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.closeWrapper(WSJdbcPreparedStatement.java(Compiled Co
de))
at com.ibm.ws.rsadapter.jdbc.WSJdbcCallableStatement.closeWrapper(WSJdbcCallableStatement.java:163)
at com.ibm.ws.rsadapter.jdbc.WSJdbcObject.close(WSJdbcObject.java(Compiled Code))
at org.hibernate.jdbc.AbstractBatcher.closePreparedStatement(AbstractBatcher.java(Inlined Compiled Code))
at org.hibernate.jdbc.AbstractBatcher.closeStatement(AbstractBatcher.java(Inlined Compiled Code))
at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java(Compiled Code))
at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java(Compiled Code))
at org.hibernate.loader.Loader.getResultSet(Loader.java(Compiled Code))


Name and version of the database you are using:

Sybase


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 9:49 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
seems like sybase/ibm has a bug in their driver/datasource - ask/pay for a update from them

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.