Skip to Content
Former Member
Mar 29, 2013 at 10:06 PM

Class Cast Exception in UI Module using Module Access of custom Module


Hello WCEM Champs,

I am trying to Embed General Contact Views from User Module to my Custom Module


<wcf:moduleInterface id="contact" name="" viewComponent="contactGeneralData" componentData="#{cc.vch.contactGeneralData}"/>

in my Custom View.

For View Handler in ui Repository as per extention Guide

<ViewComponent name="myContactInfoView" componentHandlerClassName=" "/>

public class ExampleVCHandlerImpl extends ViewComponentHandlerBaseImpl<MyModuleAccess> implements BpContentVCHandler,UIProcessStepHandler {

public MyModuleAccess myModuleAccess =null;


public void prepareData(){

// get the module access of my module

myModuleAccess = this.getModuleAccess(); <============== Class Cast Exception here ?????


MyModuleAccess is created as per standard & similarly dependency is maintained.

Which Throw me error

Caused by: java.lang.ClassCastException: class incompatible with interface


I Have Gone through this Post

Inter module reference ClassCastException on WCEM2.0

but it didnt help me much .

Waiting for help

Thanks in Advance