Getting this error while loading bean which has a 'wkt/spatial' index
using  - Spring data-neo4j  3.0.0.BUILD-20140207...., neo4j 2.0.0

*Note*: I do not know how to do batch insert a spatial (as it is my 
understanding that I need to create a layer with that WKT, add these nodes 
to that layer) 
I looked at the code 'SpatialIndexImplementation' nodeIndex. *If I have to 
do batch insert, *adding to this index would be sufficient?

The stack trace is as shown below:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
    at 
org.apache.lucene.store.BufferedIndexOutput.<init>(BufferedIndexOutput.java:26)
    at 
org.apache.lucene.store.FSDirectory$FSIndexOutput.<init>(FSDirectory.java:438)
    at 
org.apache.lucene.store.FSDirectory.createOutput(FSDirectory.java:306)
    at 
org.apache.lucene.index.FormatPostingsPositionsWriter.<init>(FormatPostingsPositionsWriter.java:43)
    at 
org.apache.lucene.index.FormatPostingsDocsWriter.<init>(FormatPostingsDocsWriter.java:57)
    at 
org.apache.lucene.index.FormatPostingsTermsWriter.<init>(FormatPostingsTermsWriter.java:33)
    at 
org.apache.lucene.index.FormatPostingsFieldsWriter.<init>(FormatPostingsFieldsWriter.java:51)
    at 
org.apache.lucene.index.FreqProxTermsWriter.flush(FreqProxTermsWriter.java:85)
    at org.apache.lucene.index.TermsHash.flush(TermsHash.java:113)
    at org.apache.lucene.index.DocInverter.flush(DocInverter.java:70)
    at 
org.apache.lucene.index.DocFieldProcessor.flush(DocFieldProcessor.java:60)
    at 
org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:581)
    at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3587)
    at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3552)
    at org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:450)
    at org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:399)
    at 
org.apache.lucene.index.DirectoryReader.doOpenFromWriter(DirectoryReader.java:413)
    at 
org.apache.lucene.index.DirectoryReader.doOpenIfChanged(DirectoryReader.java:432)
    at 
org.apache.lucene.index.DirectoryReader.doOpenIfChanged(DirectoryReader.java:375)
    at 
org.apache.lucene.index.DirectoryReader.doOpenIfChanged(DirectoryReader.java:392)
    at 
org.apache.lucene.index.IndexReader.openIfChanged(IndexReader.java:634)
    at 
org.neo4j.index.impl.lucene.LuceneDataSource.refreshSearcher(LuceneDataSource.java:505)
    at 
org.neo4j.index.impl.lucene.LuceneDataSource.refreshSearcherIfNeeded(LuceneDataSource.java:635)
    at 
org.neo4j.index.impl.lucene.LuceneDataSource.getIndexSearcher(LuceneDataSource.java:577)
    at org.neo4j.index.impl.lucene.LuceneIndex.query(LuceneIndex.java:293)
    at org.neo4j.index.impl.lucene.LuceneIndex.query(LuceneIndex.java:251)
    at 
org.neo4j.gis.spatial.indexprovider.LayerNodeIndex.findExistingNode(LayerNodeIndex.java:152)
    at 
org.neo4j.gis.spatial.indexprovider.LayerNodeIndex.add(LayerNodeIndex.java:132)
    at 
org.neo4j.gis.spatial.indexprovider.LayerNodeIndex.add(LayerNodeIndex.java:1)
    at 
org.springframework.data.neo4j.fieldaccess.IndexingPropertyFieldAccessorListenerFactory$IndexingPropertyFieldAccessorListener.valueChanged(IndexingPropertyFieldAccessorListenerFactory.java:86)
    at 
org.springframework.data.neo4j.fieldaccess.DefaultEntityState.notifyListeners(DefaultEntityState.java:137)
    at 
org.springframework.data.neo4j.fieldaccess.DefaultEntityState.setValue(DefaultEntityState.java:114)
 

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to