I have an issue with intermittently getting an exception from htsjdk.samtools.reference.IndexedFastaSequenceFile:
htsjdk.samtools.SAMException: Sequence dictionary and index contain different numbers of contigs or htsjdk.samtools.SAMException: Unable to get ...
The problem is that I'm invoking the same code over and over and only getting this error intermittently.
I propose that the error message is in fact misleading, particularly in the case of the sequence dictionary response.