Categories
geekiness Uncategorized

Debugging by Exceptions

Since Axis is not responding in any human-readable way to my attempts to run a webservice on it, I have found a new method of debugging: throwing exceptions. Since the only thing that comes over the wire from my axis host (localhost:8180 *lol* and don’t ask why tomcat picked that port instead of 8080, I had enough trouble with it) are exceptions I am starting to throw SOAPExceptions containing the messages I would usually use with my other debug-paradigm: “System.out.println”-Debugging. I know neither is the way of the wise man, but in their respective circumstances both methods have their advantages for me.

throw new SOAPEception("Yes the program really got here");

And Bob Marley is good for debugging too.

By Yashima

Writer of code and stories