homebrew neo4j not starting - java

I installed neo4j via homebrew, but when I want to start the server by typing
$ neo4j start
I get the following:
Started neo4j (pid 8480). By default, it is available at http://localhost:7474/
There may be a short delay until the server is ready.
See /usr/local/Cellar/neo4j/3.0.3/libexec/logs/neo4j.log for current status.
The content of the log file is added below (I apologize for the layout).[*1]
I'm using neo4j version 3.0.0-M02 and java version jdk1.8.0_20(information is included in .bash_profile). I'd need to have neo4j running on my Mac (OS X 10.11.5) for a project. I also tried installing it by downloading the .dmg file from the neo4js webiste, but again no luck (there I get the error
Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase#52c870fe' was successfully initialized, but failed to start. Please see attached cause exception.
Any help on this would be much appreciated.
[*1]
Content of neo4j.log file:
2016-06-25 10:27:34.675+0000 INFO Starting...
2016-06-25 10:27:35.146+0000 INFO Bolt enabled on localhost:7687.
2016-06-25 10:27:35.449+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase#17013b6f' was successfully initialized, but failed to start. Please see attached cause exception. Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase#17013b6f' was successfully initialized, but failed to start. Please see attached cause exception.
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase#17013b6f' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:217)
at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:87)
at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:66)
at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:28)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase#17013b6f' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:444)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:189)
... 3 more
Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.CommunityFacadeFactory, /usr/local/Cellar/neo4j/3.0.3/libexec/data/databases/graph.db
at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:144)
at org.neo4j.kernel.impl.factory.CommunityFacadeFactory.newFacade(CommunityFacadeFactory.java:40)
at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:108)
at org.neo4j.server.CommunityNeoServer.lambda$static$31(CommunityNeoServer.java:55)
at org.neo4j.server.CommunityNeoServer$$Lambda$43/1286783232.newGraphDatabase(Unknown Source)
at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:89)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434)
... 5 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.lifecycle.Lifecycle$Delegate#4a0448ef' failed to initialize. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:416)
at org.neo4j.kernel.lifecycle.LifeSupport.init(LifeSupport.java:62)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:98)
at org.neo4j.kernel.NeoStoreDataSource.start(NeoStoreDataSource.java:503)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
at org.neo4j.kernel.impl.transaction.state.DataSourceManager.start(DataSourceManager.java:99)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:140)
... 11 more
Caused by: java.lang.NoSuchMethodError: org.apache.lucene.analysis.core.WhitespaceAnalyzer: method <init>()V not found
at org.neo4j.index.impl.lucene.legacy.LuceneDataSource.<clinit>(LuceneDataSource.java:105)
at org.neo4j.index.impl.lucene.legacy.LuceneIndexImplementation.init(LuceneIndexImplementation.java:76)
at org.neo4j.kernel.lifecycle.Lifecycles$1.init(Lifecycles.java:37)
at org.neo4j.kernel.lifecycle.Lifecycle$Delegate.init(Lifecycle.java:63)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:406)
... 20 more

So, the Neo4j Page says to run $NEO4J_HOME/bin/neo4j console. Additionally I would run it as root (using su or sudo). Please check the write permissions of your neo4j folder also and that port 7474 is free to use.
Neo4j usually provides installation scrips. I believe for your version it is bin/neo4j-shared.sh

