Skip to Content
Former Member
Aug 20, 2015 at 03:25 PM

NG Cockpit :cannot be cast to com.hybris.cockpitng.actions.CockpitAction


Hello, I've created custom editareaactions in my custom extension(training-backoffice-config.xml) for type Customer to do some operation. To handle that action i've created my action by implementing CockpitAction< CustomerModel,CustomerModel> .

While going to editor area for type customer in backoffice, its raising class cast exception to CockpitAction.

Code: public class ApproveActions implements CockpitAction < CustomerModel,CustomerModel> { }

Also tried by implementing CockpitAction < Object,Object >...

Existing Action's and my Custom Action (Delete Action, Principal Permission Action and My Custom Action) alt text

Class Cast Exception for CockpitAction in back office.
alt text