-->
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: The DB exception : could not execute query using iterate
PostPosted: Wed Apr 18, 2007 3:14 am 
Newbie

Joined: Wed Apr 18, 2007 2:52 am
Posts: 1
Hi All,

i am using hibernate. My problem is that when i am using the methods which gets me the data from the database locally using the User Interface is working fine. But i am calling this method using RMI it is giving exception which is like this.

The DB exception is : could not execute query using iterate

My code is like this :

Session session = HibernateUtil.getSessionFactory().openSession();
String SQL_QUERY = "from RuleTemplateVO where templateName = ?";
Query query = session.createQuery(SQL_QUERY);
query.setString(0,templateName);
Iterator it = query.iterate();
...........

again i included all the jars in my build path.

If anybody gives there thought on this it will be greate.

Thanks in advance.
Mahantesh.


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.