Just sharing some of my inconsequential lunch conversations with you... RSS  

Monday, July 23, 2007

When asserting too much...

A friend of mine as just told me a funny bug. His client had just messed up some certificates so his application stopped working. Nothing new here, the client just reissued the certificates, but the application could only be started after 3 service restarts!

After reading some logs the problem was identified: the application protocol started by retrieving the first entries from the event viewer. So it was clear that the event viewer collector was poorly written, just putting the event viewer content directly on the web service response, thus generating badly-formed XML depending on the content. After the restarts, the restart information replaced the well-formed XML offender, solving the problem :)

And here's yet another scenario where logging too much information can put you in trouble :)

No comments:

Development Catharsis :: Copyright 2006 Mário Romano