2015-09-12 321 views
0

我在1.7.0 java的linux 64位服务器上运行neo4j v2.2.3。Neo4j服务器拒绝任何连接

服务器突然拒绝连接,请登录:

> 2015-09-11 15:39:52.306+0000 INFO [API] Remote interface ready and 
> available at [http://0.0.0.0:8474/] 15:24:19.844 [qtp346100719-748140] 
> WARN org.eclipse.jetty.http.HttpParser - badMessage: 400 Illegal 
> character 0x0 in state=METHOD in 
> 'JRMI\x00<<<\x02K>>>b/data/transactio...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' 
> for [email protected]{r=0,c=false,a=IDLE,uri=-} 
> 15:31:49.788 [qtp346100719-164] WARN 
> org.eclipse.jetty.http.HttpParser - badMessage: 400 Illegal character 
> 0x0 in state=METHOD in 
> 'JRMI\x00<<<\x02K>>>b/data/transactio...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' 
> for [email protected]{r=0,c=false,a=IDLE,uri=-} 
> 15:31:49.818 [qtp346100719-746043] WARN 
> org.eclipse.jetty.http.HttpParser - badMessage: 400 Illegal character 
> 0x0 in state=METHOD in 
> 'JRMI\x00<<<\x02K>>>b/data/transactio...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' 
> for [email protected]{r=0,c=false,a=IDLE,uri=-} 
> 15:36:19.818 [qtp346100719-753367] WARN 
> org.eclipse.jetty.http.HttpParser - badMessage: 400 Illegal character 
> 0x0 in state=METHOD in 
> 'JRMI\x00<<<\x02K>>>b/data/transactio...7ed9\\u4e86\\u5c0' for 
> [email protected]{r=0,c=false,a=IDLE,uri=-} 16:04:49.798 
> [qtp346100719-133] WARN org.eclipse.jetty.http.HttpParser - 
> badMessage: 400 Illegal character 0x0 in state=METHOD in 
> 'JRMI\x00<<<\x02K>>>b/data/transactio...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' 
> for [email protected]{r=0,c=false,a=IDLE,uri=-} 

在messages.log,大量交易的回滚

> 015-09-12 07:43:49.779+0000 INFO [o.n.s.r.t.TransactionRegistry]: 
    > Transaction with id 1322181 has been automatically rolled back. 
    > 2015-09-12 07:45:19.779+0000 INFO [o.n.s.r.t.TransactionRegistry]: 
    > Transaction with id 1328574 has been automatically rolled back. 
    > 2015-09-12 07:46:49.779+0000 INFO [o.n.s.r.t.TransactionRegistry]: 
    > Transaction with id 1331830 has been automatically rolled back. 
    > 2015-09-12 07:48:19.779+0000 INFO [o.n.s.r.t.TransactionRegistry]: 
    > Transaction with id 1277513 has been automatically rolled back. 
    > 2015-09-12 07:49:49.780+0000 INFO [o.n.s.r.t.TransactionRegistry]: 
    > Transaction with id 1341580 has been automatically rolled back. 
    > 2015-09-12 07:51:19.779+0000 INFO [o.n.s.r.t.TransactionRegistry]: 
    > Transaction with id 1344276 has been automatically rolled back. 
    > 2015-09-12 07:52:49.779+0000 INFO [o.n.s.r.t.TransactionRegistry]: 
    > Transaction with id 1344423 has been automatically rolled back. 
    > 2015-09-12 07:54:19.779+0000 INFO [o.n.s.r.t.TransactionRegistry]: 
    > Transaction with id 1313359 has been automatically rolled back. 
    > 2015-09-12 07:55:49.779+0000 INFO [o.n.s.r.t.TransactionRegistry]: 
    > Transaction with id 1344184 has been automatically rolled back. 
    > 2015-09-12 07:57:19.779+0000 INFO [o.n.s.r.t.TransactionRegistry]: 
    > Transaction with id 1287376 has been automatically rolled back. 
    > 2015-09-12 07:58:49.779+0000 INFO [o.n.s.r.t.TransactionRegistry]: 
    > Transaction with id 1344379 has been automatically rolled back. 
    > 2015-09-12 08:00:19.779+0000 INFO [o.n.s.r.t.TransactionRegistry]: 
    > Transaction with id 1303645 has been automatically rolled back. 
    > 2015-09-12 08:01:49.779+0000 INFO [o.n.s.r.t.TransactionRegistry]: 
    > Transaction with id 1310122 has been automatically rolled back. 
    > 2015-09-12 08:03:19.779+0000 INFO [o.n.s.r.t.TransactionRegistry]: 
    > Transaction with id 1326161 has been automatically rolled back. 
    > 2015-09-12 08:04:49.779+0000 INFO [o.n.s.r.t.TransactionRegistry]: 
    > Transaction with id 1339052 has been automatically rolled back. 
    > 2015-09-12 08:06:19.780+0000 INFO [o.n.s.r.t.TransactionRegistry]: 
    > Transaction with id 1346207 has been automatically rolled back. 
    > 2015-09-12 08:07:49.780+0000 INFO [o.n.s.r.t.TransactionRegistry]: 
    > Transaction with id 1346291 has been automatically rolled back. 
    > 2015-09-12 08:09:19.779+0000 INFO [o.n.s.r.t.TransactionRegistry]: 
    > Transaction with id 1319765 has been automatically rolled back. 
    > 2015-09-12 08:10:49.779+0000 INFO [o.n.s.r.t.TransactionRegistry]: 
    > Transaction with id 1322974 has been automatically rolled back. 
    > 2015-09-12 08:12:19.779+0000 INFO [o.n.s.r.t.TransactionRegistry]: 
    > Transaction with id 1329373 has been automatically rolled back. 
    > 2015-09-12 08:13:49.779+0000 INFO [o.n.s.r.t.TransactionRegistry]: 
    > Transaction with id 1332642 has been automatically rolled back. 

当我运行:

$bin/neo4j-shell -p 8474 
ERROR (-v for expanded information): 
     Connection refused 

可能重新启动将解决问题,但我想知道是什么问题?

非常感谢您的时间。

+1

1)neo4j-shell不使用http端口 - 通常使用端口1337. 2)您发送到neo4j实例的请求是什么类型?第一个日志片段表明你发送了一些奇怪的包。 –

+0

因为大量的一次写入API,我不能再现相同的错误,但你的答案确实帮助我,thx –

回答

0

这几乎看起来像你试图连接到http端口(默认7474)使用neo4j-shell。该shell使用默认为1337的不同端口。