There is probably an issue with the domainConfig.xml. It is corrupted, or malformated, so everytime SM tries to read it, it throws an exception and logs you out.
I would compare it to a good domainConfig.xml and see if there is anything out of the ordinary. Keep in mind that the VALUES will probably differ in some areas.