Topic
3 replies Latest Post - ‏2012-04-12T09:31:15Z by SystemAdmin
navtaj
navtaj
78 Posts
ACCEPTED ANSWER

Pinned topic Weird error on simple TabbedPanel

‏2011-02-14T23:54:44Z |
I am on RAD 7.5.5 with the latest fixes.
Have a perfectly working JSF based portlet project working( which was created approx 2 -months ago).
It has implementation of TabbedPanels.

Today, i tried creating another project with need to implement a very simple requirement.
The JSF page has a TabbedPanel with only a Submit button in it.
Fails on load on the portal server.
Following is the code :

<%@taglib uri=
"http://java.sun.com/jsf/core" prefix=
"f"%><%@taglib uri=
"http://java.sun.com/portlet_2_0" prefix=
"portlet"%><%@taglib uri=
"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portlet-client-model" prefix=
"portlet-client-model"%><%@taglib uri=
"http://www.ibm.com/jsf/html_extended" prefix=
"hx"%><%@taglib uri=
"http://java.sun.com/jsf/html" prefix=
"h"%><%@taglib uri=
"http://www.ibm.com/jsf/BrowserFramework" prefix=
"odc"%> <portlet-client-model:init> <portlet-client-model:require module=
"ibm.portal.xml.*" /> <portlet-client-model:require module=
"ibm.portal.portlet.*" /> </portlet-client-model:init> <portlet:defineObjects /> <link rel=
"stylesheet" type=
"text/css" title=
"Style" href=
'<%= renderResponse.encodeURL(renderRequest.getContextPath() + "/theme/stylesheet.css") %>'> <link rel=
"stylesheet" type=
"text/css" title=
"Style" href=
'<%= renderResponse.encodeURL(renderRequest.getContextPath() + "/theme/tabpanel.css") %>'> <f:view><hx:scriptCollector id=
"scriptCollector1">   <h:form styleClass=
"form" id=
"form1"> <odc:tabbedPanel slantInactiveRight=
"4" width=
"300" styleClass=
"tabbedPanel" height=
"300" slantActiveRight=
"4" showBackNextButton=
"true" id=
"tabbedPanel1" showTabs=
"true" variableTabLength=
"false"> <odc:bfPanel id=
"bfpanel1" name=
"Tab1" showFinishCancelButton=
"false"> <hx:commandExButton type=
"submit" value=
"Submit" styleClass=
"commandExButton" id=
"button1" action=
"#{myBean.invokeMe}"></hx:commandExButton>   </odc:bfPanel> <f:facet name=
"back"> <hx:commandExButton type=
"submit" value=
"&lt; Back" id=
"tabbedPanel1_back" style=
"display:none"></hx:commandExButton> </f:facet> <f:facet name=
"next"> <hx:commandExButton type=
"submit" value=
"Next &gt;" id=
"tabbedPanel1_next" style=
"display:none"></hx:commandExButton> </f:facet> <f:facet name=
"finish"> <hx:commandExButton type=
"submit" value=
"Finish" id=
"tabbedPanel1_finish" style=
"display:none"></hx:commandExButton> </f:facet> <f:facet name=
"cancel"> <hx:commandExButton type=
"submit" value=
"Cancel" id=
"tabbedPanel1_cancel" style=
"display:none"></hx:commandExButton> </f:facet> </odc:tabbedPanel> </h:form> </hx:scriptCollector> </f:view>

Following is the exception :

JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /Project1View.jsp) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@72977297] [2/14/11 15:41:24:103 PST] 00000315 servlet       E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet Project1 in application Project1EAR. Exception created : javax.servlet.ServletException: javax.portlet.PortletException at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:361) at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:82) at com.ibm.isclite.container.collaborator.PortletServletCollaborator.doDispatch(PortletServletCollaborator.java:130) at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:74) at com.ibm.ws.portletcontainer.rrd.RRDServerPortletServletCollaborator.doDispatch(RRDServerPortletServletCollaborator.java:60) at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:74) at com.ibm.ws.portletcontainer.cache.CacheCollaborator.doDispatch(CacheCollaborator.java:74) at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:74) at com.ibm.wps.pe.pc.waspc.core.impl.PortletServletCollaboratorImpl.doDispatch(PortletServletCollaboratorImpl.java:121) at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:74) at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.dispatch(PortletServlet.java:208) ... ... at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550) Caused by: javax.portlet.PortletException at com.ibm.faces.portlet.FacesPortlet.doRender(FacesPortlet.java:395) at com.ibm.faces.portlet.FacesPortlet.doView(FacesPortlet.java:424) at com.ibm.faces.portlet.FacesPortlet.doDispatch(FacesPortlet.java:312) at javax.portlet.GenericPortlet.render(GenericPortlet.java:233) at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:128) at com.ibm.wps.propertybroker.standard.filter.C2APortletFilter.doFilter(C2APortletFilter.java:183) at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:120) at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:573) at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:114) at com.ibm.isclite.container.collaborator.PortletServletCollaborator.doRender(PortletServletCollaborator.java:69) at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:105) at com.ibm.ws.portletcontainer.rrd.RRDServerPortletServletCollaborator.doRender(RRDServerPortletServletCollaborator.java:123) at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:105) at com.ibm.ws.portletcontainer.cache.CacheCollaborator.doRender(CacheCollaborator.java:92) at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:105) at com.ibm.wps.pe.pc.waspc.core.impl.PortletServletCollaboratorImpl.doRender(PortletServletCollaboratorImpl.java:156) at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:105) at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:273) ... 186 more Caused by: java.lang.NullPointerException at com.ibm.faces.bf.util.ODCContextHelper.getODCPageContext(ODCContextHelper.java:143) at com.ibm.faces.bf.renderkit.TabbedPanelRenderer.encodeEnd(TabbedPanelRenderer.java:128) at com.ibm.faces.renderkit.DefaultAjaxRenderer.encodeEnd(DefaultAjaxRenderer.java:83) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:850) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:946) at javax.faces.render.Renderer.encodeChildren(Renderer.java:148) at com.ibm.faces.renderkit.DefaultAjaxRenderer.encodeChildren(DefaultAjaxRenderer.java:73) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:826) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942) at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:289) at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:220) at com.ibm.faces.portlet.PortletViewHandlerImpl.renderView(PortletViewHandlerImpl.java:79) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) at com.ibm.faces.portlet.FacesPortlet.doRender(FacesPortlet.java:383)

Confused!!!

Thanks in advance.
Updated on 2012-04-12T09:31:15Z at 2012-04-12T09:31:15Z by SystemAdmin
  • yurykats
    yurykats
    2186 Posts
    ACCEPTED ANSWER

    Re: Weird error on simple TabbedPanel

    ‏2011-02-15T01:52:30Z  in response to navtaj
    Compare the JARs in both projects' WEB-INF/lib folders.
    • navtaj
      navtaj
      78 Posts
      ACCEPTED ANSWER

      Re: Weird error on simple TabbedPanel

      ‏2011-02-15T02:39:07Z  in response to yurykats
      There is a build date version difference which i think is due to the latest updates i got from IBM.
      I over-wrote the jars from the working one to the project that was not working and the error seems to disappear.

      What does this mean ? Does it mean some kind of file corruption ?
  • SystemAdmin
    SystemAdmin
    6420 Posts
    ACCEPTED ANSWER

    Re: Weird error on simple TabbedPanel

    ‏2012-04-12T09:31:15Z  in response to navtaj
    Hi,

    I have the same error. Can I have a copy of your jar file? odc-jsf-portlet.jar.