The stacktrace is quite clear, there's a classpath clash with a Lucene library. That NoSuchMethodError suggests you have another lucene library installed and visible in the classpath. This causes the classloader to load a different version from the library from the one Neo4J needs.
Caused by: java.lang.NoSuchMethodError: org.apache.lucene.analysis.core.WhitespaceAnalyzer: method <init>()V not found
at org.neo4j.index.impl.lucene.legacy.LuceneDataSource.<clinit>(LuceneDataSource.java:105)
at org.neo4j.index.impl.lucene.legacy.LuceneIndexImplementation.init(LuceneIndexImplementation.java:76)
at org.neo4j.kernel.lifecycle.Lifecycles$1.init(Lifecycles.java:37)
at org.neo4j.kernel.lifecycle.Lifecycle$Delegate.init(Lifecycle.java:63)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:406)
... 20 more
A few things to check:
Do you have lucene installed too?
Do you have any lucene libraries in the endorsed folder of the jdk?
Do you have a CLASSPATH variable including a lucene library?
Did you install more than 1 neo4j version from homebrew? (maybe this left old libraries installed)
Try to modify the jvm args neo4j receives, and add -verbose:class to see from where that class is loaded.

I just tried installing neo4j 3.0.3 on my Mac, worked seamlessly:
neo4j-javascript-driver mh$ brew upgrade neo4j
==> Upgrading 1 outdated package, with result:
neo4j 3.0.3
==> Upgrading neo4j
==> Downloading http://dist.neo4j.org/neo4j-community-3.0.3-unix.tar.gz
######################################################################## 100,0%
🍺 /usr/local/Cellar/neo4j/3.0.3: 91 files, 65.1M, built in 38 seconds
Ich:neo4j-javascript-driver mh$ export JAVA_HOME=`java_home -v 1.8`
Ich:neo4j-javascript-driver mh$ killall java
No matching processes belonging to you were found
Ich:neo4j-javascript-driver mh$ neo4j start
Starting Neo4j.
Started neo4j (pid 75890). By default, it is available at http://localhost:7474/
There may be a short delay until the server is ready.
See /usr/local/Cellar/neo4j/3.0.3/libexec/logs/neo4j.log for current status.
Ich:neo4j-javascript-driver mh$ less /usr/local/Cellar/neo4j/3.0.3/libexec/logs/neo4j.log
Ich:neo4j-javascript-driver mh$ less /usr/local/Cellar/neo4j/3.0.3/libexec/logs/debug.log
Ich:neo4j-javascript-driver mh$ neo4j console
Neo4j is already running (pid 75890).
Ich:neo4j-javascript-driver mh$ neo4j stop
Stopping Neo4j.. stopped
Ich:neo4j-javascript-driver mh$ neo4j console
Starting Neo4j.
2016-06-25 16:25:16.926+0000 INFO Starting...
2016-06-25 16:25:17.723+0000 INFO Bolt enabled on localhost:7687.
2016-06-25 16:25:20.667+0000 INFO Started.
2016-06-25 16:25:22.280+0000 INFO Remote interface available at http://localhost:7474/

Related

Did I build Java 10 wrong or is it something else? Running MapTool on Pi4 (nearly! something wrong with InteropFactoryN?)

