[Biojava-dev] MappedDataStoreFactory bug

Schreiber, Mark mark.schreiber at agresearch.co.nz
Wed Apr 23 17:32:49 EDT 2003


Hi -
 
When trying to increase the wordLength argument of  MappedDataStoreFactory.buildDataStore() above 10 I get an index out of bounds exception
 
Exception in thread "main" java.lang.IndexOutOfBoundsException
        at java.nio.Buffer.checkIndex(Buffer.java:438)
        at java.nio.ByteBufferAsIntBufferB.get(ByteBufferAsIntBufferB.java:96)
        at org.biojava.bio.program.ssaha.MappedDataStoreFactory.addCount(MappedDataStoreFactory.java:305)
        at org.biojava.bio.program.ssaha.MappedDataStoreFactory.buildDataStore(MappedDataStoreFactory.java:143)
        at ssaha.CreateDNAFastaHashTable.main(CreateDNAFastaHashTable.java:31)
 
I think this might be caused by an innapropriate value for "word" created by this statement on line 141
 
int word = PackingFactory.primeWord(seq, wordLength, packing);
 
Can anyone help?
 
- Mark

=======================================================================
Attention: The information contained in this message and/or attachments
from AgResearch Limited is intended only for the persons or entities
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipients is prohibited by AgResearch
Limited. If you have received this message in error, please notify the
sender immediately.
=======================================================================



More information about the biojava-dev mailing list