Showing results for 
Search instead for 
Did you mean: 

Navigation - ClassCastException

Active Participant
0 Kudos


I have an Custom Menu Navigation implemented in our portal. There are lots of helpful Threads here for such a task. But now, my Logfile is Full of ClassCastExceptions. It works as follows:

INavigationNode currentNode = navHelperService.getCurrentNavNode(request);

currentNode = navHelperService.getParentNode(currentNode, request);

So, after I have the current Node, I want to retrieve the parent node. It seems to work, but I also get this ClassCastException:[PRT-Async 0,5,PRT-Async]##0#0#Error##Java###URL does not point to an object of type INavigationConnectorNode: portal_content/com.burda/com.burda.HBM



at com.sapportals.portal.pcd.pcm.roles.RoleNavigationConnector.getNodes(

at com.sapportals.portal.pcd.pcm.roles.RoleNavigationConnector.getNode(

at com.sapportals.portal.navigation.NavigationConnectorProxy.getNode(

at com.sapportals.portal.navigation.NavigationService.getNavNode(

at com.sapportals.portal.navigation.NavigationService.getNode(

at com.sapportals.portal.navigation.cache.CachedNavigationService.getNode(

at com.sapportals.portal.navigation.NavigationEventsHelperService.getParentNode(


at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(

at com.sapportals.portal.prt.component.AbstractPortalComponent.service(

at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(

at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(

at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable$1$

at Method)



at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$


By currentNode.getClass().toString() I tried to find out, what Class it consists. The result was:

class com.sapportals.portal.navigation.cache.CacheNavigationNode

So, after I defined currentNode as INavigationNode why is it now CacheNavigationNode? And if I have to use this in my code, does anybody know, in what file I can find it?

I'm on NW04 SPS 19.

Hope anybody out there has any suggestion. Thanks for help,

best regards,


View Entire Topic
Active Participant
0 Kudos

Hello Martin,

Yes, NWDS is also SPS19

But thats been a helpful suggestion, because I downloaded and from the portal, when ist was SPS 15. I now downloaded and replaced the the jars by the current SPS 19 jars from the portal server. I recompiled and uploaded the component, but I still get the same error.

Do you have any further hint, what the problem could be?

Best regards,