You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-issues@incubator.apache.org by "Florian Bartels (JIRA)" <ad...@incubator.apache.org> on 2007/01/09 19:46:27 UTC

[jira] Created: (ADFFACES-350) NullPointerException if tr:table tag containins a comment

NullPointerException if tr:table tag containins a comment
---------------------------------------------------------

                 Key: ADFFACES-350
                 URL: https://issues.apache.org/jira/browse/ADFFACES-350
             Project: MyFaces ADF-Faces
          Issue Type: Bug
         Environment: Windows XP, MyFaces, Facelets
            Reporter: Florian Bartels


The  following NPE occurs iff the table tag contains a comment: 

java.lang.NullPointerException
	at org.apache.myfaces.trinidad.component.UIXCollection.restoreStampState(UIXCollection.java:803)
	at org.apache.myfaces.trinidad.component.UIXTable.restoreStampState(UIXTable.java:323)
	at org.apache.myfaces.trinidad.component.StampState.restoreChildStampState(StampState.java:152)
	at org.apache.myfaces.trinidad.component.UIXTable.restoreStampState(UIXTable.java:320)
	at org.apache.myfaces.trinidad.component.UIXCollection._restoreStampState(UIXCollection.java:1115)
	at org.apache.myfaces.trinidad.component.UIXCollection.postRowDataChange(UIXCollection.java:708)
	at org.apache.myfaces.trinidad.component.UIXCollection.setRowIndex(UIXCollection.java:406)
	at org.apache.myfaces.trinidad.component.UIXTable._processStamps(UIXTable.java:395)
	at org.apache.myfaces.trinidad.component.UIXTable.processFacetsAndChildren(UIXTable.java:268)
	at org.apache.myfaces.trinidad.component.UIXCollection.decodeChildrenImpl(UIXCollection.java:159)
...

examlpe .jspx:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:tr="http://myfaces.apache.org/trinidad" version="2.0">
	<tr:document>
		<tr:form>
			<tr:outputText value="Currency: XXX"></tr:outputText>
			<tr:table value="#{locationForm.locations}" var="row">
				<!-- some text causing the bug-->
				<f:facet name="header">
					<tr:commandButton text="Delete"
						actionListener="#{locationForm.delete}" />

				</f:facet>

				<tr:column sortable="true" sortProperty="#{row.city.state.country}">
					<f:facet name="header">
						<tr:outputText value="Country" />
					</f:facet>
					<tr:outputText value="#{row.city.state.country}" />
				</tr:column>

			</tr:table>
		</tr:form>
	</tr:document>
</jsp:root>

if "<!-- some text causing the bug-->" is removed the page is rendered as usual.

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

        

[jira] Commented: (ADFFACES-350) NullPointerException if tr:table tag containins a comment

Posted by "Adam Winer (JIRA)" <ad...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/ADFFACES-350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463632 ] 

Adam Winer commented on ADFFACES-350:
-------------------------------------

I believe that the issue comes up if the table contains any transient components at all.  f:verbatim would do the trick too.

> NullPointerException if tr:table tag containins a comment
> ---------------------------------------------------------
>
>                 Key: ADFFACES-350
>                 URL: https://issues.apache.org/jira/browse/ADFFACES-350
>             Project: MyFaces ADF-Faces
>          Issue Type: Bug
>         Environment: Windows XP, MyFaces, Facelets
>            Reporter: Florian Bartels
>
> The  following NPE occurs iff the table tag contains a comment: 
> java.lang.NullPointerException
> 	at org.apache.myfaces.trinidad.component.UIXCollection.restoreStampState(UIXCollection.java:803)
> 	at org.apache.myfaces.trinidad.component.UIXTable.restoreStampState(UIXTable.java:323)
> 	at org.apache.myfaces.trinidad.component.StampState.restoreChildStampState(StampState.java:152)
> 	at org.apache.myfaces.trinidad.component.UIXTable.restoreStampState(UIXTable.java:320)
> 	at org.apache.myfaces.trinidad.component.UIXCollection._restoreStampState(UIXCollection.java:1115)
> 	at org.apache.myfaces.trinidad.component.UIXCollection.postRowDataChange(UIXCollection.java:708)
> 	at org.apache.myfaces.trinidad.component.UIXCollection.setRowIndex(UIXCollection.java:406)
> 	at org.apache.myfaces.trinidad.component.UIXTable._processStamps(UIXTable.java:395)
> 	at org.apache.myfaces.trinidad.component.UIXTable.processFacetsAndChildren(UIXTable.java:268)
> 	at org.apache.myfaces.trinidad.component.UIXCollection.decodeChildrenImpl(UIXCollection.java:159)
> ...
> examlpe .jspx:
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
> 	xmlns:f="http://java.sun.com/jsf/core"
> 	xmlns:tr="http://myfaces.apache.org/trinidad" version="2.0">
> 	<tr:document>
> 		<tr:form>
> 			<tr:outputText value="Currency: XXX"></tr:outputText>
> 			<tr:table value="#{locationForm.locations}" var="row">
> 				<!-- some text causing the bug-->
> 				<f:facet name="header">
> 					<tr:commandButton text="Delete"
> 						actionListener="#{locationForm.delete}" />
> 				</f:facet>
> 				<tr:column sortable="true" sortProperty="#{row.city.state.country}">
> 					<f:facet name="header">
> 						<tr:outputText value="Country" />
> 					</f:facet>
> 					<tr:outputText value="#{row.city.state.country}" />
> 				</tr:column>
> 			</tr:table>
> 		</tr:form>
> 	</tr:document>
> </jsp:root>
> if "<!-- some text causing the bug-->" is removed the page is rendered as usual.

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

        

[jira] Updated: (ADFFACES-350) NullPointerException if tr:table tag containins a comment

Posted by "Matthias Weßendorf (JIRA)" <ad...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/ADFFACES-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Weßendorf updated ADFFACES-350:
----------------------------------------

    Affects Version/s: 1.0.1-incubating-core-SNAPSHOT

> NullPointerException if tr:table tag containins a comment
> ---------------------------------------------------------
>
>                 Key: ADFFACES-350
>                 URL: https://issues.apache.org/jira/browse/ADFFACES-350
>             Project: MyFaces ADF-Faces
>          Issue Type: Bug
>    Affects Versions: 1.0.1-incubating-core-SNAPSHOT
>         Environment: Windows XP, MyFaces, Facelets
>            Reporter: Florian Bartels
>
> The  following NPE occurs iff the table tag contains a comment: 
> java.lang.NullPointerException
> 	at org.apache.myfaces.trinidad.component.UIXCollection.restoreStampState(UIXCollection.java:803)
> 	at org.apache.myfaces.trinidad.component.UIXTable.restoreStampState(UIXTable.java:323)
> 	at org.apache.myfaces.trinidad.component.StampState.restoreChildStampState(StampState.java:152)
> 	at org.apache.myfaces.trinidad.component.UIXTable.restoreStampState(UIXTable.java:320)
> 	at org.apache.myfaces.trinidad.component.UIXCollection._restoreStampState(UIXCollection.java:1115)
> 	at org.apache.myfaces.trinidad.component.UIXCollection.postRowDataChange(UIXCollection.java:708)
> 	at org.apache.myfaces.trinidad.component.UIXCollection.setRowIndex(UIXCollection.java:406)
> 	at org.apache.myfaces.trinidad.component.UIXTable._processStamps(UIXTable.java:395)
> 	at org.apache.myfaces.trinidad.component.UIXTable.processFacetsAndChildren(UIXTable.java:268)
> 	at org.apache.myfaces.trinidad.component.UIXCollection.decodeChildrenImpl(UIXCollection.java:159)
> ...
> examlpe .jspx:
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
> 	xmlns:f="http://java.sun.com/jsf/core"
> 	xmlns:tr="http://myfaces.apache.org/trinidad" version="2.0">
> 	<tr:document>
> 		<tr:form>
> 			<tr:outputText value="Currency: XXX"></tr:outputText>
> 			<tr:table value="#{locationForm.locations}" var="row">
> 				<!-- some text causing the bug-->
> 				<f:facet name="header">
> 					<tr:commandButton text="Delete"
> 						actionListener="#{locationForm.delete}" />
> 				</f:facet>
> 				<tr:column sortable="true" sortProperty="#{row.city.state.country}">
> 					<f:facet name="header">
> 						<tr:outputText value="Country" />
> 					</f:facet>
> 					<tr:outputText value="#{row.city.state.country}" />
> 				</tr:column>
> 			</tr:table>
> 		</tr:form>
> 	</tr:document>
> </jsp:root>
> if "<!-- some text causing the bug-->" is removed the page is rendered as usual.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (ADFFACES-350) NullPointerException if tr:table tag containins a comment

Posted by "Adam Winer (JIRA)" <ad...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/ADFFACES-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Winer reassigned ADFFACES-350:
-----------------------------------

    Assignee: Adam Winer

