Uploaded image for project: 'MyFaces Tobago'
  1. MyFaces Tobago
  2. TOBAGO-1338

NPE in ClientPropertiesKey.calcHashCode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.6.0-beta-2
    • None
    • Core
    • None
    • Jetty 7

    Description

      The calcHashCode method should check for null values.

      com.sun.facelets.FaceletViewHandler handleRenderException
      Schwerwiegend: Error Rendering View[/jsp/market/marketOverview.xhtml]
      java.lang.NullPointerException
      at org.apache.myfaces.tobago.internal.context.ClientPropertiesKey.calcHashCode(ClientPropertiesKey.java:98)
      at org.apache.myfaces.tobago.internal.context.ClientPropertiesKey.<init>(ClientPropertiesKey.java:64)
      at org.apache.myfaces.tobago.internal.context.ClientPropertiesKey.get(ClientPropertiesKey.java:47)
      at org.apache.myfaces.tobago.internal.context.ResourceManagerImpl.getImage(ResourceManagerImpl.java:274)
      at org.apache.myfaces.tobago.internal.context.ResourceManagerImpl.getImage(ResourceManagerImpl.java:259)
      at org.apache.myfaces.tobago.context.ResourceManagerUtils.getImageWithPath(ResourceManagerUtils.java:53)
      at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.MenuCommandRenderer.encodeItem(MenuCommandRenderer.java:170)
      at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.MenuCommandRenderer.encodeBegin(MenuCommandRenderer.java:113)
      at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeBegin(AbstractRendererBaseWrapper.java:91)
      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:816)
      at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:98)
      at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:104)
      at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:104)
      at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:83)
      at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.PageRenderer.encodeBegin(PageRenderer.java:493)
      at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeBegin(AbstractRendererBaseWrapper.java:91)
      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:816)
      at org.apache.myfaces.tobago.internal.component.AbstractUIPage.encodeBegin(AbstractUIPage.java:86)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
      at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
      at org.apache.myfaces.tobago.internal.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:43)
      at org.apache.myfaces.tobago.internal.lifecycle.TobagoLifecycle.render(TobagoLifecycle.java:138)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
      at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1320)
      at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:233)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1291)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              deki Dennis Kieselhorst
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: