Thanks andreas..... What is strange is that the particular exception is thrown by biojava in the alignLeft method.... at org.biojava.bio.structure.io.FileConvert.alignLeft(FileConvert.java:86) Any idea why that line throws an exception ?