Missing exception import.
Incorrect parameters passed, so user id was not being carried through.