I'm looking for a bit of Java help here.
I am trying to run MapTool on a Raspberry Pi 4. No mean feat -- I've installed ubuntu server, so I could get a 64 bit operating system. Then I had to build OpenJDK-9 so I could build OpenJDK-10 (a weekend I won't be getting back -- Maptool requires JDK10). Then I was ready to follow the instructions posted here: https://www.reddit.com/r/MapTool/comments/evua2p/maptool_on_the_raspberry_pi/
Those steps said:
1- download the JavaFX 11 Linux SDK (not armv6hf SDK) from here: https://gluonhq.com/products/javafx/
extract the zip and put the lib folder into the same folder where the MapTool jar is (here ~/MapTool/lib
)
to run MapTool, open a terminal there (~/MapTool/) and execute in a single line
java -cp "MapTool-1.7.0.jar:lib/*" net.rptools.maptool.client.LaunchInstructions
That almost worked. I get this error:
21:54:03.013 (MapTool.java:1555) [main] INFO net.rptools.maptool.client.MapTool - AppHome System Property: /home/ubuntu/.maptool/logs
21:54:03.016 (MapTool.java:1556) [main] INFO net.rptools.maptool.client.MapTool - Logging to: /home/ubuntu/.maptool/logs/maptool.log
21:54:03.020 (MapTool.java:1563) [main] INFO net.rptools.maptool.client.MapTool - getting MapTool version from manifest: 1.7.0
21:54:03.026 (MapTool.java:1568) [main] INFO net.rptools.maptool.client.MapTool - getting MapTool vendor from manifest: rptools
21:54:03.403 (MapTool.java:1638) [main] INFO net.rptools.maptool.client.MapTool - MapTool version: 1.7.0
21:54:03.405 (MapTool.java:1641) [main] INFO net.rptools.maptool.client.MapTool - MapTool vendor: rptools
InteropFactory: cannot load com.sun.javafx.embed.swing.newimpl.InteropFactoryN
Graphics Device initialization failed for : es2, sw
Error initializing QuantumRenderer: no suitable pipeline found
java.lang.RuntimeException: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
at com.sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.java:280)
at com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:222)
at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:260)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:267)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:158)
at javafx.embed.swing.JFXPanel.initFx(JFXPanel.java:251)
at javafx.embed.swing.JFXPanel.<init>(JFXPanel.java:267)
at net.rptools.maptool.client.swing.SplashScreen.<init>(SplashScreen.java:36)
at net.rptools.maptool.client.MapTool.main(MapTool.java:1693)
at net.rptools.maptool.client.LaunchInstructions.main(LaunchInstructions.java:50)
Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:94)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:124)
at java.base/java.lang.Thread.run(Thread.java:844)
I'm guessing I either need to add some argument to the launch command or I didn't build the image for JDK10 completely. Can anyone help?
So, in the end, as of this date (18 Jul 2020) it doesn't make sense to use Ubuntu server for the Pi 4 -- too much work for not enough speed payoff. A guy on reddit got it working using the 32 bit Raspian release. I'm reposting his guidelines below . They work. https://www.reddit.com/r/MapTool/comments/evua2p/maptool_on_the_raspberry_pi/
download the MapTool 1.7 .jar version and save it in a new folder (e.g. ~/MapTool/MapTool-1.7.0.jar)
remove any currently installed OpenJDK versions
sudo apt purge openjdk*
install OpenJDK version 10 (MapTool still uses SDK version 10 at least for compilation)
sudo apt install openjdk-10-jdk
download the JavaFX 11 Linux SDK (not armv6hf SDK) from here: https://gluonhq.com/products/javafx/
extract the zip and put the lib folder into the same folder where the MapTool jar is (here ~/MapTool/lib)
to run MapTool, open a terminal there (~/MapTool/) and execute in a single line
java -cp "MapTool-1.7.0.jar:lib/*" net.rptools.maptool.client.LaunchInstructions
(put spaces where there are linebreaks in this text)
to make launching more convenient, put the command in an executable bash file
Do you really need to build the JDK yourself? BellSoft, AdoptOpenJDK, Azul all provide different JDK's you can install on ARM. For some more info and install scripts for BellSoft LibericaJDK, check https://webtechie.be/post/2020-04-08-installing-java-and-javafx-on-raspberry-pi/

JXBrowser failed to launch in Ubuntu18.04

