You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Krista Baker (JIRA)" <be...@incubator.apache.org> on 2005/04/19 18:39:23 UTC

[jira] Closed: (BEEHIVE-517) NPE in netui:select tag as repeater without an identifying stage for selectOption

     [ http://issues.apache.org/jira/browse/BEEHIVE-517?page=all ]
     
Krista Baker closed BEEHIVE-517:
--------------------------------


Verified that the NPE no longer occurs and the following tag error message now appears:  Unable to create an Iterator on the optionsDataSource.  This tag error occurs when the select tag with repeater is used on a hashMap object which is not supported.

> NPE in netui:select tag as repeater without an identifying stage for selectOption
> ---------------------------------------------------------------------------------
>
>          Key: BEEHIVE-517
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-517
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Krista Baker
>     Assignee: Krista Baker
>      Fix For: V1
>  Attachments: Controller.jpf, Results.jsp, index.jsp
>
> 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)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira