-->
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: All queries failing with in: expected
PostPosted: Tue Jun 29, 2004 6:40 am 
Senior
Senior

Joined: Fri Jun 18, 2004 10:17 am
Posts: 140
I am trying to get all Schedule rows into a List using the following call
Code:
      try {
         Session session = HibernateUtil.currentSession();
         Transaction tx = session.beginTransaction();

         Iterator iter = session.iterate("from Schedules s");

         tx.commit();
         
      } catch (HibernateException hE) {
         logger.error(hE.getMessage());
      }


but all I ever get in my logs is

Code:
in expected: s [from Schedules s]


I've tried a variety of HQL statements from the Hibernate documents but all of them generate this error.

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 29, 2004 7:22 am 
Senior
Senior

Joined: Fri Jun 18, 2004 10:17 am
Posts: 140
I got some more logging info if this helps?

Code:
12:19:13,847 DEBUG SessionImpl:555 - opened session
12:19:13,847 DEBUG JDBCTransaction:37 - begin
12:19:13,863 DEBUG DriverManagerConnectionProvider:84 - total checked-out connections: 0
12:19:13,863 DEBUG DriverManagerConnectionProvider:90 - using pooled JDBC connection, pool size: 0
12:19:13,863 DEBUG JDBCTransaction:41 - current autocommit status:false
12:19:13,894 DEBUG SessionImpl:1526 - find: from Schedules schedule
12:19:13,910 DEBUG QueryParameters:109 - named parameters: {}
12:19:13,957 DEBUG QueryTranslator:147 - compiling query
12:19:14,003 ERROR Application:? - in expected: schedule [from Schedules schedule]
12:19:14,785  INFO DriverManagerConnectionProvider:143 - cleaning up connection pool: jdbc:jtds:sqlserver://intratestgbr:1433/dbSchedules;charset=Cp1252;TDS=7.0


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 29, 2004 8:31 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Your mapping files are probably not loaded.
Try the fully qualified class name too.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 29, 2004 8:32 am 
Senior
Senior

Joined: Fri Jun 18, 2004 10:17 am
Posts: 140
from Schedules schedule

should be

from Schedule schedule

:) Thanks!


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.