Do you have a validation for the item built? Better question, is the error handler code present for this application ? Sounds like the error handler is either not present and you are getting an error when the application encounters an error trying to log your type mismatch..
What version of APEX are you using? Database version?