2015-10-14 164 views
0

我正在使用Neo4j 2.3.0-M03社区版本。我已经使用neo4j导入工具创建了一个数据库。现在,当我要启动neo4j服务器时,它的失败。有什么建议?提前致谢!Neo4j服务器未启动:

启动Neo4j服务器...警告:不会更改用户 进程[21597] ...等待服务器准备就绪.........在120秒内无法启动。 Neo4j服务器可能启动失败,请检查日志。

的日志如下:

2015-10-14 14:55:35.438-0400 INFO No SSL certificate found, generating a self-signed certificate.. 
14:55:35.936 [main] DEBUG i.n.u.i.l.InternalLoggerFactory - Using SLF4J as the default logging framework 
14:55:36.105 [main] DEBUG i.n.util.internal.PlatformDependent0 - java.nio.Buffer.address: available 
14:55:36.106 [main] DEBUG i.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available 
14:55:36.107 [main] DEBUG i.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available 
14:55:36.107 [main] DEBUG i.n.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: true 
14:55:36.108 [main] DEBUG i.n.util.internal.PlatformDependent - Java version: 7 
14:55:36.108 [main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noUnsafe: false 
14:55:36.109 [main] DEBUG i.n.util.internal.PlatformDependent - sun.misc.Unsafe: available 
14:55:36.109 [main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noJavassist: false 
14:55:36.110 [main] DEBUG i.n.util.internal.PlatformDependent - Javassist: unavailable 
14:55:36.110 [main] DEBUG i.n.util.internal.PlatformDependent - You don't have Javassist in your class path or you don't have enough permission to load dynamically generated classes. Please check the configuration for better performance. 
14:55:36.110 [main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.tmpdir: /tmp (java.io.tmpdir) 
14:55:36.110 [main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model) 
14:55:36.110 [main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false 
14:55:36.119 [main] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetectionLevel: simple 
14:55:36.135 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: unpooled 
14:55:36.135 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 65536 
2015-10-14 14:55:41.341-0400 INFO Successfully started database 
2015-10-14 14:55:41.405-0400 INFO Starting HTTP on port 7474 (32 threads available) 
2015-10-14 14:55:41.659-0400 INFO Successfully shutdown Neo4j Server 
2015-10-14 14:55:42.224-0400 INFO Successfully stopped database 
2015-10-14 14:55:42.227-0400 ERROR Failed to start Neo4j: Starting Neo4j failed: tried to access field org.neo4j.server.rest.repr.RepresentationFormat.mediaType from class org.neo4j.server.rest.repr.RepresentationFormatRepository Starting Neo4j failed: tried to access field org.neo4j.server.rest.repr.RepresentationFormat.mediaType from class org.neo4j.server.rest.repr.RepresentationFormatRepository 
org.neo4j.server.ServerStartupException: Starting Neo4j failed: tried to access field org.neo4j.server.rest.repr.RepresentationFormat.mediaType from class org.neo4j.server.rest.repr.RepresentationFormatRepository 
     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:96) 
     at org.neo4j.server.CommunityBootstrapper.start(CommunityBootstrapper.java:48) 
     at org.neo4j.server.CommunityBootstrapper.main(CommunityBootstrapper.java:35) 
Caused by: java.lang.IllegalAccessError: tried to access field org.neo4j.server.rest.repr.RepresentationFormat.mediaType from class org.neo4j.server.rest.repr.RepresentationFormatRepository 
     at org.neo4j.server.rest.repr.RepresentationFormatRepository.<init>(RepresentationFormatRepository.java:46) 
     at org.neo4j.server.AbstractNeoServer.createDefaultInjectables(AbstractNeoServer.java:641) 
     at org.neo4j.server.AbstractNeoServer.configureWebServer(AbstractNeoServer.java:360) 
     at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:216) 
     ... 3 more 

回答

0

好像在Neo4j的安装目录下的lib文件夹一些权限问题。 尝试给neo4j安装文件夹提供完整权限。

也建议使用稳定版本而不是里程碑版本。

+0

感谢您的建议。但在我尝试使用Traversal API在我的数据库上实现BFS遍历之前,它工作正常。我在我的jdk lib文件夹中创建了Neo4j库文件的软链接,以便让它们在我的应用程序中可见。然后我的代码运行良好,从数据库中获取遍历路径。但是,当我再次尝试运行服务器以尝试Neo4j-shell中的某些密码时。它给这个错误。 –

0

我可以修复它。我的嵌入式数据库出现了一些问题。我试图用默认的graph.db运行服务器,并且运行成功。现在我必须确定使用导入工具创建的嵌入式数据库有什么问题。