Uploaded image for project: 'Portlet Bridge'
  1. Portlet Bridge
  2. PBR-368

NPE in RichFaces Demo when clicking Tabs

    Details

    • Steps to Reproduce:
      Hide

      1. Deploy RichFaces Core Demo example
      2. Create a page with such portlet
      3. Click on the a4j:ajax example link
      4. Select the "Dynamic Selects" tab

      Show
      1. Deploy RichFaces Core Demo example 2. Create a page with such portlet 3. Click on the a4j:ajax example link 4. Select the "Dynamic Selects" tab
    • Affects:
      Interactive Demo/Tutorial

      Description

      When clicking on a tab element in the Richfaces demo (eg: clicking "Dynamic Selects" at a4j:ajax example) a NullPointerException is observed.

      Debugging shows that BridgeContext.getCurrentInstance() returns null in org.jboss.portletbridge.context.exception.PortletExceptionHandler.handle().

      Stacktrace:

      19:14:40,858 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/richfaces-core-demo-3.0.0.Final-SNAPSHOT].[Faces Servlet]] (http--127.0.0.1-8080-2) Servlet.service() for servlet Faces Servlet threw exception: java.lang.NullPointerException
      at org.jboss.portletbridge.context.exception.PortletExceptionHandler.handle(PortletExceptionHandler.java:64) [portletbridge-impl-3.0.0.Final-SNAPSHOT.jar:3.0.0.Final-SNAPSHOT]
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:119) [jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]
      at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116) [jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) [jboss-jsf-api_2.1_spec-2.0.0.Final.jar:2.0.0.Final]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.10.Final.jar:]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.10.Final.jar:]
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.10.Final.jar:]
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.10.Final.jar:]
      at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:154) [jboss-as-web-7.1.0.Final.jar:7.1.0.Final]
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.10.Final.jar:]
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.10.Final.jar:]
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.10.Final.jar:]
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.10.Final.jar:]
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.10.Final.jar:]
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.10.Final.jar:]
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.10.Final.jar:]
      at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_33]

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                kenfinni Ken Finnigan
                Reporter:
                alexandrem Alexandre Mendonça
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: