ICEfaces
  1. ICEfaces
  2. ICE-2976

Interacting with Selection portlet can cause NullPointerException.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7RC1
    • Fix Version/s: 1.7
    • Labels:
      None
    • Environment:
      liferay portal portlet

      Description

      Interacting with the Selection portlet in Liferay can sometimes cause a NullPointerException to be thrown. Simply clicking around on the various components triggers it.

      WARNING: executePhase(PROCESS_VALIDATIONS 3,com.icesoft.faces.context.BridgeFacesContext@cb431) threw exception
      javax.faces.FacesException: java.lang.NullPointerException
       at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:108)
       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
       at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
       at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCyclePartial(ReceiveSendUpdates.java:64)
       at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:40)
       at com.icesoft.faces.webapp.http.core.ViewBoundServer.service(ViewBoundServer.java:65)
       at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:44)
       at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
       at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
       at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
       at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29)
       at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:139)
       at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)
       at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
       at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
       at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:79)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:342)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
       at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:54)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Thread.java:613)
      Caused by: java.lang.IllegalStateException: java.lang.NullPointerException
       at javax.faces.component.MethodBindingValueChangeListener.processValueChange(MethodBindingValueChangeListener.java:96)
       at javax.faces.event.ValueChangeEvent.processListener(ValueChangeEvent.java:123)
       at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:743)
       at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:416)
       at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:663)
       at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
       ... 36 more

        Activity

        Hide
        Deryk Sinotte added a comment -

        One thing I have noticed is that the problem is a bit intermittent. I was watching the Safari Debug Error Console and when the portlet loads, if there are any errors, then the problem occurs. If the page loads without errors, it seems to work fine.

        Show
        Deryk Sinotte added a comment - One thing I have noticed is that the problem is a bit intermittent. I was watching the Safari Debug Error Console and when the portlet loads, if there are any errors, then the problem occurs. If the page loads without errors, it seems to work fine.
        Hide
        Mircea Toma added a comment -

        Patrick, please associate the commit for SelectionTagsBean with this issue.

        Show
        Mircea Toma added a comment - Patrick, please associate the commit for SelectionTagsBean with this issue.
        Hide
        Patrick Corless added a comment -

        Closing issue. Updated backing bean logic in r16391. The changes should fix any chance of a null pointer error coming out of the countryChanged(ValueChangeEvent event) method.

        Show
        Patrick Corless added a comment - Closing issue. Updated backing bean logic in r16391. The changes should fix any chance of a null pointer error coming out of the countryChanged(ValueChangeEvent event) method.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Deryk Sinotte
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: