• Post Reply Bookmark Topic Watch Topic
  • New Topic

Enumerator Error  RSS feed

 
Ram Sateesh Talari
Greenhorn
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();
aRnaAlign.setMaster(MasterId,(String)sequences.get(MasterId));
aRnaAlign.setSlave(SlaveId,(String)sequences.get(SlaveId));
}

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(Hashtable.java:970)
at pwa.RnaAlign.main(RnaAlign.java:146)

please Explain

cheers
Ram
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!