Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Enumerator Error

Ram Sateesh Talari
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks

Could't figure out what exactly is going wrong?? Can some one help??

public static void main(String[] args)
SequenceReader aSR = new SequenceReader(args[0]);
Hashtable sequences = aSR.getSequenceHash();
Enumeration SequenceIds = sequences.keys();
String MasterId = (String)SequenceIds.nextElement();
String SlaveId = (String)SequenceIds.nextElement();
RnaAlign aRnaAlign = new RnaAlign();

this main function is in RnaAlign class

No Compilation errors.

Run-time error :

Exception in thread "main" java.util.NoSuchElementException: Hashtable Enumerator
at java.util.Hashtable$Enumerator.nextElement(
at pwa.RnaAlign.main(

please Explain

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic