API calls that use variable argument lists for parameters (such as dbExecute() and dbQuery()) do not work. This is a limitation of BeanShell.
Workaround:
Use the Java API calls instead of the BeanShell versions. For example:
rs = dbExecute("SELECT * FROM table WHERE id = ?", id);
becomes:
rs = ZKDStatic.dbExecute("SELECT * FROM table WHERE id = ?", id);
Logged In: YES
user_id=271380
Originator: YES
This issue is being tracked on the BeanShell fork issue tracker:
http://code.google.com/p/beanshell2/issues/detail?id=13