Value queue is not a member of List[scala.collection.Map[String, AnyRef]]

Hello every one,

i am using gatling 2.1.7,

i have a script which simulate a SOAP request, my plan is to replace some value of the request body by getting a list of maps from the database but i am getting the above error “Value queue is not a member of List[scala.collection.Map[String, AnyRef]]”

Any help would be appreciated.

sample code:

/*a method which returns a list of map/

def resultSetToList (resultSet: ResultSet) :List[Map[String, AnyRef]] = {
  var i = 1
  val md: ResultSetMetaData = resultSet.getMetaData()
  val columns = md.getColumnCount
  var list: List[Map[String, AnyRef]] = List()

  while (resultSet.next()){
    val states = scala.collection.mutable.Map[String, Object]()

    for(i <- 1 to columns){
     
        states.put(md.getColumnName(i), resultSet.getObject(i));
     
    }

    list = states :: list
  }

  return list
}


/**a method which uses the list of map*/