-->
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.NoSuchFieldError: tokenTypeToASTClassMap
PostPosted: Thu May 25, 2006 2:18 pm 
Beginner
Beginner

Joined: Mon Feb 27, 2006 11:16 am
Posts: 25
To Whom It May Concern:


Last edited by jadeite100 on Thu Nov 09, 2006 3:14 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu May 25, 2006 11:52 pm 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
Looks like a jar version error. Check two things:

1) Your antlr.jar is the correct version (use the one in the hibernate dist)
2) The hibernate3.jar you used to build your app is the same as the one you're using to run it.

_________________
Code tags are your friend. Know them and use them.


Top
 Profile  
 
 Post subject: Get the same error
PostPosted: Thu Feb 15, 2007 11:21 am 
Newbie

Joined: Thu Feb 15, 2007 11:07 am
Posts: 1
Hello,

I get the same error, I am using Eclipse 3.21 with Hibernate 3.2.2, Struts 1.3.5, Spring 2.0.2 and many other open source in a big projet. I have the Exadel plugin installed and others.

The most simple HQL request <=> "select o from MyEntity as o" throwed the above exception. No more info from nowhere.

ANTL is a parser used to analyse the HQL request, and I knew the problem was coming from it but how and why ?

I was using antlr 2.7.7, I tryed antlr 2.7.6, 2.7.5 ..., nothing changed. There was only one antlr like jar in my classpth.

So, I took my project and put antlr to the top of my classpath and all worked fine.

Under Eclipse, Right click on your projet, property menu, Java Build path and look at the order and export table, put antlr jar at the top of the list.
If you are doing a J2EE project, play with the J2EE module depency.

If no path is describe nowhere, try to rename the antlr jar as aaaaaa.jar in oder to have it first when project will load the jar.

I must presume, because I am not sure, that one of my Eclipse plugin is mounting an antlr jar and is causing this classpath issue.

best regards,
Renaud.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 29, 2007 1:00 pm 
Newbie

Joined: Fri Jun 29, 2007 12:56 pm
Posts: 1
The above is correct, the Export Order matters if you have another antlr jar in your classpath. Just be sure that you have 2.7.x before any other antlr jars. I, in fact, have mine as the first jar exported...


Top
 Profile  
 
 Post subject: Re: java.lang.NoSuchFieldError: tokenTypeToASTClassMap
PostPosted: Thu Jan 26, 2012 6:46 am 
Newbie

Joined: Thu Jan 26, 2012 6:36 am
Posts: 1
The same run-time Eclipse problem can happen when you use antlr-build.jar instead of antlr.jar in "Java Build Path" of project properties.


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.