Note that there are some explanatory texts on larger screens.

plurals
  1. POMy java programme is getting failed to update Neo4j DB
    primarykey
    data
    text
    <p>my local neo4j db path is C:\neo4j-community-1.9.3_bup</p> <p>I have created a simple java program to connect to neo4j DB and insert some nodes.</p> <p>But after insertion when i am trying to retrive these nodes through Neo4jDataBrower these are not listing.</p> <p>The code i have used is taken from neo4j portal itself,</p> <pre><code> String DB_PATH = "C\\neo4j-community-1.9.3_bup"; Map&lt;String, String&gt; config = new HashMap&lt;String, String&gt;(); config.put( "neostore.nodestore.db.mapped_memory", "10M" ); config.put( "string_block_size", "60" ); config.put( "array_block_size", "300" ); graphDb = new GraphDatabaseFactory().newEmbeddedDatabaseBuilder(DB_PATH).setConfig(config).newGraphDatabase(); registerShutdownHook( graphDb ); Transaction tx = graphDb.beginTx(); try { firstNode = graphDb.createNode(); firstNode.setProperty( "message", "Hello, " ); secondNode = graphDb.createNode(); secondNode.setProperty( "message", "World!" ); relationship = firstNode.createRelationshipTo( secondNode, RelTypes.KNOWS ); relationship.setProperty( "message", "brave Neo4j " ); tx.success(); } finally { tx.finish(); } </code></pre> <p>Why its not working?</p> <p>please suggest me..is there some problem vth path i have given or problem vth code?</p> <p>Hi Werner, </p> <p>The runtime exception is</p> <pre><code>Exception in thread "main" java.lang.RuntimeException: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.StoreLockerLifecycleAdapter@406199' was successfully initialized, but failed to start. Please see attached cause exception. at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:280) at org.neo4j.kernel.EmbeddedGraphDatabase.&lt;init&gt;(EmbeddedGraphDatabase.java:106) at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:88) at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207) at com.Neo4J.src.EmbeddedNeo4j.createDb(EmbeddedNeo4j.java:54) at com.Neo4J.src.EmbeddedNeo4j.main(EmbeddedNeo4j.java:38) Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.StoreLockerLifecycleAdapter@406199' was successfully initialized, but failed to start. Please see attached cause exception. at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104) at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:258) ... 5 more Caused by: org.neo4j.kernel.StoreLockException: Could not create lock file at org.neo4j.kernel.StoreLocker.checkLock(StoreLocker.java:74) at org.neo4j.kernel.StoreLockerLifecycleAdapter.start(StoreLockerLifecycleAdapter.java:40) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491) ... 7 more </code></pre> <p>New Log,</p> <pre><code>Exception in thread "main" java.lang.RuntimeException: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.transaction.TxManager@1827284' was successfully initialized, but failed to start. Please see attached cause exception. at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:280) at org.neo4j.kernel.EmbeddedGraphDatabase.&lt;init&gt;(EmbeddedGraphDatabase.java:106) at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:88) at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207) at com.Neo4J.src.EmbeddedNeo4j.createDb(EmbeddedNeo4j.java:57) at com.Neo4J.src.EmbeddedNeo4j.main(EmbeddedNeo4j.java:41) Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.transaction.TxManager@1827284' was successfully initialized, but failed to start. Please see attached cause exception. at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104) at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:258) ... 5 more Caused by: org.neo4j.graphdb.TransactionFailureException: Unable to start TM, no active tx log file found but found either tm_tx_log.1 or tm_tx_log.2 file, please set one of them as active or remove them. at org.neo4j.kernel.impl.transaction.TxManager.openLog(TxManager.java:750) at org.neo4j.kernel.impl.transaction.TxManager.start(TxManager.java:138) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491) ... 7 more </code></pre> <p>New exception,</p> <pre><code>Sep 27, 2013 11:09:27 AM org.neo4j.server.logging.Logger log INFO: Starting Neo Server on port [7474] with [40] threads available 2013-09-27 11:09:27.665:INFO::Logging to STDERR via org.mortbay.log.StdErrLog Sep 27, 2013 11:09:27 AM org.neo4j.server.logging.Logger log INFO: Using database at C:\neo4j-community-1.9.3_bup\data\graph.db Exception in thread "main" java.lang.NoSuchFieldError: remote_shell_enabled at org.neo4j.server.database.Database.createDatabase(Database.java:77) at org.neo4j.server.database.Database.&lt;init&gt;(Database.java:55) at org.neo4j.server.NeoServerWithEmbeddedWebServer.startDatabase(NeoServerWithEmbeddedWebServer.java:179) at org.neo4j.server.NeoServerWithEmbeddedWebServer.start(NeoServerWithEmbeddedWebServer.java:93) at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:87) at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:76) at com.Neo4J.src.EmbeddedNeo4j.createDb(EmbeddedNeo4j.java:69) at com.Neo4J.src.EmbeddedNeo4j.main(EmbeddedNeo4j.java:41) </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload