title: UTF 8 encoding error: should never happen ,java exception
body: <p>In the web application service method, I am trying to parse a xml using VTD-XML.   After reading it from the database, I'm calling the code below.<br>
  It's failing to parse and throws an exception:</p>
  
  <blockquote>
    <p>UTF 8 encoding error: should never happen</p>
  </blockquote>
  
  <p>The same code is working in separate class in main method. I am using NetBeans IDE.</p>
  
  <pre><code>Class.forName("com.mysql.jdbc.Driver");
  Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/ebuild_woym_purple_clone1", "root", "root");
  Statement st = con.createStatement();
  st.executeQuery("select * from revision where name='First');
  ResultSet rs = st.getResultSet();
  if(rs.next()){
      String xml = rs.getString(9); 
      System.out.println(xml);
      vg.setDoc(xml.getBytes());
      vg.parse(false); //vtd-xml parser object , throwing exception here
      System.out.println("good");
  }
  </code></pre>