From: Bill E. <bi...@rf...> - 2002-08-21 17:13:41
|
I reach a point where I have a few hundred documents in the database, and then I get errors trying to insert documents into a new collection. If I delete all the dbx files, then it will work again. Or in the 2nd example below, I insert a document in collection efd/vendors fine, but I get Parser errors when trying to insert the same doc in collection efd/products which hadn't been created yet. It seems to me that the problem doesn't happen immediately, but only after some use, perhaps after some attempts at inserting malformed XML files? Unfortunately I can't be sure. Most of my inserts are using an XML-RPC interface, but the examples below use exist.sh directly. Bill ============================================== ============================================== #1 [root@gorgon eXist-0.8]# bin/exist.sh -l -c efd/products -p product1.xml eXist version 0.8, Copyright (C) 2002 Wolfgang M. Meier eXist comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; for details read the license file. loading configuration from /data/eXist-0.8/conf.xml Loading catalog: /data/eXist-0.8/samples/xcatalog.xml starting local instance of broker ... first pass: scanning document to determine tree structure ... java.lang.NullPointerException at org.exist.Parser.scan(Parser.java:222) at org.exist.CommandLine.parse(CommandLine.java:421) at org.exist.CommandLine.<init>(CommandLine.java:262) at org.exist.CommandLine.main(CommandLine.java:788) java.lang.NullPointerException [1]+ Exit 143 bin/server.sh 1>&serverrs [root@gorgon eXist-0.8]# rm -f data/*dbx [root@gorgon eXist-0.8]# bin/exist.sh -l -c efd/products -p product1.xml eXist version 0.8, Copyright (C) 2002 Wolfgang M. Meier eXist comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; for details read the license file. loading configuration from /data/eXist-0.8/conf.xml Loading catalog: /data/eXist-0.8/samples/xcatalog.xml starting local instance of broker ... storing collection: /db first pass: scanning document to determine tree structure ... storing collection: /db storing collection: /db/efd second pass: storing nodes ... storing collection: /db/efd/products storing collection: /db/efd/products================================] (100 %) storing words [==================================================] (100 %) storing elements [==================================================] (100 %) parsing took 1249 =========================================================================== =========================================================================== #2 [root@gorgon eXist-0.8]# bin/exist.sh -l -c efd/vendors -p product1.xml eXist version 0.8, Copyright (C) 2002 Wolfgang M. Meier eXist comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; for details read the license file. loading configuration from /data/eXist-0.8/conf.xml Loading catalog: /data/eXist-0.8/samples/xcatalog.xml starting local instance of broker ... first pass: scanning document to determine tree structure ... second pass: storing nodes ... storing collection: /db/efd/vendors storing collection: /db/efd/vendors=================================] (100 %) storing words [==================================================] (100 %) storing elements [==================================================] (100 %) parsing took 1433 [root@gorgon eXist-0.8]# bin/exist.sh -l -c efd/products -p product1.xml eXist version 0.8, Copyright (C) 2002 Wolfgang M. Meier eXist comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; for details read the license file. loading configuration from /data/eXist-0.8/conf.xml Loading catalog: /data/eXist-0.8/samples/xcatalog.xml starting local instance of broker ... first pass: scanning document to determine tree structure ... java.lang.NullPointerException at org.exist.Parser.scan(Parser.java:222) at org.exist.CommandLine.parse(CommandLine.java:421) at org.exist.CommandLine.<init>(CommandLine.java:262) at org.exist.CommandLine.main(CommandLine.java:788) java.lang.NullPointerException |