I'm having difficulty getting my helloworld portlet running on pluto, with apache bridges.
I am getting StringIndexOutOfBoundsException on PortletWindowUtils#getWindowId
portletWindowId = nameRef[0].substring("javax.portlet.p.".length(),
nameRef[0].indexOf('?'));
throws StringIndexOutOfBoundsException, because the value of nameRef[0] comes back just as PORTLET_WINDOW_ID
i.e. "org.apache.portals.bridges.util.portlet_window_id" not "javax.portlet.p.*" as the code implies
getPortletWindowId for session: CC465B39BA9199712DEEF690F90AE2C2 (thread: 15)
no portletWindowId yet - going to derive it.
17/10/2008 15:44:23 org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet default threw exception
java.lang.StringIndexOutOfBoundsException: String index out of range: -17
I'm not sure but I discussed it here and it may be related:
https://issues.apache.org/jira/browse/PB-84 CCE in PortletWindowUtils.getPortletWindowId
Does the Bridges windowId code not work correctly when running on portlet 2.0 perhaps? I know sessio0n isolation is now an optional feature of portlet 2.0 - perhaps that's causing problems.