Topic
7 replies Latest Post - ‏2013-01-02T15:24:04Z by SystemAdmin
SystemAdmin
SystemAdmin
30895 Posts
ACCEPTED ANSWER

Pinned topic Portal 8 not reloading portlets after web modules update

‏2012-12-11T00:24:20Z |
When a portlet applocation is reloaded through the console the portal 8 server does not reflect the changes even though the portlet is shown as reloaded in the systemOut.log. This usually happens after a portlet unvailable occurs - it also sometimes happens after modifying the xhtml (no changes reflected). Has anyone else seen this type of activity? The only way to recover from this seems to be removing the app and reinstalling or restarting the portal server.

Also - it seems that any exception in portal 8 is a null pointer exception and triggers this exception: Is there a way to get better information as to what the root cause is? Portal 5,6,7 all had much more detailed exceptions which actually helped you get to the root cause - this seems to be a catch all with no details as to what is actually wrong.

com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0014E: Uncaught service() exception root cause MikeTestPortlet: javax.servlet.ServletException: javax.portlet.PortletException: java.lang.NullPointerException
...
...
...
...
...
Caused by: java.lang.NullPointerException
at java.util.Collections.list(Collections.java:2229)
at org.apache.myfaces.util.AbstractThreadSafeAttributeMap$AbstractAttributeIterator.<init>(AbstractThreadSafeAttributeMap.java:208)
at org.apache.myfaces.util.AbstractThreadSafeAttributeMap$AbstractAttributeIterator.<init>(AbstractThreadSafeAttributeMap.java:200)
at org.apache.myfaces.util.AbstractThreadSafeAttributeMap$KeyIterator.<init>(AbstractThreadSafeAttributeMap.java:233)
at org.apache.myfaces.util.AbstractThreadSafeAttributeMap$KeyIterator.<init>(AbstractThreadSafeAttributeMap.java:233)
at org.apache.myfaces.util.AbstractThreadSafeAttributeMap$KeySet.iterator(AbstractThreadSafeAttributeMap.java:183)
at org.apache.myfaces.shared_impl.context.flash.SubKeyMap$Entries.clear(SubKeyMap.java:182)

