Hi! I am trying to add an index to my collection to speed up query a little and I get the following error:
Xindice 1.0 (Birthday) Database: 'db' initializing Script: 'GET' added to script storage Service: 'db' started Service: 'HTTPServer' started @ http://maxipax:4080/ Service: 'APIService' started Server Running DEBUG> java.lang.NullPointerException at org.apache.xindice.core.filer.BTree.findValue(BTree.java:213) at org.apache.xindice.core.filer.BTree.findBTreeRoot(BTree.java:292) at org.apache.xindice.core.indexer.ValueIndexer.add(ValueIndexer.java:34 5) at org.apache.xindice.core.indexer.IndexManager$SAXHandler.processEntry( IndexManager.java:500) at org.apache.xindice.core.indexer.IndexManager$SAXHandler.startElement( IndexManager.java:531) at org.apache.xindice.xml.sax.SAXEventGenerator.processContainer(SAXEven tGenerator.java:251) at org.apache.xindice.xml.sax.SAXEventGenerator.processContainer(SAXEven tGenerator.java:269) at org.apache.xindice.xml.sax.SAXEventGenerator.start(SAXEventGenerator. java:342) at org.apache.xindice.core.indexer.IndexManager$SAXHandler.<init>(IndexM anager.java:462) at org.apache.xindice.core.indexer.IndexManager$SAXHandler.<init>(IndexM anager.java:478) at org.apache.xindice.core.indexer.IndexManager.addDocument(IndexManager .java:392) at org.apache.xindice.core.Collection.putDocument(Collection.java:627) at org.apache.xindice.core.Collection.insertDocument(Collection.java:659 ) at org.apache.xindice.client.corba.CollectionServant.insertDocument(Coll ectionServant.java:317) at org.apache.xindice.client.corba.db.CollectionPOA._invoke(CollectionPO A.java:181) at org.openorb.adapter.poa.POA.dispatch(POA.java:975) at org.openorb.net.AbstractServerRequest.dispatch(AbstractServerRequest. java:750) at org.openorb.net.ServerManagerImpl.serve_request(ServerManagerImpl.jav a:1467) at org.openorb.net.ServerManagerImpl.thread_pool_main(ServerManagerImpl. java:1410) at org.openorb.net.ServerManagerImpl.access$200(ServerManagerImpl.java:7 7) at org.openorb.net.ServerManagerImpl$PoolThread.run(ServerManagerImpl.ja va:1557) DEBUG> Index Creation: idindex DEBUG> Index Complete: idindex DEBUG> Populated Indexes: 30ms Here is the XML I use to create the index: xml = "<index class=\"org.apache.xindice.core.indexer.ValueIndexer\" name=\"idindex\" pattern=\"[EMAIL PROTECTED]"/>"; Document doc = DOMParser.toDocument(xml); addIndex(col, doc); And here is the kind of page I add to the collection: xml = "<page id=\"test1\">1234</page>"; XMLResource document = (XMLResource) col.createResource(null, "XMLResource"); document.setContent(xml); col.storeResource(document); Any idea why? I am on win2000 $ java -version java version "1.4.2" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28) Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode) I have not changed the server config. Thank you Manuel Darveau __________________________________ Do you Yahoo!? Yahoo! Search - Find what you’re looking for faster http://search.yahoo.com