Update of /var/cvs/src/org/mmbase/core/event
In directory james.mmbase.org:/tmp/cvs-serv25327/src/org/mmbase/core/event

Modified Files:
        NodeEventHelper.java 
Log Message:
MMB-1553 Message too long errors in the log.


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/core/event
See also: http://www.mmbase.org/jira/browse/MMB-1553


Index: NodeEventHelper.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/core/event/NodeEventHelper.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- NodeEventHelper.java        26 Jul 2007 11:45:54 -0000      1.8
+++ NodeEventHelper.java        3 Feb 2008 17:03:40 -0000       1.9
@@ -19,7 +19,7 @@
  * but we need a little help for easy instantiation.
  * @author Ernst Bunders
  * @since MMBase-1.8
- * @version $Id: NodeEventHelper.java,v 1.8 2007/07/26 11:45:54 michiel Exp $
+ * @version $Id: NodeEventHelper.java,v 1.9 2008/02/03 17:03:40 nklasens Exp $
 
  */
 public class NodeEventHelper {
@@ -67,9 +67,20 @@
         }
         }
 
+        removeBinaryValues(oldEventValues);
+        removeBinaryValues(newEventValues);
+
         return new NodeEvent(machineName, node.getBuilder().getTableName(), 
node.getNumber(), oldEventValues, newEventValues, eventType);
     }
 
+    private static void removeBinaryValues(Map<String, Object> oldEventValues) 
{
+        for (Map.Entry<String, Object> entry : oldEventValues.entrySet()) {
+            if (entry.getValue() != null && (entry.getValue() instanceof 
byte[])) {
+                entry.setValue(null);
+            }
+        }
+    }
+
     public static RelationEvent createRelationEventInstance(Relation node, int 
eventType, String machineName){
         MMObjectNode coreNode = 
MMBase.getMMBase().getBuilder(node.getNodeManager().getName()).getNode(node.getNumber());
         return createRelationEventInstance(coreNode, eventType, machineName);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to