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

Portal Runtime Error in the NavigationEventsHelperService

Hi All,

The NavigationEventsHelperService is throwing a StringIndexOutOfBoundsException whenever I have a HTMB Event that is fired to load a new Page.

For normal operations for e.g. Navigating from one page to another using EPCM.doNavigate all seems to work fine.

Below is the StackTrace of the Exception. If anybody has faced a similar problem and found a solution, Please let me know the same.

Thanks

Ankur

Jul 26, 2004 2:45:38 PM # System_Thread_64 Fatal [PortalNode.fireEventOnNode] operation failed

java.lang.StringIndexOutOfBoundsException: String index out of range: -1

at java.lang.String.substring(String.java:1591)

at com.sapportals.portal.navigation.NavigationEventsHelperService.parseParamStringToTable(NavigationEventsHelper

Service.java:716)

at com.sapportals.portal.navigation.NavigationEventsHelperService.getParameter(NavigationEventsHelperService.jav

a:565)

at com.sapportals.portal.navigation.DetailedNavigationTree.doOnNodeReady(DetailedNavigationTree.java:192)

at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:388)

at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:237)

at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:349)

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 26, 2004 at 10:20 AM

    Hi All,

    I have found the problem why the error was coming.

    I was passing the following as the Value of the QueryString (Oil & Gas Solution Map 2004) although I did a URLEncoder.encode(), it was failing due to the extra & (apmersant) being passed.

    Finally when the NavigationEventsHelperService was trying to build a array of QueryString name value pairs it failed as there was no = (equals sign) after the &

    Thanks

    Ankur

    Add comment
    10|10000 characters needed characters exceeded