This is after chaining, right? This was a bug because I had ValidationAwareSupport 
returning an Unmodifiable Collection, and when chaining it was being set into the next 
Action. Now it returns a new Collection so modifications won't change the internal 
state and can be set into the next Action by chaining safely.

> -----Original Message-----
> From: Samuel Mota [mailto:[EMAIL PROTECTED] 
> Sent: Monday, January 12, 2004 9:57 AM
> To: [EMAIL PROTECTED]
> Subject: [OS-webwork] Unmodified collection
> 
> 
> Hi,
> 
> At a ValidationAware action I'm trying to addActionError(msg) 
> but getting java.lang.UnsupportedOperationException
> 
> The stack trace are this:
>       at 
> java.util.Collections$UnmodifiableCollection.add(Collections.j
ava:1000)
>       at
> com.opensymphony.xwork.ValidationAwareSupport.addActionError(V
> alidationAwareSupport.java:50)
>       at 
> com.opensymphony.xwork.ActionSupport.addActionError(ActionSupp
> ort.java:80)
>       at 
> apps.netwalki.actions.ServiceOrderAct.exceptionDealer(ServiceO
> rderAct.java:193)
> 
> At ValidationAwareSupport.addActionError() the Arraylist 
> returned by internalGetActionErrors int an Unmodified 
> collection ... so I can't add messages to it.
> 
> I'm with beta2 package.
> 
> Why?
> 
> Thanks
> 
> + Samuel G. Mota
> + [EMAIL PROTECTED]
> + 55 (11) 4417 7093
> + Business Application Dpt.
> + Netset Serviços em Tecnologia
> + a Hypercom Company
> + http://www.hypercom.com
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Perforce Software.
> Perforce is the Fast Software Configuration Management System 
> offering advanced branching capabilities and atomic changes 
> on 50+ platforms. Free Eval! 
> http://www.perforce.com/perforce/loadprog.html
> 
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to