From: Jean-Baptiste Q. <jb...@an...> - 2005-12-07 18:34:34
|
* Pierrick Brihaye: > It looks like nothing is stored there or, at least, that your > cinfog document is not considered as XML. Could you check > before restarting eXist ? Of course I checked: 1) Add a document in eXist 2005-12-07 19:15:32,277 [P1-8] DEBUG (Collection.java [setupTriggers]:103= 4) - Using trigger: exist.CacheEventTrigger 2005-12-07 19:15:33,793 [P1-8] DEBUG (Collection.java [setupTriggers]:103= 4) - Using trigger: exist.CacheEventTrigger 2) Restart eXist 3) Add another document in eXist, you get: 2005-12-07 19:16:29,602 [P1-9] DEBUG (CollectionConfigurationManager.java= [getConfiguration]:114) - Reading config for /db/path/to/collection 2005-12-07 19:16:29,603 [P1-9] DEBUG (CollectionConfigurationManager.java= [getConfiguration]:131) - Reading config for '/db/path/to/collection' fr= om '/db/system/config/db/some/other/path/collection.xconf' 2005-12-07 19:16:29,604 [P1-9] DEBUG (RpcServer.java [handleException]:60= 2) - java.lang.NullPointerException at org.exist.collections.CollectionConfiguration.read(CollectionC= onfiguration.java:85) at org.exist.collections.CollectionConfigurationManager.getConfig= uration(CollectionConfigurationManager.java:132) at org.exist.collections.Collection.getConfiguration(Collection.j= ava:1184) at org.exist.collections.Collection.setupTriggers(Collection.java= :1030) at org.exist.collections.Collection.validateInternal(Collection.j= ava:888) at org.exist.collections.Collection.validate(Collection.java:771) 4) cadaver http://myhost/exist/webdav/db/system/config/db/some/other/path edit collection.xconf ^@^@^]^@2^A^@^@^@^@^@^L^A^N^@^E^@exist^@^A^@^Eexist^@^N^A^@^R^@2^C^@^@^@^= @^@^M^A^N^@^E^@exist ^@*^@<82>=DE^@exist.CacheEventTrigger^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@= ^@^@^@^@^@^@^@^@^@^@^@ 5) Replace collection.xconf with a clean copy by issuing =AB=A0put collection.xconf=A0=BB in cadaver 6) Add a document in eXist, it works! *************************************************************** In fact, collection.xconf gets corrupt when exist is restarted! *************************************************************** > The XQueryTriggerTest case works like a charm... AFAICT this test uses IndexQueryService to configure the collection. It does not store a document named =AB=A0collection.xconf=A0=BB into /db/system/config/db. Thanks in advance for your help, --=20 Jean-Baptiste Quenot Syst=E8mes d'Information ANYWARE TECHNOLOGIES Tel : +33 (0)5 61 00 52 90 Fax : +33 (0)5 61 00 51 46 http://www.anyware-tech.com/ |