Problem Upgrading from 4.0.1 to 4.0.x

I had an error upgrading to 4.0.1. I think it had something to do with the documents not being properly setup from the 3.1 -> 4.0 move. When I upgrade from 4.0.1 to 4.0.2 the upgrade completes but I get a message about and INVALID_PDU when I attempt to login. If I try to push farther and upgrade the 4.0.2 to 4.0.3 it fails saying:

I'm sorry , I thought I looked thoroughly. I applied your patch and was able to get 4.0.2 to start succesfully, but it still giving the INVALID_PDU error in the webmail login. Should I start looking at tomcat?

Debian 3.1. No I've not made any changes, but I can check to see if one of the other admins did. Catelina.out doesn't give anything useful. Looks like mail is coming in - but web and other clients can't connect.