myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Kieselhorst (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Comment Edited] (TOBAGO-1359) NPE when rendering sheet
Date Mon, 03 Feb 2014 10:06:09 GMT

    [ https://issues.apache.org/jira/browse/TOBAGO-1359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13889358#comment-13889358
] 

Dennis Kieselhorst edited comment on TOBAGO-1359 at 2/3/14 10:05 AM:
---------------------------------------------------------------------

Another NPE is thrown when rendering a nested sheet:

Caused by: java.lang.NullPointerException
	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.SheetRenderer.renderColumnHeaders(SheetRenderer.java:769)
	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.SheetRenderer.renderSheet(SheetRenderer.java:253)
	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.SheetRenderer.encodeEnd(SheetRenderer.java:171)
	at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeEnd(AbstractRendererBaseWrapper.java:105)
	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:674)
	at javax.faces.component.UIData.encodeEnd(UIData.java:1721)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:121)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:97)
	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.SheetRenderer.renderSheet(SheetRenderer.java:411)
	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.SheetRenderer.encodeEnd(SheetRenderer.java:171)
	at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeEnd(AbstractRendererBaseWrapper.java:105)
	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:674)
	at javax.faces.component.UIData.encodeEnd(UIData.java:1721)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:121)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:97)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encodeChildren(RenderUtils.java:92)
	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildren(GridLayoutRenderer.java:55)
	at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeChildren(AbstractRendererBaseWrapper.java:100)
	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:643)
	at org.apache.myfaces.tobago.internal.component.AbstractUIPanel.encodeChildren(AbstractUIPanel.java:50)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:115)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:97)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encodeChildren(RenderUtils.java:92)
	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildren(GridLayoutRenderer.java:55)
	at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeChildren(AbstractRendererBaseWrapper.java:100)
	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:643)
	at org.apache.myfaces.tobago.internal.component.AbstractUIPanel.encodeChildren(AbstractUIPanel.java:50)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:115)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:97)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encodeChildren(RenderUtils.java:92)
	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.TabGroupRenderer.encodeContent(TabGroupRenderer.java:340)
	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.TabGroupRenderer.encodeEnd(TabGroupRenderer.java:123)
	at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeEnd(AbstractRendererBaseWrapper.java:105)
	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:674)
	at org.apache.myfaces.tobago.internal.component.AbstractUITabGroup.encodeEnd(AbstractUITabGroup.java:83)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:121)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:97)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encodeChildren(RenderUtils.java:92)
	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildren(GridLayoutRenderer.java:55)
	at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeChildren(AbstractRendererBaseWrapper.java:100)
	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:643)
	at org.apache.myfaces.tobago.internal.component.AbstractUIPanel.encodeChildren(AbstractUIPanel.java:50)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:115)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:97)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encodeChildren(RenderUtils.java:92)
	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildren(GridLayoutRenderer.java:55)
	at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeChildren(AbstractRendererBaseWrapper.java:100)
	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:643)
	at org.apache.myfaces.tobago.internal.component.AbstractUIPage.encodeChildren(AbstractUIPage.java:111)
	at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:541)
	at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:550)
	at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1891)
	at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:313)
	at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116)
	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:267)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
	... 60 more



was (Author: deki):
Another NPE is thrown when rendering a sheet without rows parameter:

