You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Nathan Jantz (JIRA)" <be...@incubator.apache.org> on 2005/05/11 01:11:06 UTC

[jira] Created: (BEEHIVE-695) NPE when using datagrid netui-data:pad tag inside a repetaer tag

NPE when using datagrid netui-data:pad tag inside a repetaer tag
----------------------------------------------------------------

         Key: BEEHIVE-695
         URL: http://issues.apache.org/jira/browse/BEEHIVE-695
     Project: Beehive
        Type: Bug
  Components: NetUI  
    Versions: V1    
 Environment: Windows XP, JDK 1.5.x, Tomcat 5.0.25
    Reporter: Nathan Jantz
 Assigned to: Eddie O'Neil 
     Fix For: V1
 Attachments: index2.jsp

bash05102005

I'm getting an NPE when using <netui-data:pad> tag inside a repeater tag. 
Here is a repro:

<% pageContext.setAttribute("itemArray", new String[] {"zero", "one", "two", "three", "four"}); %>
<netui-data:repeater dataSource="pageScope.itemArray">
    <netui-data:pad maxRepeat="2"/>
    <netui-data:repeaterItem>
        <netui:label value="${container.item}" />    
    </netui-data:repeaterItem>
</netui-data:repeater>

Expected Result:
zero  one

Actual Error output:
 zero  one  two  three  four
Page Errors
Error Number	Tag Type	Error
1	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
2	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
3	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
4	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
5	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
6	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
7	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
8	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException

I'm not seeing any stack traces printed to the Tomcat console.  I get a similar result when trying to use the 'minRepeat' attribute as well.

I will attach the actual JSP here shortly.

-- 
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


[jira] Resolved: (BEEHIVE-695) NPE when using datagrid netui-data:pad tag inside a repetaer tag

Posted by "Eddie O'Neil (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-695?page=all ]
     
Eddie O'Neil resolved BEEHIVE-695:
----------------------------------

     Assign To: Nathan Jantz  (was: Eddie O'Neil)
    Resolution: Fixed

Fixed in SVN 169547.

> NPE when using datagrid netui-data:pad tag inside a repetaer tag
> ----------------------------------------------------------------
>
>          Key: BEEHIVE-695
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-695
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>  Environment: Windows XP, JDK 1.5.x, Tomcat 5.0.25
>     Reporter: Nathan Jantz
>     Assignee: Nathan Jantz
>      Fix For: V1
>  Attachments: index2.jsp
>
> bash05102005
> I'm getting an NPE when using <netui-data:pad> tag inside a repeater tag. 
> Here is a repro:
> <% pageContext.setAttribute("itemArray", new String[] {"zero", "one", "two", "three", "four"}); %>
> <netui-data:repeater dataSource="pageScope.itemArray">
>     <netui-data:pad maxRepeat="2"/>
>     <netui-data:repeaterItem>
>         <netui:label value="${container.item}" />    
>     </netui-data:repeaterItem>
> </netui-data:repeater>
> Expected Result:
> zero  one
> Actual Error output:
>  zero  one  two  three  four
> Page Errors
> Error Number	Tag Type	Error
> 1	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> 2	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> 3	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> 4	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> 5	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> 6	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> 7	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> 8	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> I'm not seeing any stack traces printed to the Tomcat console.  I get a similar result when trying to use the 'minRepeat' attribute as well.
> I will attach the actual JSP here shortly.

-- 
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


[jira] Updated: (BEEHIVE-695) NPE when using datagrid netui-data:pad tag inside a repetaer tag

Posted by "Nathan Jantz (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-695?page=all ]

Nathan Jantz updated BEEHIVE-695:
---------------------------------

    Attachment: index2.jsp

Attaching repro.

> NPE when using datagrid netui-data:pad tag inside a repetaer tag
> ----------------------------------------------------------------
>
>          Key: BEEHIVE-695
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-695
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>  Environment: Windows XP, JDK 1.5.x, Tomcat 5.0.25
>     Reporter: Nathan Jantz
>     Assignee: Eddie O'Neil
>      Fix For: V1
>  Attachments: index2.jsp
>
> bash05102005
> I'm getting an NPE when using <netui-data:pad> tag inside a repeater tag. 
> Here is a repro:
> <% pageContext.setAttribute("itemArray", new String[] {"zero", "one", "two", "three", "four"}); %>
> <netui-data:repeater dataSource="pageScope.itemArray">
>     <netui-data:pad maxRepeat="2"/>
>     <netui-data:repeaterItem>
>         <netui:label value="${container.item}" />    
>     </netui-data:repeaterItem>
> </netui-data:repeater>
> Expected Result:
> zero  one
> Actual Error output:
>  zero  one  two  three  four
> Page Errors
> Error Number	Tag Type	Error
> 1	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> 2	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> 3	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> 4	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> 5	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> 6	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> 7	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> 8	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> I'm not seeing any stack traces printed to the Tomcat console.  I get a similar result when trying to use the 'minRepeat' attribute as well.
> I will attach the actual JSP here shortly.

-- 
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


[jira] Closed: (BEEHIVE-695) NPE when using datagrid netui-data:pad tag inside a repetaer tag

Posted by "Nathan Jantz (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-695?page=all ]
     
Nathan Jantz closed BEEHIVE-695:
--------------------------------


Verified and closing issue.

> NPE when using datagrid netui-data:pad tag inside a repetaer tag
> ----------------------------------------------------------------
>
>          Key: BEEHIVE-695
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-695
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>  Environment: Windows XP, JDK 1.5.x, Tomcat 5.0.25
>     Reporter: Nathan Jantz
>     Assignee: Nathan Jantz
>      Fix For: V1
>  Attachments: index2.jsp
>
> bash05102005
> I'm getting an NPE when using <netui-data:pad> tag inside a repeater tag. 
> Here is a repro:
> <% pageContext.setAttribute("itemArray", new String[] {"zero", "one", "two", "three", "four"}); %>
> <netui-data:repeater dataSource="pageScope.itemArray">
>     <netui-data:pad maxRepeat="2"/>
>     <netui-data:repeaterItem>
>         <netui:label value="${container.item}" />    
>     </netui-data:repeaterItem>
> </netui-data:repeater>
> Expected Result:
> zero  one
> Actual Error output:
>  zero  one  two  three  four
> Page Errors
> Error Number	Tag Type	Error
> 1	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> 2	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> 3	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> 4	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> 5	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> 6	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> 7	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> 8	Pad	Message	An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
> I'm not seeing any stack traces printed to the Tomcat console.  I get a similar result when trying to use the 'minRepeat' attribute as well.
> I will attach the actual JSP here shortly.

-- 
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