Thanks in advance!
Updated on 2013-01-02T15:24:04Z at 2013-01-02T15:24:04Z by SystemAdmin
  • Jasi
    Jasi
    241 Posts
    ACCEPTED ANSWER

    Re: Portal 8 not reloading portlets after web modules update

    ‏2012-12-11T04:17:09Z  in response to SystemAdmin
    This looks like JSF V2 Portlet. By default JSF 2 apps are in production stage.
    Enabling develpoment stage by putting the below into your web.xml should allow hot deployment as well more detailed error msgs.

    <context-param>
    <param-name>javax.faces.PROJECT_STAGE</param-name>
    <param-value>Development</param-value>
    </context-param>

    Let me know if this helpd.
    • SystemAdmin
      SystemAdmin
      30895 Posts
      ACCEPTED ANSWER

      Re: Portal 8 not reloading portlets after web modules update

      ‏2012-12-12T16:22:56Z  in response to Jasi
      I tried it and the same thing happens (the portlet will not reload until I restart portal after a portlet unavailable) - I tried adjusting the logging too and cannot seem to get anything more to log
      • Jasi
        Jasi
        241 Posts
        ACCEPTED ANSWER

        Re: Portal 8 not reloading portlets after web modules update

        ‏2012-12-13T05:04:21Z  in response to SystemAdmin
        Can you attach the entire log here? or atleaqst the relevant parts?
        • SystemAdmin
          SystemAdmin
          30895 Posts
          ACCEPTED ANSWER

          Re: Portal 8 not reloading portlets after web modules update

          ‏2012-12-18T21:01:07Z  in response to Jasi
          com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0014E: Uncaught service() exception root cause TestPortlet: javax.servlet.ServletException: javax.portlet.PortletException: java.lang.NullPointerException
          at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:369)
          at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:82)
          at com.ibm.isclite.container.collaborator.PortletServletCollaborator.doDispatch(PortletServletCollaborator.java:143)
          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.portletcontainer.invoker.impl.PortletServlet.service(PortletServlet.java:165)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
          at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1224)
          at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:774)
          at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:456)
          at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
          at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)
          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)
          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:79)
          at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:928)
          at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1025)
          at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1384)
          at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:548)
          at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:214)
          at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaborator(PortletInvokerCollaboratorChainImpl.java:78)
          at com.ibm.ws.portletcontainer.cache.PortletInvokerCacheCollaborator.doRender(PortletInvokerCacheCollaborator.java:58)
          at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaborator(PortletInvokerCollaboratorChainImpl.java:67)
          at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.invoke(PortletInvokerPerformanceCollaborator.java:313)
          at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.doInvoke(PortletInvokerPerformanceCollaborator.java:101)
          at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.invokePMI(PortletInvokerPerformanceCollaborator.java:163)
          at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.doInvoke(PortletInvokerPerformanceCollaborator.java:91)
          at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.doRender(PortletInvokerPerformanceCollaborator.java:74)
          at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaborator(PortletInvokerCollaboratorChainImpl.java:67)
          at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerImpl.render(PortletInvokerImpl.java:97)
          at com.ibm.ws.portletcontainer.PortletContainerImpl.doRender(PortletContainerImpl.java:121)
          at com.ibm.ws.portletcontainer.PortletContainerInvokerCollaboratorChainImpl.doCollaborator(PortletContainerInvokerCollaboratorChainImpl.java:80)
          at com.ibm.ws.portletcontainer.ext.ExtCollaborator.doRender(ExtCollaborator.java:76)
          at com.ibm.ws.portletcontainer.PortletContainerInvokerCollaboratorChainImpl.doCollaborator(PortletContainerInvokerCollaboratorChainImpl.java:67)
          at com.ibm.ws.portletcontainer.cache.CacheInvokerCollaborator.doRender(CacheInvokerCollaborator.java:66)
          at com.ibm.ws.portletcontainer.PortletContainerInvokerCollaboratorChainImpl.doCollaborator(PortletContainerInvokerCollaboratorChainImpl.java:67)
          at com.ibm.wps.resolver.iwidget.filter.IWidgetPCInvokerCollaborator.doRender(IWidgetPCInvokerCollaborator.java:200)
          at com.ibm.ws.portletcontainer.PortletContainerInvokerCollaboratorChainImpl.doCollaborator(PortletContainerInvokerCollaboratorChainImpl.java:67)
          at com.ibm.ws.portletcontainer.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:91)
          at com.ibm.ws.portletcontainer.pcinvoker.PortletInvokerImpl$2.run(PortletInvokerImpl.java:100)
          at java.security.AccessController.doPrivileged(AccessController.java:280)
          at com.ibm.ws.portletcontainer.pcinvoker.PortletInvokerImpl.invokeRender(PortletInvokerImpl.java:96)
          at com.ibm.wps.pe.pc.waspc.core.impl.PortletInvokerImpl$1.invoke(PortletInvokerImpl.java:98)
          at com.ibm.wps.pe.pc.waspc.core.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:182)
          at com.ibm.wps.pe.pc.waspc.core.impl.PortletInvokerImpl.invokeRender(PortletInvokerImpl.java:96)
          at com.ibm.wps.pe.pc.waspc.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:148)
          at com.ibm.wps.pe.pc.waspc.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:128)
          at com.ibm.wps.pe.pc.PortletContainerImpl.doRenderPortlet(PortletContainerImpl.java:602)
          at com.ibm.wps.pe.ext.render.AbstractRenderManager.performService(AbstractRenderManager.java:263)
          at com.ibm.wps.pe.pc.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:120)
          at com.ibm.wps.resolver.model.layout.LayoutControlDataSource.renderPortlet(LayoutControlDataSource.java:864)
          at com.ibm.wps.resolver.model.layout.LayoutControlDataSource.renderLayoutControl(LayoutControlDataSource.java:767)
          at com.ibm.wps.resolver.model.layout.LayoutControlDataSource.write(LayoutControlDataSource.java:1177)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
          at java.lang.reflect.Method.invoke(Method.java:611)
          at com.ibm.wps.util.ContextWrapper$Handler.invoke(ContextWrapper.java:127)
          at $Proxy221.write(Unknown Source)
          at com.ibm.wps.spa.renderer.skin.DynamicContentSkinContentHandler.endDynamicContentSpot(DynamicContentSkinContentHandler.java:251)
          at com.ibm.wps.spa.parser.skin.RecordingSkinContentHandler.parse(RecordingSkinContentHandler.java:116)
          at com.ibm.wps.spa.parser.skin.CachingSkinURIParserImpl.parse(CachingSkinURIParserImpl.java:178)
          at com.ibm.wps.spa.data.locale.LocalizedContextDataSourceParserImpl.parse(LocalizedContextDataSourceParserImpl.java:278)
          at com.ibm.wps.spa.data.locale.LocalizedContextDataSource.write(LocalizedContextDataSource.java:179)
          at com.ibm.wps.spa.data.skin.DynamicContentSkinDataSource.write(DynamicContentSkinDataSource.java:188)
          at com.ibm.wps.engine.templates.skins.SPASkinTemplate.render(SPASkinTemplate.java:264)
          at com.ibm.wps.engine.templates.SkinTemplate.render(SkinTemplate.java:68)
          at com.ibm.wps.model.layout.rendering.DefaultPortalLayoutNodeRenderFilter.layoutNodeRender(DefaultPortalLayoutNodeRenderFilter.java:285)
          at com.ibm.wps.model.layout.rendering.DefaultPortalLayoutNodeRenderFilter.controlRender(DefaultPortalLayoutNodeRenderFilter.java:312)
          at com.ibm.wps.model.layout.rendering.DefaultPortalLayoutNodeRenderFilter.componentRender(DefaultPortalLayoutNodeRenderFilter.java:245)
          at com.ibm.wps.model.layout.rendering.DefaultPortalLayoutNodeRenderFilter.doFilter(DefaultPortalLayoutNodeRenderFilter.java:135)
          at com.ibm.wps.model.layout.rendering.LayoutRenderFilterChain.doFilter(LayoutRenderFilterChain.java:84)
          at com.ibm.wps.model.layout.rendering.LayoutModelRenderServiceImpl.render(LayoutModelRenderServiceImpl.java:128)
          at com.ibm.wps.spa.renderer.DefaultPageRendererImpl.renderLayoutControlWithSkin(DefaultPageRendererImpl.java:1113)
          at com.ibm.wps.spa.renderer.DefaultPageRendererImpl.renderLayoutControl(DefaultPageRendererImpl.java:1061)
          at com.ibm.wps.spa.renderer.DefaultPageRendererImpl.renderLayoutContainer(DefaultPageRendererImpl.java:960)
          at com.ibm.wps.spa.renderer.StaticPageRendererImpl.startPortletContainer(StaticPageRendererImpl.java:966)
          at com.ibm.wps.spa.parser.cache.CacheValueImpl$PlaybackHandler.playStartPortletContainer(CacheValueImpl.java:581)
          at com.ibm.wps.spa.parser.cache.CacheValueImpl$PlaybackHandler.parse(CacheValueImpl.java:389)
          at com.ibm.wps.spa.parser.cache.CacheValueImpl$PlaybackHandler.parse(CacheValueImpl.java:364)
          at com.ibm.wps.spa.parser.cache.CacheValueImpl.parse(CacheValueImpl.java:1148)
          at com.ibm.wps.spa.parser.cache.CachingParser.parse(CachingParser.java:550)
          at com.ibm.wps.spa.parser.StaticPageURIParserImpl.parse(StaticPageURIParserImpl.java:137)
          at com.ibm.wps.spa.parser.StaticPageURIParserImpl.parse(StaticPageURIParserImpl.java:171)
          at com.ibm.wps.spa.renderer.PortalStaticPageRendererImpl.render(PortalStaticPageRendererImpl.java:262)
          at com.ibm.wps.spa.renderer.PortalStaticPageRendererImpl.render(PortalStaticPageRendererImpl.java:200)
          at com.ibm.wps.engine.templates.screens.SPAScreenTemplate.render(SPAScreenTemplate.java:152)
          at com.ibm.wps.engine.templates.screens.SPAScreenTemplate.render(SPAScreenTemplate.java:119)
          at com.ibm.wps.engine.templates.screens.SPAScreenTemplate.render(SPAScreenTemplate.java:170)
          at com.ibm.wps.engine.templates.ScreenTemplate.render(ScreenTemplate.java:59)
          at com.ibm.wps.resolver.model.layout.LayoutTemplateDataSource.write(LayoutTemplateDataSource.java:294)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
          at java.lang.reflect.Method.invoke(Method.java:611)
          at com.ibm.wps.util.ContextWrapper$Handler.invoke(ContextWrapper.java:127)
          at $Proxy215.write(Unknown Source)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
          at java.lang.reflect.Method.invoke(Method.java:611)
          at com.ibm.wps.util.ContextWrapper$Handler.invoke(ContextWrapper.java:127)
          at $Proxy216.write(Unknown Source)
          at com.ibm.wps.spa.renderer.theme.DynamicContentThemeContentHandler.endDynamicContentSpot(DynamicContentThemeContentHandler.java:251)
          at com.ibm.wps.spa.parser.theme.RecordingThemeContentHandler.parse(RecordingThemeContentHandler.java:109)
          at com.ibm.wps.spa.parser.theme.CachingThemeURIParserImpl.parse(CachingThemeURIParserImpl.java:178)
          at com.ibm.wps.spa.data.locale.LocalizedContextDataSourceParserImpl.parse(LocalizedContextDataSourceParserImpl.java:278)
          at com.ibm.wps.spa.data.locale.LocalizedContextDataSource.write(LocalizedContextDataSource.java:179)
          at com.ibm.wps.spa.data.theme.DynamicContentThemeDataSource.write(DynamicContentThemeDataSource.java:186)
          at com.ibm.wps.resolver.tags.DataSourceTag.doEndTag(DataSourceTag.java:252)
          at com.ibm._jsp._Default._jspService(_Default.java:494)
          at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
          at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1224)
          at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:774)
          at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:456)
          at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
          at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)
          at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:205)
          at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1032)
          at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1384)
          at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:548)
          at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:93)
          at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:53)
          at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:50)
          at com.ibm.wps.engine.templates.themes.Default.doDispatch(Default.java:294)
          at com.ibm.wps.engine.templates.themes.Default.render(Default.java:247)
          at com.ibm.wps.engine.templates.ThemeTemplate.render(ThemeTemplate.java:80)
          at com.ibm.wps.engine.phases.WPRenderPhase.processRendering(WPRenderPhase.java:520)
          at com.ibm.wps.engine.phases.WPBaseRenderPhase.execute(WPBaseRenderPhase.java:238)
          at com.ibm.wps.state.phases.AbstractRenderPhase.next(AbstractRenderPhase.java:106)
          at com.ibm.wps.engine.phases.WPAbstractRenderPhase.next(WPAbstractRenderPhase.java:100)
          at com.ibm.wps.engine.Servlet.callPortal(Servlet.java:315)
          at com.ibm.wps.engine.Servlet.doGet(Servlet.java:686)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
          at com.ibm.wps.engine.Servlet.doFilter(Servlet.java:411)
          at com.ibm.wps.resolver.servlet.ContentHandlerCleanup.doFilter(ContentHandlerCleanup.java:767)
          at com.ibm.wps.resolver.servlet.AbstractFilter.doFilter(AbstractFilter.java:96)
          at com.ibm.wps.engine.Servlet.service(Servlet.java:1372)
          at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1224)
          at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:774)
          at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:456)
          at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)
          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:97)
          at com.ibm.wps.engine.ExtensionFilter$ExtendedFilterChain.doFilter(ExtensionFilter.java:110)
          at com.ibm.wps.engine.ExtensionFilter.doFilter(ExtensionFilter.java:197)
          at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
          at com.ibm.wps.engine.SupportedLocalesFilter.doFilter(SupportedLocalesFilter.java:113)
          at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
          at com.ibm.wps.engine.ExtendedLocaleFilter.doFilter(ExtendedLocaleFilter.java:113)
          at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
          at com.ibm.wps.resolver.friendly.servlet.FriendlySelectionFilter.doFilter(FriendlySelectionFilter.java:191)
          at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
          at com.ibm.wps.project.filter.ProjectIdFilter.doFilterWithoutProjectID(ProjectIdFilter.java:331)
          at com.ibm.wps.project.filter.ProjectIdFilter.doFilter(ProjectIdFilter.java:243)
          at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
          at com.ibm.wps.mappingurl.impl.URLAnalyzer.doFilter(URLAnalyzer.java:418)
          at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
          at com.ibm.wps.engine.VirtualPortalFilter.doFilter(VirtualPortalFilter.java:88)
          at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
          at com.ibm.wps.resolver.servlet.ContentHandlerGzip.internalDoFilter(ContentHandlerGzip.java:704)
          at com.ibm.wps.resolver.servlet.ContentHandlerGzip.doFilter(ContentHandlerGzip.java:451)
          at com.ibm.wps.resolver.servlet.AbstractFilter.doFilter(AbstractFilter.java:96)
          at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
          at com.ibm.wps.state.filter.StateCleanup.doFilter(StateCleanup.java:103)
          at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
          at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:928)
          at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1025)
          at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3704)
          at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
          at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:962)
          at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
          at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195)
          at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
          at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
          at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
          at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
          at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
          at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
          at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
          at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
          at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
          at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
          at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
          at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1659)
          Caused by: javax.portlet.PortletException: java.lang.NullPointerException
          ... 200 more
          Caused by: java.lang.NullPointerException
          at java.util.Collections.list(Collections.java:2229)
          at org.apache.myfaces.util.AbstractThreadSafeAttributeMap$AbstractAttributeIterator.<init>(AbstractThreadSafeAttributeMap.java:208)
          at org.apache.myfaces.util.AbstractThreadSafeAttributeMap$AbstractAttributeIterator.<init>(AbstractThreadSafeAttributeMap.java:200)
          at org.apache.myfaces.util.AbstractThreadSafeAttributeMap$KeyIterator.<init>(AbstractThreadSafeAttributeMap.java:233)
          at org.apache.myfaces.util.AbstractThreadSafeAttributeMap$KeyIterator.<init>(AbstractThreadSafeAttributeMap.java:233)
          at org.apache.myfaces.util.AbstractThreadSafeAttributeMap$KeySet.iterator(AbstractThreadSafeAttributeMap.java:183)
          at org.apache.myfaces.shared_impl.context.flash.SubKeyMap$Entries.clear(SubKeyMap.java:182)
          at java.util.AbstractMap.clear(AbstractMap.java:288)
          at org.apache.myfaces.shared_impl.context.flash.FlashImpl._clearExecuteFlashMap(FlashImpl.java:971)
          at org.apache.myfaces.shared_impl.context.flash.FlashImpl.doPostPhaseActions(FlashImpl.java:245)
          at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:251)
          at com.ibm.faces20.portlet.FacesPortlet.doRender(FacesPortlet.java:499)
          at com.ibm.faces20.portlet.FacesPortlet.doView(FacesPortlet.java:552)
          at com.ibm.faces20.portlet.FacesPortlet.doDispatch(FacesPortlet.java:424)
          at javax.portlet.GenericPortlet.render(GenericPortlet.java:222)
          at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:128)
          at com.ibm.wps.engine.el.init.AttributeCopyFilter.doFilter(AttributeCopyFilter.java:165)
          at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:120)
          at com.ibm.wps.resourceaggregator.capabilities.filter.PortletCapabilityDependencyFilter.doFilter(PortletCapabilityDependencyFilter.java:272)
          at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:120)
          at com.ibm.wps.resolver.iwidget.filter.IWidgetPortletFilter.doFilter(IWidgetPortletFilter.java:60)
          at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:120)
          at com.ibm.wps.propertybroker.standard.filter.C2APortletFilter.doFilter(C2APortletFilter.java:193)
          at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:120)
          at com.ibm.wps.pe.pc.waspc.plm.GlobalPortletLoadMonitoringFilter.doFilter(GlobalPortletLoadMonitoringFilter.java:146)
          at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:120)
          at com.ibm.wps.pe.pc.waspc.filter.impl.GlobalPortletFilter.doFilter(GlobalPortletFilter.java:154)
          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:71)
          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:168)
          at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:105)
          at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:273)
          ... 199 more
          • Mark_Winton
            Mark_Winton
            110 Posts
            ACCEPTED ANSWER

            Re: Portal 8 not reloading portlets after web modules update

            ‏2012-12-18T23:07:01Z  in response to SystemAdmin
            I'd still say that's likely to be due to an invalid xhtml file; can you try the alteration to web.xml I suggested previously and post the new stack trace - attaching the xhtml file may also help.
            • SystemAdmin
              SystemAdmin
              30895 Posts
              ACCEPTED ANSWER

              Re: Portal 8 not reloading portlets after web modules update

              ‏2013-01-02T15:24:04Z  in response to Mark_Winton
              It was an invalid xhtml file - There is just nothing in the exception to point to that. I'm frustrated with how the new spec generalizes every exception so you cannot determine root cause. I tried to extending the portlet class and catch the exception in the doRender but I cannot catch a more granular exception
  • Mark_Winton
    Mark_Winton
    110 Posts
    ACCEPTED ANSWER

    Re: Portal 8 not reloading portlets after web modules update

    ‏2012-12-13T13:40:39Z  in response to SystemAdmin
    Regarding the null pointer exception always being the cause for errors, can you try adding this to your web.xml file to disable MyFaces handling of exceptions - see http://stackoverflow.com/questions/10982990/nullpointerexception-during-jsf-navigation-myfaces#answer-11176202:

    <context-param>
    <param-name>org.apache.myfaces.ERROR_HANDLING</param-name>
    <param-value>false</param-value>
    </context-param>

    If the stack trace is saying "Caused by: java.lang.NullPointerException at java.util.Collections.list(Collections.java:2229)", then I'd check to make sure your facelets are valid XML - in particular any embedded javascript code needs to be escaped, and the use of <portlet:namespace /> in an id attribute also isn't valid.