You probably should use prepareStatement instead of prepareCall. I had the same problem. You can search the archives to look for a better explanation which I don't remmember right now
It seems that in Version "8.2dev-500 JDBC 3" CallableStatements are implemented differently from older Versions. The index to set fields now starts at 2.
---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@postgresql.org so that your message can get through to the mailing list cleanly