The error "UserDetailsService returned null, which is an interface contract violation" is displayed when the database service is stopped and BMC 4 cannot verify the user credentials. Make sure that the database service is started before starting the MC 4 service.