Hi,
did you try simple prints in the qs and qc events instead of code?
you may want to try the app on another server if possible.
you also want to try to create a simple xpage with ONE datasource and ONE field, all bound to a simple form and with a button to save the datasource to see if that works.
hth
alex