thanks -- fixed.

On Fri, May 21, 2010 at 2:16 PM, Nicolas Vervelle <> wrote:

When running the unit tests, I have several exceptions for the crystal reader :

java.lang.StringIndexOutOfBoundsException: String index out of range: 28
    at java.lang.String.substring(
    at org.jmol.adapter.readers.xtal.CrystalReader.readGradient(
    at org.jmol.adapter.readers.xtal.CrystalReader.checkLine(
    at org.jmol.adapter.smarter.AtomSetCollectionReader.readAtomSetCollection(
    at org.jmol.adapter.smarter.AtomSetCollectionReader.readData(
    at org.jmol.adapter.smarter.Resolver.getAtomCollectionAndCloseReader(
    at org.jmol.adapter.smarter.SmarterJmolAdapter.staticGetAtomSetCollectionFromReader(
    at org.jmol.adapter.smarter.SmarterJmolAdapter.getAtomSetCollectionFromReader(

junit.framework.AssertionFailedError: Error returned for ..\Jmol-datafiles\crystal\alpha_quartz.out: Error reading file at line 893:

String index out of range: 28
for file alpha_quartz.out
type Crystal


Jmol-developers mailing list

Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
phone: 507-786-3107

If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900