-->
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.  [ 10 posts ] 
Author Message
 Post subject: NoClassDefFoundError: SQLQueryReturn
PostPosted: Fri Jul 21, 2006 6:07 am 
Newbie

Joined: Sat Nov 27, 2004 8:39 am
Posts: 3
Hi,

I'm playing with Hibernate Annotations and I'm using Hibernate-3.2.0.cr3, Hibernate-entitymanager-3.2.0.CR1, and Hibernate-annotations-3.2.0.CR1. Obviously I'm running into some version problem, when at runtime I get the following stacktrace:

Caused by: java.lang.NoClassDefFoundError: org/hibernate/loader/custom/SQLQueryReturn
at org.hibernate.cfg.annotations.QueryBinder.bindSqlResultsetMapping(QueryBinder.java:293)
at org.hibernate.cfg.AnnotationBinder.bindQueries(AnnotationBinder.java:238)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:403)
at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:353)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:265)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1210)
at hibernate.HibernateUtil.<clinit>(HibernateUtil.java:39)

Can anybody give me tip?

Carlo


Top
 Profile  
 
 Post subject: Re: NoClassDefFoundError: SQLQueryReturn
PostPosted: Fri Jul 21, 2006 10:55 am 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
Carlo wrote:
Hi,
Caused by: java.lang.NoClassDefFoundError: org/hibernate/loader/custom/SQLQueryReturn


Find the right H3 core lib - matching the annotations developement - which has that class.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 26, 2006 1:38 pm 
Newbie

Joined: Mon Jan 26, 2004 4:21 pm
Posts: 10
I upgraded to svn HEAD yesterday because I needed the fix for bug EJB-204, and started getting this exception.
It seems like SQLQueryReturn has been renamed NativeSQLQueryReturn.

I was banging my head on the wall until I realized that there was more than one hibernate-annotations.jar built in HibernateExt:
Code:
./ejb/lib/hibernate-annotations.jar
./ejb/target/hibernate./metadata/target/-entitymanager/lib/hibernate-annotations.jar
./metadata/target/hibernate-annotations/hibernate-annotations.jar
./tools/lib/testlibs/hibernate-annotations.jar

I started by using the one in ejb/lib, but once I switched to the oen from metadata/target, everything worked fine.

HTH,

Susie.


Top
 Profile  
 
 Post subject: Why isn't this fixed?
PostPosted: Fri Aug 04, 2006 9:15 am 
Newbie

Joined: Thu Dec 01, 2005 11:48 pm
Posts: 8
It seems like Hibernate 3.2 cr1 is the last version that has the SQLQueryReturn class. So there is quite some inconsistency...

When is Hibernate-Annotations CR2 coming out with the fix included?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 07, 2006 1:35 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
As a rule, we don't provide ETA.

_________________
Emmanuel


Top
 Profile  
 
 Post subject: Re: Why isn't this fixed?
PostPosted: Thu Aug 10, 2006 4:11 pm 
Newbie

Joined: Wed Jun 30, 2004 2:02 am
Posts: 13
exactt wrote:
It seems like Hibernate 3.2 cr1 is the last version that has the SQLQueryReturn class. So there is quite some inconsistency...

When is Hibernate-Annotations CR2 coming out with the fix included?


My question is why on earth class/package names would be changing between release candidates...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 10, 2006 11:29 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Because of the TCK

_________________
Emmanuel


Top
 Profile  
 
 Post subject: Catch-22?
PostPosted: Sat Aug 12, 2006 6:15 pm 
Newbie

Joined: Fri Apr 23, 2004 2:47 pm
Posts: 1
If I use CR1, the SQLQueryReturn problem goes away, but there is a new NoClassDefFoundError for the missing class org/hibernate/proxy/EntityNotFoundDelegate. If I use CR3 the EntityNotFoundDelegate is now located, but the SQLQueryReturn problem comes back. Same goes for CR2.

This seems kind of like a catch-22. I can't find a combination that works... is there such a thing?

Thanks,

Ben


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 12, 2006 7:07 pm 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
Quote:
I can't find a combination that works... is there such a thing?

No. ;-(
What a question! Rude, ignorant or stupid?

Simply read what the combination is on their home web sites.


Top
 Profile  
 
 Post subject: Re: NoClassDefFoundError: SQLQueryReturn
PostPosted: Wed Feb 10, 2010 9:35 am 
Newbie

Joined: Wed Feb 10, 2010 9:26 am
Posts: 1
i works fine with hibernate-3.2.0.cr2 and i find it more stable. earlier I was facing the same problem with other versions.


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