I tried to launch the application from JXBrowser in ubuntu 18.04 OS. It is giving the following error. But it is working fine with other versions of Ubuntu.
2019-02-19 21:05:20,407 [Thread-1] ERROR c.m.m.g.w.jxbrowser.JXBrowserHandler - JXBrowser failed to launch. Failed to start IPC process. com.teamdev.jxbrowser.chromium.internal.ipc.IPCException: Failed to start IPC process. at com.teamdev.jxbrowser.chromium.internal.ipc.d.run(SourceFile:208) ~[jxbrowser-6.22.1.jar:6.22.1] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_162] Caused by: java.lang.IllegalStateException: Missing dependendecies have been detected. Check the log for details. at com.teamdev.jxbrowser.chromium.internal.ipc.ExternalChromiumProcessLinux.preProcessRun(SourceFile:3150) ~[jxbrowser-6.22.1.jar:6.22.1] at com.teamdev.jxbrowser.chromium.internal.ipc.ExternalChromiumProcess.doStart(SourceFile:62) ~[jxbrowser-6.22.1.jar:6.22.1] at com.teamdev.jxbrowser.chromium.internal.ipc.ChromiumProcess.start(SourceFile:235) ~[jxbrowser-6.22.1.jar:6.22.1] at com.teamdev.jxbrowser.chromium.internal.ipc.d.run(SourceFile:199) ~[jxbrowser-6.22.1.jar:6.22.1] ... 1 common frames omitted
JxBrowser 6.22.1 is based on Chromium 64 engine which requires some dependencies installed in the system.
The issue should be fixed after running of those commands:
sudo apt install libgconf2-4
or
sudo apt-get install -f
The dependency issue on Linux is fixed in Chromium 67+ versions. We can provide you with a JxBrowser build which includes an updated Chromium engine if you contact us at customer-care#teamdev.com

ElasticSearch java.lang.IllegalStateException: jar hell

I was able to run my application previously but since today when i tried some experiments it gives me jar hell error out of sudden. Which I have no idea what this exception about, and now my project couldn't work anymore. This is the error causes:
44 [main] DEBUG org.elasticsearch.bootstrap - examining jar: /usr/local/apache-tomcat-7.0.62/lib/annotations-api.jar
55 [main] DEBUG org.elasticsearch.bootstrap - examining jar: /usr/local/apache-tomcat-7.0.62/lib/catalina-ant.jar
57 [main] DEBUG org.elasticsearch.bootstrap - examining jar: /usr/local/apache-tomcat-7.0.62/lib/catalina-ha.jar
59 [main] DEBUG org.elasticsearch.bootstrap - examining jar: /usr/local/apache-tomcat-7.0.62/lib/catalina-tribes.jar
62 [main] DEBUG org.elasticsearch.bootstrap - examining jar: /usr/local/apache-tomcat-7.0.62/lib/catalina.jar
Exception in thread "main" java.lang.IllegalStateException: failed to load bundle [] due to jar hell
at org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:338)
at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:109)
at org.elasticsearch.node.Node.<init>(Node.java:146)
at org.elasticsearch.node.Node.<init>(Node.java:128)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:145)
at com.elastic.Main.main(Main.java:38)
Caused by: java.lang.IllegalStateException: jar hell!
class: org.apache.catalina.util.Base64
jar1: /usr/local/apache-tomcat-7.0.62/lib/catalina-ant.jar
jar2: /usr/local/apache-tomcat-7.0.62/lib/catalina.jar
at org.elasticsearch.bootstrap.JarHell.checkClass(JarHell.java:280)
at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:186)
at org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:336)
... 5 more
Why is the jar hell occurring? I never seen this before in my developer life and my application was workable before today. Am I missing something important to implement elasticsearch? Here is my code snippet.
Settings.Builder settings = Settings.settingsBuilder();
settings.put("path.home", Paths.get("").toAbsolutePath().toString() + File.separator + "resource" + File.separator + "elasticsearch-2.1.2");
settings.put("cluster.name","mySearch");
Node node = NodeBuilder.nodeBuilder().settings(settings).build().start();
Client client = node.client();
Any helps or clues are welcome and greatly appreciate
EDIT 1:
I was not using VM argument to determine the ES home path as I need to take the project into different paths and platforms when I transferring project.
EDIT 2:
I tried to change my project with elastic home path in VM argument also won't work anymore because I did following the solution that mentioned with this link, but error still raise.
Try to use:
-Dtests.jarhell.check=false
Remark: It works with my Elasticsearch 2.4. I saw comments, that it is not available in all Elasticsearch versions (see Elasticsearch jar hell when writing integration tests)
I got the same error message with catalina.jar conflicting with catalina-ant.jar. So, the quick fix was to rename catalina-ant.jar to catalina-ant.jar.orig in the $TOMCAT/lib folder.
Tomcat is still running for me, even with the one library missing.

