Skip to Content
author's profile photo Former Member
Former Member

java.lang.ClassCastException?

Hi,

I am getting a java.lang.ClassCastException in my code. In my portal service, I have an JSPDynPage component, which exposes one of my external web service's public methods. When I test this JSPDynPage component, I am not getting any complications and results are returned as expected.

I then tried to create a new Portal Application, which will use the above portal service. In my Portal Application's component, I am calling the service with the following statement

com.WebService.IWS client = (com.WebService.IWS)PortalRuntime.getRuntimeResources().getService(IWS.KEY);

This statement is identical to the statement I used in my portal service's JSPDynPage component. However, when I test the Portal Application's component, I get a java.lang.ClassCastException. The project was built successfully. There were no complications in compiling and deploying the PAR file. I have also verified that the Portal Service has been started. I just do not understand why there would be a ClassCastException since the Portal Service's own JSPDynPage component is working.

Any advice?

Thank You.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 14, 2007 at 04:04 AM

    Hi,

    Check if u have given Portal Service project as reference to ur portal component project.

    Regards,

    Harini S

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Hirini,

      i am also gettiing this kind of error.

      My application is running fine - i am getting exception only when i want to see the Personilization Window(Ctrl+right Click).

      i want to changes some properties of iView using Portal Personilization.

      i went to the required iView Preview and Ctrl+right mouse Click on the screen then getting the below exception.

      Please suggest me on this? thanks in advance! 😊

      The initial exception that caused the request to fail, was:

      java.lang.ClassCastException

      at com.sap.tc.webdynpro.corecomp.p13nui.UIElementsTree.getIsRowHead(UIElementsTree.java:1052)

      at com.sap.tc.webdynpro.corecomp.p13nui.UIElementsTree.loadChildren(UIElementsTree.java:780)

      at com.sap.tc.webdynpro.corecomp.p13nui.UIElementsTree.loadChildren(UIElementsTree.java:916)

      at com.sap.tc.webdynpro.corecomp.p13nui.UIElementsTree.loadChildren(UIElementsTree.java:912)

      at com.sap.tc.webdynpro.corecomp.p13nui.UIElementsTree.loadChildren(UIElementsTree.java:912)

      ... 73 more

      java.lang.ClassCastException

      at com.sap.tc.webdynpro.corecomp.p13nui.UIElementsTree.getIsRowHead(UIElementsTree.java:1052)

      at com.sap.tc.webdynpro.corecomp.p13nui.UIElementsTree.loadChildren(UIElementsTree.java:780)

      at com.sap.tc.webdynpro.corecomp.p13nui.UIElementsTree.loadChildren(UIElementsTree.java:916)

      at com.sap.tc.webdynpro.corecomp.p13nui.UIElementsTree.loadChildren(UIElementsTree.java:912)

      at com.sap.tc.webdynpro.corecomp.p13nui.UIElementsTree.loadChildren(UIElementsTree.java:912)

      at com.sap.tc.webdynpro.corecomp.p13nui.UIElementsTree.loadChildren(UIElementsTree.java:671)

      at com.sap.tc.webdynpro.corecomp.p13nui.UIElementsTree.loadChildren(UIElementsTree.java:912)

      at com.sap.tc.webdynpro.corecomp.p13nui.UIElementsTree.loadChildren(UIElementsTree.java:912)

      at com.sap.tc.webdynpro.corecomp.p13nui.UIElementsTree.loadChildren(UIElementsTree.java:671)

      at com.sap.tc.webdynpro.corecomp.p13nui.UIElementsTree.loadChildren(UIElementsTree.java:671)

      at com.sap.tc.webdynpro.corecomp.p13nui.UIElementsTree.loadChildren(UIElementsTree.java:912)

      at com.sap.tc.webdynpro.corecomp.p13nui.UIElementsTree.loadChildren(UIElementsTree.java:912)

      at com.sap.tc.webdynpro.corecomp.p13nui.UIElementsTree.loadChildren(UIElementsTree.java:671)

      at com.sap.tc.webdynpro.corecomp.p13nui.UIElementsTree.loadChildren(UIElementsTree.java:671)

      at com.sap.tc.webdynpro.corecomp.p13nui.UIElementsTree.loadChildren(UIElementsTree.java:912)

      at com.sap.tc.webdynpro.corecomp.p13nui.UIElementsTree.populateUITree(UIElementsTree.java:616)

      at com.sap.tc.webdynpro.corecomp.p13nui.UIElementsTree.wdDoInit(UIElementsTree.java:137)

      at com.sap.tc.webdynpro.corecomp.p13nui.wdp.InternalUIElementsTree.wdDoInit(InternalUIElementsTree.java:169)

      at com.sap.tc.webdynpro.progmodel.generation.DelegatingCustomController.doInit(DelegatingCustomController.java:73)

      at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)

      at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)

      at com.sap.tc.webdynpro.progmodel.controller.Component.getCustomControllerInternal(Component.java:449)

      at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:387)

      at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:416)

      at com.sap.tc.webdynpro.progmodel.context.MappingInfo.getDataNode(MappingInfo.java:83)

      at com.sap.tc.webdynpro.progmodel.context.MappingInfo.initMapping(MappingInfo.java:125)

      at com.sap.tc.webdynpro.progmodel.context.MappingInfo.init(MappingInfo.java:121)

      at com.sap.tc.webdynpro.progmodel.context.MappedNodeInfo.doInit(MappedNodeInfo.java:215)

      at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:671)

      at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:674)

      at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.