2015-09-12 373 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的不同端口。