Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Rudolf Visagie
IBM JavaServer Faces portlet in LifeRay throws ArrayIndexOutOfBoundsExcepti
December 8, 2008 6:20 AM
Answer

Rudolf Visagie

Rank: New Member

Posts: 3

Join Date: December 8, 2008

Recent Posts

Hi

I've just successfully installed LifeRay on top of WebSphere Application Server 6.1.
I'm using RAD (Rational Application Developer) 7.0 to develop my portlet applications.

I also managed to successfully install a JSR-168 sample portlet and add it to a page.

However, when I create & install a JavaServer Faces portlet using RAD, the portlet window displays the following error:
'PORTTestFaces is temporarily unavailable.'

I also encounter this error in the server log:

[12/8/08 15:44:49:500 CAT] 0000002c ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: PORTTestFaces. Exception thrown : java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 1
at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:184)
at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:122)
at com.ibm.faces.portlet.httpbridge.PortletRequestDispatcherWrapper.include(PortletRequestDispatcherWrapper.java:61)
at com.ibm.faces.portlet.httpbridge.PortletRequestDispatcherWrapper.forward(PortletRequestDispatcherWrapper.java:35)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:325)
at com.ibm.faces.portlet.httpbridge.PortletExternalContextWrapper.dispatch(PortletExternalContextWrapper.java:83)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:174)
at com.ibm.faces.portlet.PortletViewHandlerImpl.renderView(PortletViewHandlerImpl.java:74)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:118)
at com.ibm.faces.portlet.FacesPortlet.doRender(FacesPortlet.java:383)
at com.ibm.faces.portlet.FacesPortlet.doView(FacesPortlet.java:422)
at com.ibm.faces.portlet.FacesPortlet.doDispatch(FacesPortlet.java:305)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
at com.sun.portal.portletcontainer.appengine.filter.FilterChainImpl.doFilter(FilterChainImpl.java:121)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:69)
at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:96)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1095)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:569)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:639)
at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:575)
at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:646)
at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:414)
at com.ibm._jsp._render_5F_portlet._jspService(_render_5F_portlet.java:1369)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1095)

Any assistance would be appreciated. Thanks.
Rudolf Visagie
RE: IBM JavaServer Faces portlet in LifeRay throws ArrayIndexOutOfBoundsExc
December 8, 2008 7:02 AM
Answer

Rudolf Visagie

Rank: New Member

Posts: 3

Join Date: December 8, 2008

Recent Posts

Here's some more info.

I hacked the PortletRequestDispatcherImpl file to display the following debug log entries:
[12/8/08 16:58:59:926 CAT] 00000026 PortletReques I org.apache.commons.logging.impl.Jdk14Logger info Rudolf: path = /PORTTestFacesView.jsp?jsp_precompile
[12/8/08 16:58:59:988 CAT] 00000026 PortletReques I org.apache.commons.logging.impl.Jdk14Logger info Rudolf: name = jsp_precompile

Therefore, the error occurs because jsp_precompile does not have a jsp_precompile=xxx type parameter entry.
Any ideas?
Rudolf Visagie
RE: IBM JavaServer Faces portlet in LifeRay throws ArrayIndexOutOfBoundsExc
August 11, 2009 5:30 AM
Answer

Rudolf Visagie

Rank: New Member

Posts: 3

Join Date: December 8, 2008

Recent Posts

See the following for a resolution of the bug:

http://issues.liferay.com/browse/LPS-956