Author: mturk
Date: Fri Nov 14 05:49:14 2008
New Revision: 714002

URL: http://svn.apache.org/viewvc?rev=714002&view=rev
Log:

Do not throw attribute value.
Patch provided by Tomaz Cerar cerar at parsek.com

Modified:
    tomcat/trunk/java/org/apache/catalina/session/LocalStrings.properties
    tomcat/trunk/java/org/apache/catalina/session/LocalStrings_es.properties
    tomcat/trunk/java/org/apache/catalina/session/LocalStrings_fr.properties
    tomcat/trunk/java/org/apache/catalina/session/StandardSession.java

Modified: tomcat/trunk/java/org/apache/catalina/session/LocalStrings.properties
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/session/LocalStrings.properties?rev=714002&r1=714001&r2=714002&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/session/LocalStrings.properties 
(original)
+++ tomcat/trunk/java/org/apache/catalina/session/LocalStrings.properties Fri 
Nov 14 05:49:14 2008
@@ -64,7 +64,7 @@
 standardSession.notSerializable=Cannot serialize session attribute {0} for 
session {1}
 standardSession.removeAttribute.ise=removeAttribute: Session already 
invalidated
 standardSession.sessionEvent=Session event listener threw exception
-standardSession.setAttribute.iae=setAttribute: Non-serializable attribute {0} 
with value {1}
+standardSession.setAttribute.iae=setAttribute: Non-serializable attribute {0}
 standardSession.setAttribute.ise=setAttribute: Session already invalidated
 standardSession.setAttribute.namenull=setAttribute: name parameter cannot be 
null
 standardSession.sessionCreated=Created Session id = {0}

Modified: 
tomcat/trunk/java/org/apache/catalina/session/LocalStrings_es.properties
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/session/LocalStrings_es.properties?rev=714002&r1=714001&r2=714002&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/session/LocalStrings_es.properties 
(original)
+++ tomcat/trunk/java/org/apache/catalina/session/LocalStrings_es.properties 
Fri Nov 14 05:49:14 2008
@@ -63,7 +63,7 @@
 standardSession.notSerializable = No puedo serializar atributo de sesi\u00F3n 
{0} para sesi\u00F3n {1}
 standardSession.removeAttribute.ise = removeAttribute\: La Sesi\u00F3n ya ha 
sido invalidada
 standardSession.sessionEvent = El oyente de evento de Sesi\u00F3n lanz\u00F3 
una execpci\u00F3n
-standardSession.setAttribute.iae = setAttribute\: Atributo no serializable
+standardSession.setAttribute.iae = setAttribute\: Atributo {0} no serializable
 standardSession.setAttribute.ise = setAttribute\: La Sesi\u00F3n ya ha sido 
invalidada
 standardSession.setAttribute.namenull = setAttribute\: el nuevo par\u00E1metro 
no puede ser nulo
 standardSession.sessionCreated = Creada Sesi\u00F3n id \= {0}

Modified: 
tomcat/trunk/java/org/apache/catalina/session/LocalStrings_fr.properties
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/session/LocalStrings_fr.properties?rev=714002&r1=714001&r2=714002&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/session/LocalStrings_fr.properties 
(original)
+++ tomcat/trunk/java/org/apache/catalina/session/LocalStrings_fr.properties 
Fri Nov 14 05:49:14 2008
@@ -62,7 +62,7 @@
 standardSession.notSerializable=Impossible de sérialiser l''attribut de 
session {0} pour la session {1}
 standardSession.removeAttribute.ise="removeAttribute": Session déjà invalidée
 standardSession.sessionEvent=L''écouteur d''évènement de session (session 
event listener) a généré une exception
-standardSession.setAttribute.iae="setAttribute": attribut non sérialisable
+standardSession.setAttribute.iae="setAttribute": Attribut {0} non sérialisable
 standardSession.setAttribute.ise="setAttribute": Session déjà invalidée
 standardSession.setAttribute.namenull="setAttribute": le nom de paramètre ne 
peut être nul
 standardSession.sessionCreated=Création de l''Id de Session = {0}

Modified: tomcat/trunk/java/org/apache/catalina/session/StandardSession.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/session/StandardSession.java?rev=714002&r1=714001&r2=714002&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/session/StandardSession.java 
(original)
+++ tomcat/trunk/java/org/apache/catalina/session/StandardSession.java Fri Nov 
14 05:49:14 2008
@@ -1320,8 +1320,7 @@
         if ((manager != null) && manager.getDistributable() &&
           !(value instanceof Serializable))
             throw new IllegalArgumentException
-                (sm.getString("standardSession.setAttribute.iae",
-                              name, value));
+                (sm.getString("standardSession.setAttribute.iae", name));
         // Construct an event with the new value
         HttpSessionBindingEvent event = null;
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to