You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Richard Baar <ta...@systinet.com> on 2003/01/17 15:53:21 UTC
NullPointerException when I add index
Hi,
well I use Xindice to store a lot of documents and all of these documents have id atribute by the root element. Because I need to search through this attribute quickly I try to create index in the pattern form '*@id'. The index is correctly created but when I try to store new documents in the Xindice I got this exception:
java.lang.NullPointerException
at org.apache.xindice.core.indexer.IndexPattern.getMatchLevel(IndexPattern.java:155)
at org.apache.xindice.core.indexer.IndexManager$SAXHandler.processEntry(IndexManager.java:495)
at org.apache.xindice.core.indexer.IndexManager$SAXHandler.startElement(IndexManager.java:531)
at org.apache.xindice.xml.sax.SAXEventGenerator.processContainer(SAXEventGenerator.java:251)
at org.apache.xindice.xml.sax.SAXEventGenerator.processContainer(SAXEventGenerator.java:269)
at org.apache.xindice.xml.sax.SAXEventGenerator.start(SAXEventGenerator.java:342)
at org.apache.xindice.core.indexer.IndexManager$SAXHandler.<init>(IndexManager.java:462)
at org.apache.xindice.core.indexer.IndexManager$SAXHandler.<init>(IndexManager.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(CollectionServant.java:317)
at org.apache.xindice.client.corba.db.CollectionPOA._invoke(CollectionPOA.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.java:1467)
at org.openorb.net.ServerManagerImpl.thread_pool_main(ServerManagerImpl.java:1410)
at org.openorb.net.ServerManagerImpl.access$200(ServerManagerImpl.java:77)
at org.openorb.net.ServerManagerImpl$PoolThread.run(ServerManagerImpl.java:1557)
It seems that the pattern is not correct but in the Xindice documentation is writen that pattern should be in this form!!
Any help, please??
Tarzan