ICEfaces
  1. ICEfaces
  2. ICE-10949

showcase-portlet - Tooltip Delegate NPE error

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.1
    • Fix Version/s: EE-4.1.0.GA, 4.2.BETA, 4.2
    • Component/s: ACE-Components, Sample Apps
    • Labels:
      None
    • Environment:
      ICEfaces4 trunk r. 47579 / Liferay-faces*-4.2.5.jar files
      Browsers: all
      Server: Liferay 6.2 w/ Tomcat 7.0.42
    • Assignee Priority:
      P2

      Description

      showcase-portlet:
      Tooltip > Delegate
      Mousing over the table triggers a NPE popup and the page becomes partially blurred.
      This error can be consistently reproduced on this demo.

      Server error:
      19:46:44,059 ERROR [ExceptionHandlerAjaxImpl:71] /resources/examples/ace/tooltip/delegateTooltip.xhtml @65,119 delegateD
      isplayListener="#{delegateTooltipBean.listener}": java.lang.NullPointerException
      Feb 09, 2016 7:46:44 PM com.sun.faces.context.AjaxExceptionHandlerImpl handlePartialResponseError
      SEVERE: java.lang.NullPointerException
              at org.icefaces.samples.showcase.example.ace.tooltip.DelegateTooltipBean.extractIndex(DelegateTooltipBean.java:9
      3)
              at org.icefaces.samples.showcase.example.ace.tooltip.DelegateTooltipBean.listener(DelegateTooltipBean.java:73)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.apache.el.parser.AstValue.invoke(AstValue.java:278)
              at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:274)
              at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
              at org.icefaces.ace.component.tooltip.Tooltip.broadcast(Tooltip.java:66)
              at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)
              at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)
              at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
              at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
              at com.liferay.faces.bridge.internal.BridgePhaseResourceImpl.execute(BridgePhaseResourceImpl.java:271)
              at com.liferay.faces.bridge.internal.BridgeImpl.doFacesRequest(BridgeImpl.java:157)
              at javax.portlet.faces.GenericFacesPortlet.serveResource(GenericFacesPortlet.java:178)
              at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:122)
              at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:82)
              at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:116)
              at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:71)
      ..............

        Activity

        Hide
        Carmen Cristurean added a comment -

        Still reproducible with ICEfaces4 trunk r48632.

        Show
        Carmen Cristurean added a comment - Still reproducible with ICEfaces4 trunk r48632.
        Hide
        Carmen Cristurean added a comment -

        On Tooltip Delegate demo, we extract the 'form:tooltip_activeComponent' request parameter, which has the client id of the component that triggered the tooltip.
        In showcase-portlet, the Request Parameter for "form:tooltip_activeComponent" can not be read, as it returns null, causing a NullPointerException.

        Show
        Carmen Cristurean added a comment - On Tooltip Delegate demo, we extract the 'form:tooltip_activeComponent' request parameter, which has the client id of the component that triggered the tooltip. In showcase-portlet, the Request Parameter for "form:tooltip_activeComponent" can not be read, as it returns null, causing a NullPointerException.
        Hide
        Arturo Zambrano added a comment -

        r48868: modified tooltip delegate demo to take into account portlet ID formats

        Show
        Arturo Zambrano added a comment - r48868: modified tooltip delegate demo to take into account portlet ID formats
        Hide
        Liana Munroe added a comment -

        Verified ICEfaces 4 trunk r48868. Liferay-portal-6.2-ce-ga5. IE edge, 11, 10 , 9, 8, FF 43, Chrome 50.

        Show
        Liana Munroe added a comment - Verified ICEfaces 4 trunk r48868. Liferay-portal-6.2-ce-ga5. IE edge, 11, 10 , 9, 8, FF 43, Chrome 50.

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Carmen Cristurean
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: