Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-517

NPE in netui:select tag as repeater without an identifying stage for selectOption

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • V1Beta
    • v1m1
    • NetUI
    • None

    Description

      When creating a <netui:select> tag with repeater=true and the selectOption value as container.item.value, an NPE is returned when the page is invoked.

      See attached repro case.

      Code snippet:
      <netui:select dataSource="pageFlow.resultsOne" optionsDataSource="${pageFlow.opts}" repeater="true">
      <tr align="center"><td align="right" width="25%">
      <td align="left"><netui:selectOption value="${container.item.value}" />
      </td></tr>
      </netui:select>

      Where opts is of type HashMap:
      private HashMap opts;
      private String[] resultsOne;

      NPE Exception Recieved:
      java.lang.NullPointerException
      at org.apache.beehive.netui.tags.html.Select.doRepeaterAfterBody(Select.java:964)
      at org.apache.beehive.netui.tags.html.Select.doRepeaterAfterBody(Select.java:961)
      at org.apache.beehive.netui.tags.html.Select.doStartTag(Select.java:729)
      at jsp_servlet.bugs._j256.index._jspService(_index.java:165)
      at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:184)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:118)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:255)
      at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:366)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:281)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
      at org.apache.beehive.netui.pageflow.PageFlowPageFilter.runPage(PageFlowPageFilter.java:279)
      at org.apache.beehive.netui.pageflow.PageFlowPageFilter.doFilter(PageFlowPageFilter.java:204)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
      at org.apache.beehive.netui.tools.testrecorder.server.TestRecorderFilter.doFilter(TestRecorderFilter.java:144)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:2990)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1898)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1821)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1293)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:167)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:139)

      Attachments

        1. Results.jsp
          1.0 kB
          Krista Baker
        2. index.jsp
          1 kB
          Krista Baker
        3. Controller.jpf
          2 kB
          Krista Baker

        Activity

          People

            kbaker Krista Baker
            kbaker Krista Baker
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: