cancel
Showing results for 
Search instead for 
Did you mean: 

URGENT-ClassCastException

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi all, I have the same kind of problem, may someone help me?