Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/neo4j/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 启动org.neo4j.kernel.impl.factory.CommunityFacadeFactory时出错_Java_Neo4j - Fatal编程技术网

Java 启动org.neo4j.kernel.impl.factory.CommunityFacadeFactory时出错

Java 启动org.neo4j.kernel.impl.factory.CommunityFacadeFactory时出错,java,neo4j,Java,Neo4j,我有一个简单的java程序,试图连接到neo4j的本地实例,以创建一个示例数据库来使用,但我一直在使用它 Exception: Error starting org.neo4j.kernel.impl.factory.CommunityFacadeFactory, /home/mleonard/mbig/neodb/testeroo Trace:[Ljava.lang.StackTraceElement;@7ce7d377 堆栈跟踪是无用的,错误也没有太大帮助 The server is up

我有一个简单的java程序,试图连接到neo4j的本地实例,以创建一个示例数据库来使用,但我一直在使用它

Exception: Error starting org.neo4j.kernel.impl.factory.CommunityFacadeFactory, /home/mleonard/mbig/neodb/testeroo
Trace:[Ljava.lang.StackTraceElement;@7ce7d377
堆栈跟踪是无用的,错误也没有太大帮助

The server is up and running Starting Neo4j Server console-mode... 2015-08-11 15:28:06.466-0400 INFO Setting startup timeout to 120000ms 2015-08-11 15:28:23.311-0400 INFO Successfully started database 2015-08-11 15:28:25.920-0400 INFO Starting HTTP on port 7474 (24 threads available) 2015-08-11 15:28:26.972-0400 INFO Enabling HTTPS on port 7473 2015-08-11 15:28:28.247-0400 INFO Mounting static content at /webadmin 2015-08-11 15:28:28.704-0400 INFO Mounting static content at /browser 2015-08-11 15:28:30.321-0400 ERROR The class org.neo4j.server.rest.web.CollectUserAgentFilter is not assignable to the class com.sun.jersey.spi.container.ContainerRequestFilter. This class is ignored. 2015-08-11 15:28:31.677-0400 ERROR The class org.neo4j.server.rest.web.CollectUserAgentFilter is not assignable to the class com.sun.jersey.spi.container.ContainerRequestFilter. This class is ignored. 2015-08-11 15:28:32.165-0400 ERROR The class org.neo4j.server.rest.web.CollectUserAgentFilter is not assignable to the class com.sun.jersey.spi.container.ContainerRequestFilter. This class is ignored. 2015-08-11 15:28:33.031-0400 INFO Remote interface ready and available at http://localhost:7474/
你的类路径上有什么罐子?粘贴
graph.db/messages.log
中的相关片段。类路径上有哪些JAR?从
graph.db/messages.log
中粘贴相关代码段。
import java.io.File;

import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.RelationshipType;
import org.neo4j.graphdb.factory.GraphDatabaseFactory;

public class Main {

    private static enum RelTypes implements RelationshipType
    {
        WORKS,
        FRIENDS,
        NEMISIS
    }

    public  static void main(String[] args) 
    {
        System.out.println("Starting ARM4J");
        GraphDatabaseService db = null ;
        try
        {           
            db = new GraphDatabaseFactory().newEmbeddedDatabaseBuilder(new File("/home/mleonard/mbig/neodb/testeroo"))
                                            .loadPropertiesFromFile("/home/mleonard/mbig/neo4j-community-2.3.0-M02/conf/neo4j.properties")
                                            .newGraphDatabase();

            /*
            try( Transaction tx = db.beginTx() )
            {               
                Node matty = db.createNode();
                matty.setProperty("name", "Matthew");
                matty.setProperty("age", "31");
                matty.setProperty("sex", "male");

                Node jay = db.createNode();
                jay.setProperty("name", "Jay");;
                jay.setProperty("age", "35");
                jay.setProperty("sex", "male");

                org.neo4j.graphdb.Relationship r = matty.createRelationshipTo(jay, RelTypes.WORKS);
                r.setProperty("years", "2");

                tx.success();
            }
            */          
        }
        catch(Exception x)
        {
            System.out.println("Exception: " + x.getMessage());
            System.out.println("Trace:" + x.getStackTrace().toString());
        }
        finally
        {
            if( db != null )
            {
                db.shutdown();
            }
        }

        System.out.println("Stopping ARM4J");
    }
}