Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

URGENT-ClassCastException

Hi All,

I am getting a class cast exception on executing the following snippet in a Portal Application.

IPortalBasicRoleFactoryService rfsrv = (IPortalBasicRoleFactoryService) PortalRuntime

.getRuntimeResources().getService

(IPortalBasicRoleFactoryService.KEY);

Error is - Caused by: java.lang.ClassCastException: com.sap.portal.pcd.pcm.roles.PortalBasicRoleFactoryService

at RolePortlet.doContent(RolePortlet.java:60)

Funny thing is this implementation class is not present in the jar file. Also the interface IPortalBasicRoleFactoryService doesnot extend from IService which is what the portal runtime resources.getService(KEY) returns.

Is this code valid for a later version of EP stack? We are using EP 6.0, UME 4.0, PDK 6.0

Please help.

TIA

Saby

Not what you were looking for? View more on this topic or Ask a question