title: gettting "org.mozilla.javascript.Undefined@c91f0d" this error in Java Script
body: <pre><code>var rs = dbConn.executeCachedQuery("select ....");
  var rsmd;
  var colCount;
  </code></pre>
  
  <p>after hitting this query i am getting 3 result</p>
  
  <pre><code> while(rs.next()) {
      logger.info('entering...'+(count + 1));
      var columnName,patientID,value,text = '';
      rsmd = rs.getMetaData();
      colCount  = rsmd.getColumnCount();
  
  
      for (var i = 1; i &lt;= colCount; i++) {
          columnName = rsmd.getColumnName(i);
          value      = rs.getObject(i);
          //doing some task here
      }
      //end of FOR loop
   }
   //end of while loop
  </code></pre>
  
  <p>my query returns 3 rows,after looping through 3 rows while checking 'rs.next()' in WHILE condition, it is throwing below error..</p>
  
  <p>while executing this i am getting this error <code>org.mozilla.javascript.Undefined@c91f0d</code>
  please help</p>