title: xstream parser error: java.lang.ArrayIndexOutOfBoundsException: -1
body: <p>Let me start by saying this is the first time I am trying to use xStream.  I am trying to parse an xml file and use the data to build a java object.  I've added the xstream-1.4.4.jar, xpp3_min-1.1.4c.jar,  xmlpull-1.1.3.1.jar, and the kxml2-2.3.0.jar to my build paths.  I've tried to follow several tutorials, but just can't seem to figure out why I am receiving this error:  </p>
  
  <pre><code>Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
      at com.thoughtworks.xstream.core.util.FastStack.pop(FastStack.java:42)
      at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:125)
      at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103)
      at com.thoughtworks.xstream.io.xml.XppReader.&lt;init&gt;(XppReader.java:63)
      at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:54)
      at com.thoughtworks.xstream.XStream.fromXML(XStream.java:913)
      at com.thoughtworks.xstream.XStream.fromXML(XStream.java:904)
      at ParseTesting.Testing.main(Testing.java:10)
  </code></pre>
  
  <p>The xml file looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  
  &lt;vblock&gt;
      &lt;name&gt;vBlock1&lt;/name&gt;
      &lt;status&gt;online&lt;/status&gt;
      &lt;storage&gt;2.2&lt;/storage&gt;
      &lt;cpu&gt;2.5&lt;/cpu&gt;
  &lt;/vblock&gt;
  </code></pre>
  
  <p>Now, here is the corresponding class for the object I'd like to create:</p>
  
  <pre><code>package ParseTesting;
  
  public class Vblock {
      private String name;
      private String status;
      private double storage;
      private double cpu;
  
      /*public Vblock(String n, String stat, double stor, double proc){
          name = n;
          status = stat;
          storage = stor;
          cpu = proc;
      }*/
  
      public String getName(){
          return this.name;
      }
      public String getStatus(){
          return this.status;
      }
      public double getStorage(){
          return this.storage;
      }
      public double getCpu(){
          return this.cpu;
      }
  
  }
  </code></pre>
  
  <p>And finally, the actually parsing that I am attempting:</p>
  
  <pre><code>package ParseTesting;
  
  import com.thoughtworks.xstream.XStream;
  
  public class Testing {
      public static XStream xstream = new XStream();
  
      public static void main(String[] args){
          xstream.alias("vblock", Vblock.class);  
          Vblock v1 = (Vblock)xstream.fromXML("vBlock.xml");
  
          System.out.println(v1.getName());
      }
  
  }
  </code></pre>
  
  <p>I would appreciate any insight that can be provided.  Thank you very much!</p>