You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Daryl Olander (JIRA)" <be...@incubator.apache.org> on 2005/04/12 21:03:16 UTC

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

     [ http://issues.apache.org/jira/browse/BEEHIVE-517?page=history ]
     
Daryl Olander resolved BEEHIVE-517:
-----------------------------------

    Resolution: Fixed

The problem here was that we don't allow creating an iterator over a HashMap.  This was failing (and actually reporting an error).  The problem was that we then proceeded to move forward and ended up with an NPE (actually there was an assert in the dev builds).

I fixed this and added the BVT coreweb/bugs/j517.

> 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: Daryl Olander
>      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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira