on 07-28-2009 2:02 PM
Hi evebody,
I facing with a very stranger situation in my WD Component. I have two components, A and B. The component B uses some methods of the Component A, but when I invoke these methods I getting the following exception:
java.lang.ClassCastException
at net.weg.cs.astec.srvorder.wdp.InternalMaterialOVSCustomController.wdGetConfigurationCompInstInterface(InternalMaterialOVSCustomController.java:226)
at net.weg.cs.astec.srvorder.MaterialOVSCustomController$OVSMaterialContextNotificationListener.onQuery(MaterialOVSCustomController.java:204)
at com.sap.tc.webdynpro.progmodel.valuehelp.OVSCMIQuery.onQuery(OVSCMIQuery.java:159)
at com.sap.tc.webdynpro.components.ovs.OVSComponent.query(OVSComponent.java:209)
at com.sap.tc.webdynpro.components.ovs.wdp.InternalOVSComponent.query(InternalOVSComponent.java:170)
... 31 more
When I debug my code, I see where this happen:
/** outgoing controller usage to interface controller of component usage */
public net.weg.cs.astec.model.configuration.wdp.IExternalConfigurationCompInterface wdGetConfigurationCompInstInterface() {
return
(net.weg.cs.astec.model.configuration.wdp.IExternalConfigurationCompInterface)
wdAlterEgo
.getComponentGCI()
.getComponentUsage("ConfigurationCompInst")
.getInterfaceController();
}
The method wdAlterEgo.getComponentGCI().getComponentUsage("ConfigurationCompInst").getInterfaceController() return a different type then the expected. Should return net.weg.cs.astec.model.configuration.wdp.IExternalConfigurationCompInterface but is returning net.weg.cs.astec.model.configuration.wdp.IInternalConfigurationCompInterface
Does anybody knows why this happening?
Thanks,
Luciano
How did you embed A in B?
BR, Sergei
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.