From: Wolfgang M. M. <wol...@us...> - 2004-05-10 11:22:59
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/storage/serializers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25553/src/org/exist/storage/serializers Modified Files: Serializer.java Log Message: XUpdate: * Btree not correctly updated after node changes, leading to NullPointerException * Attribute values truncated * Page splitting error results in NullPointerException after a few hundred XUpdates * New configuration parameter to control XUpdate behaviour Other: * Properties passed to Collection, XPathQueryService, XQueryService had no effect. * Modified evaluation of index settings in conf.xml. Index: Serializer.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/storage/serializers/Serializer.java,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** Serializer.java 3 May 2004 13:08:45 -0000 1.23 --- Serializer.java 10 May 2004 11:22:43 -0000 1.24 *************** *** 25,28 **** --- 25,29 ---- import java.io.IOException; import java.io.StringWriter; + import java.util.Enumeration; import java.util.Hashtable; import java.util.Iterator; *************** *** 169,175 **** if (properties == null) return; ! for (Iterator i = properties.entrySet().iterator(); i.hasNext(); ) { ! Map.Entry entry = (Map.Entry) i.next(); ! setProperty((String)entry.getKey(), entry.getValue().toString()); } } --- 170,180 ---- if (properties == null) return; ! String key; ! for(Enumeration e = properties.propertyNames(); e.hasMoreElements(); ) { ! key = (String)e.nextElement(); ! if(key.equals("http://xml.org/sax/properties/lexical-handler")) ! lexicalHandler = (LexicalHandler)properties.get(key); ! else ! setProperty(key, properties.getProperty(key)); } } |