Neo4j : Running WebUI on a predefined database

OS : Kubuntu 15.10
Neo4J Version : 2.3.1
Java Version : JDK 1.8
There are two ways of running a neo4j instance.
1. Server
2. Local
In server we need to run /bin/neo4j start and the path specified in the server config file needs to be empty, else it will throw error
In local mode i.e shell mode, /bin/neo4j-shell again we can run localy or we can specify the ip:port, unfotunately we cannot specify ip:port with db:path.
I am following this tutorial: http://www.tutorialspoint.com/neo4j/neo4j_native_java_api_example.htm, in the end, for windows there is a GUI where in we can select the database and we can view in Web Gui localhost:7474
Question:
How to start a server locally/remote with WebUI Admin Console on a pre-existing neo4j database?
Edit:
Neo4J.java
package com.tp.neo4j.java.examples;
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.Node;
import org.neo4j.graphdb.Relationship;
import org.neo4j.graphdb.Transaction;
import org.neo4j.graphdb.factory.GraphDatabaseFactory;
public class Neo4J {
public static void main(String[] args) {
GraphDatabaseFactory dbFactory = new GraphDatabaseFactory();
GraphDatabaseService db= dbFactory.newEmbeddedDatabase("data/graph.db");
try (Transaction tx = db.beginTx()) {
Node javaNode = db.createNode(Tutorials.JAVA);
javaNode.setProperty("TutorialID", "JAVA001");
javaNode.setProperty("Title", "Learn Java");
javaNode.setProperty("NoOfChapters", "25");
javaNode.setProperty("Status", "Completed");
Node scalaNode = db.createNode(Tutorials.SCALA);
scalaNode.setProperty("TutorialID", "SCALA001");
scalaNode.setProperty("Title", "Learn Scala");
scalaNode.setProperty("NoOfChapters", "20");
scalaNode.setProperty("Status", "Completed");
Relationship relationship = javaNode.createRelationshipTo
(scalaNode,TutorialRelationships.JVM_LANGIAGES);
relationship.setProperty("Id","1234");
relationship.setProperty("OOPS","YES");
relationship.setProperty("FP","YES");
tx.success();
}
System.out.println("Done successfully");
}
}
Server properties:
org.neo4j.server.database.location=data/graph.db
Neo4j properties:
allow_store_upgrade=true
remote_shell_port=1337
Embedded Server properties in Java:
GraphDatabaseService db =dbFactory.newEmbeddedDatabase(new File("/opt/neo4j/data/graph.db"));
Steps to reproduce the error:
Run the Java Application. It creates db in the specified path.
Modify the server properties in conf folder to point to the path specified in java
Start neo4j : sudo neo4j start
[Neo4J starts successfully if the db path mentioned in the server properties is empty]
Error
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
Starting Neo4j Server.../opt/neo4j/data/log was missing, recreating...
WARNING: not changing user
process [3484]... waiting for server to be ready.... Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.
Log:
2015-12-29 07:35:55.276+0530 INFO Successfully shutdown Neo4j Server
2015-12-29 07:35:55.277+0530 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase#4ae673d' was successfully initialized, but failed to start. Please see attached cause exception. Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase#4ae673d' was successfully initialized, but failed to start. Please see attached cause exception.
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase#4ae673d' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:67)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:234)
at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:97)
at org.neo4j.server.CommunityBootstrapper.start(CommunityBootstrapper.java:48)
at org.neo4j.server.CommunityBootstrapper.main(CommunityBootstrapper.java:35)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase#4ae673d' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:462)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:194)
... 3 more
Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.CommunityFacadeFactory, /opt/neo4j/data/graph.db
at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:143)
at org.neo4j.kernel.impl.factory.CommunityFacadeFactory.newFacade(CommunityFacadeFactory.java:43)
at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:108)
at org.neo4j.server.CommunityNeoServer$1.newGraphDatabase(CommunityNeoServer.java:66)
at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:95)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:452)
... 5 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.NeoStoreDataSource#2895e461' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:462)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111)
at org.neo4j.kernel.impl.transaction.state.DataSourceManager.start(DataSourceManager.java:112)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:452)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111)
at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:139)
... 10 more
Caused by: org.neo4j.kernel.impl.storemigration.StoreUpgrader$UnexpectedUpgradingStoreVersionException: '/opt/neo4j/data/graph.db/neostore.nodestore.db' has a store version number that we cannot upgrade from. Expected 'v0.A.3' but file is version '\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00'.
at org.neo4j.kernel.impl.storemigration.UpgradableDatabase.checkUpgradeable(UpgradableDatabase.java:96)
at org.neo4j.kernel.impl.storemigration.StoreUpgrader.migrateIfNeeded(StoreUpgrader.java:149)
at org.neo4j.kernel.NeoStoreDataSource.upgradeStore(NeoStoreDataSource.java:636)
at org.neo4j.kernel.NeoStoreDataSource.start(NeoStoreDataSource.java:527)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:452)
... 15 more
Note: We can import only csv files, we cannot import a pre-existing neo4j db.
Note: Tried Java Rest Binding, but it seems to have lot issues, Maven issue, dependency issue.
Not really sure what you're asking. You can run Neo4j with the Admin interface on database files on disk by setting the database path in conf/neo4j-server.properties pointing to your database store location.
Answer:
Make sure the jdbc driver version matches your neo4j server version.
Neo4J Server download: Neo4j v2.3.1
POM Dependency
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j</artifactId>
<version>2.3.1</version>
</dependency>

