Neo4j - org.neo4j.io.pagecache.impl.SingleFilePageSwapperFactory

Я сталкиваюсь с этой странной ошибкой при создании объекта GraphDB в Java. Моя версия neo4j: 2.2.5

Мой код:

public static void main(String[] args) throws FileNotFoundException,
        IOException, ParseException {
    GraphDatabaseService graphdb = new GraphDatabaseFactory()
            .newEmbeddedDatabase(dbLocation);
    System.out.println("GraphDb started");

Но он выдает следующую ошибку:

Exception in thread "main" java.lang.NoSuchMethodError: org.neo4j.io.pagecache.impl.SingleFilePageSwapperFactory.<init>(Lorg/neo4j/io/fs/FileSystemAbstraction;)V
at org.neo4j.kernel.impl.pagecache.ConfiguringPageCacheFactory.<init>(ConfiguringPageCacheFactory.java:47)
at org.neo4j.kernel.InternalAbstractGraphDatabase.createPageCache(InternalAbstractGraphDatabase.java:715)
at org.neo4j.kernel.InternalAbstractGraphDatabase.create(InternalAbstractGraphDatabase.java:486)
at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:324)
at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:59)
at org.neo4j.graphdb.factory.GraphDatabaseFactory.newDatabase(GraphDatabaseFactory.java:108)
at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:95)
at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:176)
at org.neo4j.graphdb.factory.GraphDatabaseFactory.newEmbeddedDatabase(GraphDatabaseFactory.java:67)
at com.spnotes.kafka.Readlog.main(Readlog.java:26)

Ранее мой код работал нормально. Невозможно понять причину. Спасибо

1 ответ

Просто похоже на проблему с упаковкой, в которой у вас есть jar для разных версий / сборок на classpath

Другие вопросы по тегам