My DBA and I worked on trying to debug this for about 3 hours yesterday. I had built a simple java proc with the DC named itsbroke, accepting the defaul code and sql statement it generates. It ran through the DC GUI, but when I built it and tried running it through the CLP client it would give the aforementioned error. However, after working on it for a while it worked very rarely almost at random in a particular CLP session. Eventually, the DBA bounced (restarted?) the DB instance, and all seemed to be working just fine. Unfortunately, other responsibilities did not allow me to test further today, but this might be worth a try for you. Granted, it's not very satisfying, treating a IBM Regatta AIX/DB2 box like it's Windoze, but...