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

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to