1 Reply Latest reply on Sep 15, 2008 12:35 PM by claprun

    WSRP admin UI: Null pointer exception

    vrockai

      version: JBoss Portal 2.6.6 GA

      steps:
      0. run JBoss on localhost (http://localhost:8080/portal/)
      1. login as admin
      2. click admin
      3. click WSRP tab
      4. manualy type this adrees into the adress bar
      http://localhost:8080/portal/auth/portal/admin/WSRP/WSRPConfigurationPortletWindow?action=e&windowstate=normal&mode=view&org.apache.myfaces.portlet.MyFacesGenericPortlet.VIEW_ID=%2FWEB-INF%2Fjsf%2Fproducer%2Fproducer.xhtml

      then the exception will raise:

      ERROR
      Cause: javax.portlet.PortletException: java.lang.NullPointerException
      Message: java.lang.NullPointerException
      StackTrace:
      
      javax.portlet.PortletException: java.lang.NullPointerException
       at org.apache.myfaces.portlet.MyFacesGenericPortlet.handleExceptionFromLifecycle(MyFacesGenericPortlet.java:313)
       at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:502)
       at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:323)
       at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:133)
       at javax.portlet.GenericPortlet.render(GenericPortlet.java:306)
       at org.jboss.portal.faces.loader.FacesPortlet.render(FacesPortlet.java:100)
       at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.invokeRender(PortletContainerImpl.java:483)
      ...
      


      i know that this is not an ussual usage of portal, but i guess nullpointers are bad in every case :) i got into this when trying to write an selenium test for WSRP producer configuration according to https://jira.jboss.org/jira/browse/JBPORTAL-2103, because of the same ID of consumer and producer link...