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.  [ 5 posts ] 
Author Message
 Post subject: java.lang.ClassCastException: org.hibernate.hql.ast.HqlToken
PostPosted: Sun May 29, 2005 7:35 am 
Beginner
Beginner

Joined: Wed Feb 09, 2005 10:52 am
Posts: 21
In Hibernate versions 3.0.4 and 3.0.5, I receive the following exception every time I access hibernate after redeploying my application:


Code:
java.lang.ClassCastException: org.hibernate.hql.ast.HqlToken
   at org.hibernate.hql.ast.HqlLexer.makeToken(HqlLexer.java:33)
   at org.hibernate.hql.antlr.HqlBaseLexer.mIDENT(HqlBaseLexer.java:632)
   at org.hibernate.hql.antlr.HqlBaseLexer.nextToken(HqlBaseLexer.java:225)
   at antlr.TokenBuffer.fill(TokenBuffer.java:69)
   at antlr.TokenBuffer.LA(TokenBuffer.java:80)
   at antlr.LLkParser.LA(LLkParser.java:52)
   at org.hibernate.hql.antlr.HqlBaseParser.statement(HqlBaseParser.java:130)
   at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:209)
   at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:127)
   at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:83)
   at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:427)
   at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:388)
   at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:291)
   at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1005)


Any ideas? I am using JBoss 4.0.

Thanks,

Justin


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 09, 2005 7:50 am 
Newbie

Joined: Fri Sep 09, 2005 7:44 am
Posts: 2
I have exactly the same problem. I'm using Hibernate 3.0.5 and Webphere 5.1 - JDK 1.4
Did you solve your problem ?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 09, 2005 7:56 am 
Beginner
Beginner

Joined: Wed Feb 09, 2005 10:52 am
Posts: 21
jak78 wrote:
I have exactly the same problem. I'm using Hibernate 3.0.5 and Webphere 5.1 - JDK 1.4
Did you solve your problem ?


Well, I backed down to 3.0.4 for a while but I've since gone back to 3.0.5 and no longer have the problem. I also upgraded JBoss in the process, so I'm not sure exactly what solved the problem. You may want to try Hibernate 3.1RC2.

Hope that helps...

Justin


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 25, 2005 5:47 am 
Newbie

Joined: Tue Oct 18, 2005 8:43 am
Posts: 15
I also have the same problem. Using Hibernate 3.1rc2 and JBoss 4.01sp1.
Really annoying, as I need to restart JBoss every time I re-deploy my app. And upgrading JBoss is unfortunaltely not an option...

/pj


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 14, 2005 8:37 am 
Newbie

Joined: Tue Oct 18, 2005 8:43 am
Posts: 15
upgrading to JBoss 4.0.3 solved the problem


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