-->
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.  [ 3 posts ] 
Author Message
 Post subject: java.lang.NoSuchFieldError: STRING in hibernate 3.6.10.Final
PostPosted: Wed Jan 16, 2013 9:00 am 
Newbie

Joined: Wed Jan 16, 2013 8:52 am
Posts: 1
My application was working in hibernate 3.5.1-final. When upgrade it to 3.6.1.final, it started failing with below exception:

Caused by: java.lang.NoSuchFieldError: STRING

The line where it is failing is:

Code:
final Query query = getSession().createSQLQuery(sqlString)
                           .addScalar("xyz", Hibernate.STRING)  <-- its failing here
                           .addScalar("bcd", Hibernate.BOOLEAN)
                           .setParameter("name", name);



When I opened Hibernate.java source code of 3.6.10, I can see Hibernate.STRING is deprecated. But, that should NOT stop me from using this right? Fix is to use StandardBasicTypes, but why is it failing even though field exists in Hibernate.java?.

Hibernate jars in my classpath:

hibernate-commons-annotations-3.2.0.Final.jar
hibernate-core-3.6.10.Final.jar
hibernate-jpa-2.0-api-1.0.1.Final.jar
hibernate-validator-4.0.2.GA.jar


Any help on this really appreciated.


Top
 Profile  
 
 Post subject: Re: java.lang.NoSuchFieldError: STRING in hibernate 3.6.10.Final
PostPosted: Tue Feb 05, 2013 9:34 am 
Newbie

Joined: Tue Feb 05, 2013 9:32 am
Posts: 2
I have exactly the same problem.

I am using
hibernate-core-3.6.10.Final.jar
and
hibernate-jpa-2.0-api-1.0.1.Final.jar

Did you find any solution?

Thank you


Top
 Profile  
 
 Post subject: Re: java.lang.NoSuchFieldError: STRING in hibernate 3.6.10.Final
PostPosted: Thu Feb 07, 2013 5:12 am 
Newbie

Joined: Tue Feb 05, 2013 9:32 am
Posts: 2
So in my case it is solved.
We are using weblogic server.
After second deploy, problem disappeared.


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