来自服务器,Neo4j Rest客户端的文件意外结束

时间:2014-04-06 05:14:22

标签: java rest neo4j

我正在写一个Neo4j客户端,我在两台不同的机器(Windows操作系统)上运行Neo4j客户端和服务器。有时(多次)我发出查询(我使用java-rest-bind api并发出Cypher查询),来自服务器的意外文件结束引发异常。有什么解释吗? (我的整个数据大小是10G但是我访问1个节点并且每个事务计算大约200个关系) 这是完全例外:

Stdout: com.sun.jersey.api.client.ClientHandlerException: java.net.SocketException: Unexpected end of file from server
Stdout:     at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:149)
Stdout:     at org.neo4j.rest.graphdb.UserAgent$1.handle(UserAgent.java:68)
Stdout:     at com.sun.jersey.api.client.Client.handle(Client.java:648)
Stdout:     at com.sun.jersey.api.client.WebResource.handle(WebResource.java:670)
Stdout:     at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
Stdout:     at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:553)
Stdout:     at org.neo4j.rest.graphdb.ExecutingRestRequest.post(ExecutingRestRequest.java:151)
Stdout:     at org.neo4j.rest.graphdb.ExecutingRestAPI.query(ExecutingRestAPI.java:547)
Stdout:     at org.neo4j.rest.graphdb.ExecutingRestAPI.query(ExecutingRestAPI.java:568)
Stdout:     at org.neo4j.rest.graphdb.RestAPIFacade.query(RestAPIFacade.java:235)
Stdout:     at org.neo4j.rest.graphdb.query.RestCypherQueryEngine.query(RestCypherQueryEngine.java:50)
Stdout:     at Neo4j.Neo4jRestClient2.viewProfile(Neo4jRestClient2.java:440)
Stdout:     at edu.usc.bg.base.DBWrapper.viewProfile(DBWrapper.java:101)
Stdout:     at edu.usc.bg.workloads.CoreWorkload.doActionGetProfile(CoreWorkload.java:2329)
Stdout:     at edu.usc.bg.workloads.CoreWorkload.doTransaction(CoreWorkload.java:1061)
Stdout:     at edu.usc.bg.base.ClientThread.run(ClientThread.java:201)
Stdout: Caused by: java.net.SocketException: Unexpected end of file from server
Stdout:     at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
Stdout:     at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
Stdout:     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
Stdout:     at java.net.HttpURLConnection.getResponseCode(Unknown Source)
Stdout:     at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:240)
Stdout:     at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:147)
Stdout:     ... 15 more

0 个答案:

没有答案