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 a comment
10|10000 characters needed characters exceeded

Related questions

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 a comment
    10|10000 characters needed characters exceeded

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.