I see you have some print statements for printing out the TGT. Can you even get that far? In the stack trace you sent, it appears you aren't sending a TGT, thus the line:
<Attempting to retrieve ticket [null]> M -- You are currently subscribed to cas-dev@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev