[richfaces-issues] [JBoss JIRA] Created: (RF-5975) rich:messages null pointer when client side state saving and clientId is NULL

Steven Murray (JIRA) jira-events at lists.jboss.org
Fri Jan 30 16:44:44 EST 2009


rich:messages null pointer when client side state saving and clientId is NULL
-----------------------------------------------------------------------------

                 Key: RF-5975
                 URL: https://jira.jboss.org/jira/browse/RF-5975
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.3.0
         Environment: rich faces 3.3.0 GA on windows platform
            Reporter: Steven Murray


Using rich:messages, client side state saving, entity (backing bean) scope is Event.  Add faces message with clientId null

Relevant part of the stack

java.lang.NullPointerException
	at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength(ObjectOutputStream.java:2097)
	at java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:1968)
	at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:841)
	at org.richfaces.component.UIRichMessages$FacesMessageWithId.writeObject(UIRichMessages.java:302)

Relevant part of UIRichMessages

		/**
		 * <p>
		 * Persist {@link FacesMessageWithId} artifacts,
		 * including the non serializable <code>Severity</code>.
		 * </p>
		 */
		private void writeObject(ObjectOutputStream out) throws IOException {
			out.writeUTF(clientId);
			out.writeInt(message.getSeverity().getOrdinal());
			out.writeUTF(message.getSummary());
			out.writeUTF(message.getDetail());
		}

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

        



More information about the richfaces-issues mailing list