[antlr-interest] Facing NoSuchMethodError:CommonTreeNodeStream.getNodeIndex(obj) after upgrating ANTLR V3.1.1 to ANTLR v3.3

meena.subramanian at wipro.com meena.subramanian at wipro.com
Tue Jun 14 04:04:26 PDT 2011

Hi All,


Currently I am using Antlr v3.1.1. Now I have upgraded it to Antlr v3.3
after that I am getting the following error while compiling my java
files with the latest version Antlr.


I am facing some compilation issues so not able to build. The error
message is given below,


UnexpectedException occurred: java.lang.NoSuchMethodError: 




Can you please suggest some solution for the above  problem?




As per my analysis CommonTreeNodeStream.getNodeIndex(obj) method is
present till  Antlr jar v3.1.2 but the releases after this version, does
not contain the CommonTreeNodeStream.getNodeIndex(obj) method. So
obviously v3.3 does not contain the method getNodeIndex(obj) so it is
throwing  NoSuchMethodError.


Can you please clarify, is there any equivalent method available in the
v3.3 for getNodeIndex(obj) method?


Thanks in Advance!!!




Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 


More information about the antlr-interest mailing list