I am having the same exception, but I didn't extend the FlowController. I configure the class in the flow.xml like this:

<bean id="portletModeControllerMapping"...