Use the source, Luke. Consulting the lucene source I see that you're
trying to add something where both key and value are empty. Not null,
but empty strings that is. You should have checks for that as well in
your code.

2011/2/24 Axel Morgner <a...@morgner.de>:
> Hi,
>
> after transition to the new indexer framework, I tried to rebuild the
> index on a small test database with 11,000 nodes.
>
> It failed with the following exception:
>
> java.lang.IllegalArgumentException: name and value cannot both be empty
>     at org.apache.lucene.document.Field.<init>(Field.java:398)
>     at org.apache.lucene.document.Field.<init>(Field.java:371)
>     at org.apache.lucene.document.Field.<init>(Field.java:350)
>     at
> org.neo4j.index.impl.lucene.IndexType.instantiateField(IndexType.java:331)
>     at
> org.neo4j.index.impl.lucene.IndexType$CustomType.addToDocument(IndexType.java:159)
>     at
> org.neo4j.index.impl.lucene.LuceneCommand$AddCommand.perform(LuceneCommand.java:187)
>     at
> org.neo4j.index.impl.lucene.LuceneTransaction.doCommit(LuceneTransaction.java:231)
>     at
> org.neo4j.kernel.impl.transaction.xaframework.XaTransaction.commit(XaTransaction.java:319)
>     at
> org.neo4j.kernel.impl.transaction.xaframework.XaResourceManager.commit(XaResourceManager.java:447)
>     at
> org.neo4j.kernel.impl.transaction.xaframework.XaResourceHelpImpl.commit(XaResourceHelpImpl.java:65)
>     at
> org.neo4j.kernel.impl.transaction.TransactionImpl.doCommit(TransactionImpl.java:517)
>     at
> org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:623)
>     at
> org.neo4j.kernel.impl.transaction.TxManager.commit(TxManager.java:586)
>     at
> org.neo4j.kernel.impl.transaction.TransactionImpl.commit(TransactionImpl.java:105)
>     at
> org.neo4j.kernel.TopLevelTransaction.finish(TopLevelTransaction.java:86)
>
>
> Thu Feb 24 14:21:56 CET 2011: --- CONFIGURATION START ---
> Thu Feb 24 14:21:56 CET 2011: Physical mem: 7999MB, Heap size: 5333MB
> Thu Feb 24 14:21:56 CET 2011: Kernel version: Neo4j - Graph Database
> Kernel 1.2-SNAPSHOT (revision: 8112)
> Thu Feb 24 14:21:56 CET 2011: Operating System: Linux; version:
> 2.6.35-25-generic; arch: amd64; cpus: 8
> Thu Feb 24 14:21:56 CET 2011: VM Name: OpenJDK 64-Bit Server VM
> Thu Feb 24 14:21:56 CET 2011: VM Vendor: Sun Microsystems Inc.
> Thu Feb 24 14:21:56 CET 2011: VM Version: 19.0-b09
>
> I made sure that I only add non-null values to the index.
>
> Does anyone have an idea what's going wrong?
>
> Greetings
>
> Axel
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Mattias Persson, [matt...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to