Caused by: java.lang.NullPointerException
	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.SheetRenderer.renderColumnHeaders(SheetRenderer.java:769)
	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.SheetRenderer.renderSheet(SheetRenderer.java:253)
	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.SheetRenderer.encodeEnd(SheetRenderer.java:171)
	at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeEnd(AbstractRendererBaseWrapper.java:105)
	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:674)
	at javax.faces.component.UIData.encodeEnd(UIData.java:1721)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:121)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:97)
	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.SheetRenderer.renderSheet(SheetRenderer.java:411)
	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.SheetRenderer.encodeEnd(SheetRenderer.java:171)
	at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeEnd(AbstractRendererBaseWrapper.java:105)
	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:674)
	at javax.faces.component.UIData.encodeEnd(UIData.java:1721)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:121)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:97)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encodeChildren(RenderUtils.java:92)
	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildren(GridLayoutRenderer.java:55)
	at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeChildren(AbstractRendererBaseWrapper.java:100)
	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:643)
	at org.apache.myfaces.tobago.internal.component.AbstractUIPanel.encodeChildren(AbstractUIPanel.java:50)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:115)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:97)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encodeChildren(RenderUtils.java:92)
	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildren(GridLayoutRenderer.java:55)
	at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeChildren(AbstractRendererBaseWrapper.java:100)
	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:643)
	at org.apache.myfaces.tobago.internal.component.AbstractUIPanel.encodeChildren(AbstractUIPanel.java:50)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:115)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:97)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encodeChildren(RenderUtils.java:92)
	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.TabGroupRenderer.encodeContent(TabGroupRenderer.java:340)
	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.TabGroupRenderer.encodeEnd(TabGroupRenderer.java:123)
	at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeEnd(AbstractRendererBaseWrapper.java:105)
	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:674)
	at org.apache.myfaces.tobago.internal.component.AbstractUITabGroup.encodeEnd(AbstractUITabGroup.java:83)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:121)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:97)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encodeChildren(RenderUtils.java:92)
	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildren(GridLayoutRenderer.java:55)
	at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeChildren(AbstractRendererBaseWrapper.java:100)
	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:643)
	at org.apache.myfaces.tobago.internal.component.AbstractUIPanel.encodeChildren(AbstractUIPanel.java:50)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:115)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:97)
	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encodeChildren(RenderUtils.java:92)
	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildren(GridLayoutRenderer.java:55)
	at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeChildren(AbstractRendererBaseWrapper.java:100)
	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:643)
	at org.apache.myfaces.tobago.internal.component.AbstractUIPage.encodeChildren(AbstractUIPage.java:111)
	at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:541)
	at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:550)
	at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1891)
	at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:313)
	at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116)
	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:267)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
	... 60 more


> NPE when rendering sheet
> ------------------------
>
>                 Key: TOBAGO-1359
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-1359
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Themes
>    Affects Versions: 2.0.0-alpha-3
>            Reporter: Dennis Kieselhorst
>
> A NPE is thrown when rendering a simple empty sheet:
> <tc:sheet value="#{controller.testItems}" var="test">
>     <tc:column label="#{label.test}">
>         <tx:selectBooleanCheckbox label="${test.name}" value="#{test.selected}"/>
>     </tc:column>
> </tc:sheet>
> java.lang.NullPointerException
> 	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.SheetRenderer.renderSheet(SheetRenderer.java:437)
> 	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.SheetRenderer.encodeEnd(SheetRenderer.java:171)
> 	at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeEnd(AbstractRendererBaseWrapper.java:105)
> 	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:665)
> 	at javax.faces.component.UIData.encodeEnd(UIData.java:1704)
> 	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:121)
> 	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:97)
> 	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encodeChildren(RenderUtils.java:92)
> 	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildren(GridLayoutRenderer.java:55)
> 	at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeChildren(AbstractRendererBaseWrapper.java:100)
> 	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:634)
> 	at org.apache.myfaces.tobago.internal.component.AbstractUIPanel.encodeChildren(AbstractUIPanel.java:50)
> 	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:115)
> 	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:97)
> 	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encodeChildren(RenderUtils.java:92)
> 	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildren(GridLayoutRenderer.java:55)
> 	at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeChildren(AbstractRendererBaseWrapper.java:100)
> 	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:634)
> 	at org.apache.myfaces.tobago.internal.component.AbstractUIPanel.encodeChildren(AbstractUIPanel.java:50)
> 	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:115)
> 	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:97)
> 	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encodeChildren(RenderUtils.java:92)
> 	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildren(GridLayoutRenderer.java:55)
> 	at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeChildren(AbstractRendererBaseWrapper.java:100)
> 	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:634)
> 	at org.apache.myfaces.tobago.internal.component.AbstractUIPanel.encodeChildren(AbstractUIPanel.java:50)
> 	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:115)
> 	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:97)
> 	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encodeChildren(RenderUtils.java:92)
> 	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildren(GridLayoutRenderer.java:55)
> 	at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeChildren(AbstractRendererBaseWrapper.java:100)
> 	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:634)
> 	at org.apache.myfaces.tobago.internal.component.AbstractUIPanel.encodeChildren(AbstractUIPanel.java:50)
> 	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:115)
> 	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encode(RenderUtils.java:97)
> 	at org.apache.myfaces.tobago.renderkit.util.RenderUtils.encodeChildren(RenderUtils.java:92)
> 	at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildren(GridLayoutRenderer.java:55)
> 	at org.apache.myfaces.tobago.renderkit.AbstractRendererBaseWrapper.encodeChildren(AbstractRendererBaseWrapper.java:100)
> 	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:634)
> 	at org.apache.myfaces.tobago.internal.component.AbstractUIPage.encodeChildren(AbstractUIPage.java:111)
> 	at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:532)
> 	at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:541)
> 	at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1981)
> 	at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:305)
> 	at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116)
> 	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:241)
> 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:199)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message