Neo4j服务器为LogEntryCommand抛出java.lang.ClassCastException

时间:2018-08-08 18:29:19

标签: java exception neo4j

Neo4j服务器在启动时引发异常rg.neo4j.kernel.impl.transaction.log.entry.LogEntryCommand cannot be cast to org.neo4j.kernel.impl.transaction.log.entry.LogEntryStart

我正在使用Neo4j 3.3.1版本。

以下是堆栈跟踪:

```

======== Neo4j 3.3.1 ========
2018-08-08 17:31:41.180+0000 INFO  Starting...
2018-08-08 17:31:42.497+0000 INFO  Bolt enabled on 0.0.0.0:7687.
2018-08-08 17:31:44.025+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@3aacf32a' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.kernel.impl.transaction.log.entry.LogEntryCommand cannot be cast to org.neo4j.kernel.impl.transaction.log.entry.LogEntryStart". Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@3aacf32a' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.kernel.impl.transaction.log.entry.LogEntryCommand cannot be cast to org.neo4j.kernel.impl.transaction.log.entry.LogEntryStart".
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@3aacf32a' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.kernel.impl.transaction.log.entry.LogEntryCommand cannot be cast to org.neo4j.kernel.impl.transaction.log.entry.LogEntryStart".
    at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68)
    at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:219)
    at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:111)
    at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:79)
    at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:32)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@3aacf32a' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.kernel.impl.transaction.log.entry.LogEntryCommand cannot be cast to org.neo4j.kernel.impl.transaction.log.entry.LogEntryStart".
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:466)
    at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
    at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:211)
    ... 3 more
Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory, /var/lib/neo4j/data/databases/graph.db
    at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:211)
    at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:126)
    at org.neo4j.server.CommunityNeoServer.lambda$static$0(CommunityNeoServer.java:58)
    at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:88)
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445)
    ... 5 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.recovery.Recovery@1c25b8a7' failed to initialize. Please see the attached cause exception "org.neo4j.kernel.impl.transaction.log.entry.LogEntryCommand cannot be cast to org.neo4j.kernel.impl.transaction.log.entry.LogEntryStart".
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:427)
    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:524)
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445)
    at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
    at org.neo4j.kernel.impl.transaction.state.DataSourceManager.start(DataSourceManager.java:100)
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445)
    at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
    at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:207)
    ... 9 more
Caused by: java.lang.ClassCastException: org.neo4j.kernel.impl.transaction.log.entry.LogEntryCommand cannot be cast to org.neo4j.kernel.impl.transaction.log.entry.LogEntryStart
    at org.neo4j.kernel.impl.transaction.log.PhysicalTransactionCursor.next(PhysicalTransactionCursor.java:76)
    at org.neo4j.kernel.impl.transaction.log.ReversedSingleFileTransactionCursor.sketchOutTransactionStartOffsets(ReversedSingleFileTransactionCursor.java:92)
    at org.neo4j.kernel.impl.transaction.log.ReversedSingleFileTransactionCursor.<init>(ReversedSingleFileTransactionCursor.java:79)
    at org.neo4j.kernel.impl.transaction.log.ReversedMultiFileTransactionCursor.lambda$fromLogFile$0(ReversedMultiFileTransactionCursor.java:89)
    at org.neo4j.kernel.impl.transaction.log.ReversedMultiFileTransactionCursor.next(ReversedMultiFileTransactionCursor.java:118)
    at org.neo4j.kernel.recovery.Recovery.init(Recovery.java:109)
    at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:406)
    ... 18 more
2018-08-08 17:31:44.027+0000 INFO  Neo4j Server shutdown initiated by request

```

以下是neo4j.conf中的一些配置: ```

dbms.tx_log.rotation.retention_policy=100M size
dbms.memory.pagecache.size=1G
dbms.memory.heap.max_size=4G
dbms.memory.heap.initial_size=512M
dbms.connectors.default_listen_address=0.0.0.0
dbms.connector.https.listen_address=0.0.0.0:7473
dbms.connector.http.listen_address=0.0.0.0:7474
dbms.connector.bolt.listen_address=0.0.0.0:7687

```

尽管如此,内存应该不是问题。

谁能指出我正确的方向。 预先感谢。

0 个答案:

没有答案