JRuby raise an exception with the following code :

columnFields = fieldsHash.keys
columnHeaders = fieldsHash.values
selectedFields = fieldsHash.join_keys ", "

datas = Array.new
myRows = query.executeQuery("SELECT " + selectedFields + " FROM " + tbl
+ ";")
while myRows.next()
        myCols = Array.new
        fieldsHash.keys.each {|fhk| myCols << myRows.getString(fhk) }
        datas << myCols
end

model = Table::DefaultTableModel.new

# printMethods(model)

print datas, "\n"

model.setDataVector(datas, columnHeaders)
$table.setModel(model)


i suspect de line :

datas << myCols flatten the Array "datas" which has to be an Array of
Arrays that's to say each element of the Array "datas" has to be an
Array itself (being a set of columns from a database)

the equivalent in Java/BeanShell being Vector of Vectors.

i'm sure (print out) all datas are OK but the structure of them.

then the question is to know if the line "datas << myCols" returns an
Array of Array or simply an concataneted Array ???

-- 
yt