Can the method return an Object 
Object line = new Object[sm.getColumnCount()]; for (int i = 1; i < sm.getColumnCount(); i++) line[i--] = rs.getObject(i); rs.close(); connect.close(); return line;
Judging by the given piece, we are talking about JDBC ...
line[i--]construction, you will have an infinite loop. Probably should have written
Recordset.getObject()will produce a
Blobpointer that refers to an
InputStreamthat is meaningless to hold in an
Summary: code is non-working, revision is required