Unable to start Neo4j on Windows, no error messages

I'm using the following on Windows 7:
neo4j-community-1.9.2
Java 7 Update 25
I have Windows Firewall disabled.
When I start Neo4j.bat, both as Administrator and normally, I get the following message:
c:\Tools\neo4j\bin>Neo4j.bat
28/07/13 9:34:27 PM org.neo4j.server.AbstractNeoServer INFO: Setting startup tim
eout to: 120000ms based on -1
A blank Java console window pops up, no messages, then the window disappears after a minute or so.
When I go to http://localhost:7474/, I just get a server not found error.
If I try to install it as a service, the service wouldn't start.
Any ideas what I need to do to start Neo4j? I see here that Neo4j 1.9 does support Java 7:
http://blog.neo4j.org/2013/03/neo4j-19m05-released-wrapping-up.html
base.bat correctly points to windows-service-wrapper-5.jar, so not the windows-service-wrapper-*.jar problem that some people have had in the past. It would be helpful if it outputted an error message.
I just tried it with neo4j 2.0 milestone, and it didn't make any difference. The Java window pops up with no messages, http://localhost:7474/ gets a server not found error, then the Java window closes after a minute or two.
I added JAVA_HOME and JRE_HOME system variables, made no difference. I think I would get an error if Neo4j was not able to locate Java anyway.
I've fixed it.
With help from Neo4j's Google Group, I looked at the logs in data/logs/*.log and data/graph.db/messages.log, and found the following exception:
Caused by: java.rmi.server.ExportException: Port already in use: 1337; nested exception is:
java.net.BindException: Address already in use: JVM_Bind
Once I disabled my other service that uses that port, Neo4j's web admin at http://localhost:7474 worked. I then found out port 1337 is used by Neo4j's remote shell, I disabled it by adding enable_remote_shell = false to neo4j.properties, then I was able to have both Neo4j and my other service running.
I'm using the version 2.2.1 community edition of Neo4j on Windows 7, Java 1.8 update 45
In my case the log file messages.log was under default.graphdb directory. In there, you'll see the root cause of the problem.

Categories