#147 ✓resolved
Hélio Miranda

Lucene tries to create an invalid directory on windows

Reported by Hélio Miranda | February 14th, 2011 @ 10:18 PM | in 1.0.0

When indexing a node defined by a class like:


Lucene tries to create the following directory:

which is an invalid directory name on windows and throws the following error:

org/neo4j/index/impl/lucene/LuceneBatchInserterIndex.java:213:in instantiateWriter': java.lang.RuntimeException: java.io.IOException: Cannot create directory: C:\Test\db\index\lucene\node\ProjectName::Person-exact (NativeException)<br/>

    from org/neo4j/index/impl/lucene/LuceneBatchInserterIndex.java:65:in `<init>'
    from org/neo4j/index/impl/lucene/LuceneBatchInserterIndexProvider.java:134:in `index'
    from org/neo4j/index/impl/lucene/LuceneBatchInserterIndexProvider.java:101:in `nodeIndex'
    from c:/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/neo4j-1.0.0.beta.29-java/lib/neo4j/batch/indexer.rb:87:in `create_batch_index_with'
    from c:/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/neo4j-1.0.0.beta.29-java/lib/neo4j/batch/indexer.rb:80:in `batch_index_for_field'
    from c:/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/neo4j-1.0.0.beta.29-java/lib/neo4j/batch/indexer.rb:45:in `index_entity'
    from c:/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/neo4j-1.0.0.beta.29-java/lib/neo4j/batch/inserter.rb:151:in `_index'
    from c:/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/neo4j-1.0.0.beta.29-java/lib/neo4j/batch/inserter.rb:52:in `create_node'

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Neo4j.rb is a graph database framework for JRuby.

It provides:

* Mapping of ruby objects to nodes in networks rather than in tables.
* Storage of ruby object to a file system.
* Fast traversal of relationships between nodes in a hugh node space.
* Transaction with rollbacks support.
* Indexing and quering of ruby objects.
* Integration with Rails

People watching this ticket

Referenced by