Hi Thomas, I'd be glad to share it, but honestly I don't have it, it was in client's repository.
Anyway, to solve this issue, you should check the server exception checkinhg the sysout and syserr as Maciej said, or debugging this code to check the exception.
Demian