I\'m a newbie JAVA. I have a config file
You are using queryForObject(java.lang.String, java.lang.Object[], java.lang.Class) , which expects an array of objects to bind to a PreparedStatement
type query with placeholders.
Your query is probably missing placeholders, e.g :
select a.firstname from TEST a where id = ?
You get errors about invalid column indexes, because the content of your array cannot currently be mapped to any placeholders indexes.