[Neo tickets] #251: grab_file_lock error
neo4j.org
noreply at neo4j.org
Wed Aug 4 03:14:19 CEST 2010
#251: grab_file_lock error
------------------------+---------------------------------------------------
Reporter: anonymous | Owner: andersn
Type: bug report | Status: new
Priority: major | Milestone:
Component: apoc | Keywords:
------------------------+---------------------------------------------------
i tried.. sample code.
graphDb.shutdown() is NullpointException
at
org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.close(CommonAbstractStore.java:625)
at
org.neo4j.kernel.impl.nioneo.store.RelationshipTypeStore.closeStorage(RelationshipTypeStore.java:90)
at
org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.close(CommonAbstractStore.java:581)
at
org.neo4j.kernel.impl.nioneo.store.NeoStore.closeStorage(NeoStore.java:102)
at
org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.close(CommonAbstractStore.java:581)
at
org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.close(NeoStoreXaDataSource.java:235)
at
org.neo4j.kernel.impl.nioneo.xa.NioNeoDbPersistenceSource.stop(NioNeoDbPersistenceSource.java:78)
at
org.neo4j.kernel.GraphDbInstance.shutdown(GraphDbInstance.java:269)
at
org.neo4j.kernel.EmbeddedGraphDbImpl.shutdown(EmbeddedGraphDbImpl.java:260)
at
org.neo4j.kernel.EmbeddedGraphDatabase.shutdown(EmbeddedGraphDatabase.java:118)
at com.ucloud.nosql.NeoTest.write(NeoTest.java:76)
at com.ucloud.nosql.NeoTest.main(NeoTest.java:27)
Map<String,String> config = new HashMap<String,String>();
config.put( "grab_file_lock", "false" );
GraphDatabaseService graphDb = new
EmbeddedGraphDatabase("/var/base",config);
Transaction tx = graphDb.beginTx();
try {
Node firstNode = graphDb.createNode();
Node secondNode = graphDb.createNode();
Relationship relationship =
firstNode.createRelationshipTo(secondNode, MyRelationshipTypes.KNOWS);
firstNode.setProperty("message", "Hello, ");
secondNode.setProperty("message", "world!");
relationship.setProperty("message", "brave Neo4j ");
tx.success();
System.out.print(firstNode.getProperty("message"));
System.out.print(relationship.getProperty("message"));
System.out.print(secondNode.getProperty("message"));
}
catch(Exception e) {
e.printStackTrace();
}
finally {
tx.finish();
graphDb.shutdown();
}
--
Ticket URL: <https://trac.neo4j.org/ticket/251>
neo4j.org <http://trac.neo4j.org/>
The Neo4J.org Issue Tracker
More information about the Tickets
mailing list