> NullPointerException if tr:table tag containins a comment
> ---------------------------------------------------------
>
>                 Key: ADFFACES-350
>                 URL: https://issues.apache.org/jira/browse/ADFFACES-350
>             Project: MyFaces ADF-Faces
>          Issue Type: Bug
>    Affects Versions: 1.0.1-incubating-core-SNAPSHOT
>         Environment: Windows XP, MyFaces, Facelets
>            Reporter: Florian Bartels
>         Assigned To: Adam Winer
>
> The  following NPE occurs iff the table tag contains a comment: 
> java.lang.NullPointerException
> 	at org.apache.myfaces.trinidad.component.UIXCollection.restoreStampState(UIXCollection.java:803)
> 	at org.apache.myfaces.trinidad.component.UIXTable.restoreStampState(UIXTable.java:323)
> 	at org.apache.myfaces.trinidad.component.StampState.restoreChildStampState(StampState.java:152)
> 	at org.apache.myfaces.trinidad.component.UIXTable.restoreStampState(UIXTable.java:320)
> 	at org.apache.myfaces.trinidad.component.UIXCollection._restoreStampState(UIXCollection.java:1115)
> 	at org.apache.myfaces.trinidad.component.UIXCollection.postRowDataChange(UIXCollection.java:708)
> 	at org.apache.myfaces.trinidad.component.UIXCollection.setRowIndex(UIXCollection.java:406)
> 	at org.apache.myfaces.trinidad.component.UIXTable._processStamps(UIXTable.java:395)
> 	at org.apache.myfaces.trinidad.component.UIXTable.processFacetsAndChildren(UIXTable.java:268)
> 	at org.apache.myfaces.trinidad.component.UIXCollection.decodeChildrenImpl(UIXCollection.java:159)
> ...
> examlpe .jspx:
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
> 	xmlns:f="http://java.sun.com/jsf/core"
> 	xmlns:tr="http://myfaces.apache.org/trinidad" version="2.0">
> 	<tr:document>
> 		<tr:form>
> 			<tr:outputText value="Currency: XXX"></tr:outputText>
> 			<tr:table value="#{locationForm.locations}" var="row">
> 				<!-- some text causing the bug-->
> 				<f:facet name="header">
> 					<tr:commandButton text="Delete"
> 						actionListener="#{locationForm.delete}" />
> 				</f:facet>
> 				<tr:column sortable="true" sortProperty="#{row.city.state.country}">
> 					<f:facet name="header">
> 						<tr:outputText value="Country" />
> 					</f:facet>
> 					<tr:outputText value="#{row.city.state.country}" />
> 				</tr:column>
> 			</tr:table>
> 		</tr:form>
> 	</tr:document>
> </jsp:root>
> if "<!-- some text causing the bug-->" is removed the page is rendered as usual.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (ADFFACES-350) NullPointerException if tr:table tag containins a comment

Posted by "Adam Winer (JIRA)" <ad...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/ADFFACES-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Winer resolved ADFFACES-350.
---------------------------------

    Resolution: Cannot Reproduce

I've tried inserting comments into the table.jspx demo, and haven't
had any problems resulting.  Could you re-test, or provide a full
testcase as an attachment, and provide more information on
your configuration?

> NullPointerException if tr:table tag containins a comment
> ---------------------------------------------------------
>
>                 Key: ADFFACES-350
>                 URL: https://issues.apache.org/jira/browse/ADFFACES-350
>             Project: MyFaces ADF-Faces
>          Issue Type: Bug
>    Affects Versions: 1.0.1-incubating-core-SNAPSHOT
>         Environment: Windows XP, MyFaces, Facelets
>            Reporter: Florian Bartels
>         Assigned To: Adam Winer
>
> The  following NPE occurs iff the table tag contains a comment: 
> java.lang.NullPointerException
> 	at org.apache.myfaces.trinidad.component.UIXCollection.restoreStampState(UIXCollection.java:803)
> 	at org.apache.myfaces.trinidad.component.UIXTable.restoreStampState(UIXTable.java:323)
> 	at org.apache.myfaces.trinidad.component.StampState.restoreChildStampState(StampState.java:152)
> 	at org.apache.myfaces.trinidad.component.UIXTable.restoreStampState(UIXTable.java:320)
> 	at org.apache.myfaces.trinidad.component.UIXCollection._restoreStampState(UIXCollection.java:1115)
> 	at org.apache.myfaces.trinidad.component.UIXCollection.postRowDataChange(UIXCollection.java:708)
> 	at org.apache.myfaces.trinidad.component.UIXCollection.setRowIndex(UIXCollection.java:406)
> 	at org.apache.myfaces.trinidad.component.UIXTable._processStamps(UIXTable.java:395)
> 	at org.apache.myfaces.trinidad.component.UIXTable.processFacetsAndChildren(UIXTable.java:268)
> 	at org.apache.myfaces.trinidad.component.UIXCollection.decodeChildrenImpl(UIXCollection.java:159)
> ...
> examlpe .jspx:
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
> 	xmlns:f="http://java.sun.com/jsf/core"
> 	xmlns:tr="http://myfaces.apache.org/trinidad" version="2.0">
> 	<tr:document>
> 		<tr:form>
> 			<tr:outputText value="Currency: XXX"></tr:outputText>
> 			<tr:table value="#{locationForm.locations}" var="row">
> 				<!-- some text causing the bug-->
> 				<f:facet name="header">
> 					<tr:commandButton text="Delete"
> 						actionListener="#{locationForm.delete}" />
> 				</f:facet>
> 				<tr:column sortable="true" sortProperty="#{row.city.state.country}">
> 					<f:facet name="header">
> 						<tr:outputText value="Country" />
> 					</f:facet>
> 					<tr:outputText value="#{row.city.state.country}" />
> 				</tr:column>
> 			</tr:table>
> 		</tr:form>
> 	</tr:document>
> </jsp:root>
> if "<!-- some text causing the bug-->" is removed the page is rendered as usual.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.