【发布时间】:2018-08-24 11:56:48
【问题描述】:
我在研究项目中使用 GraphDB Free 8.4.1,但有时它无法响应请求。 GraphDB 日志中没有错误,也没有异常,GraphDB 以默认配置作为服务器+工作台运行。
但是,我在组件中有异常,即请求 GraphDB 服务器。
例外是:
org.eclipse.rdf4j.repository.RepositoryException: org.apache.http.NoHttpResponseException: The target server failed to respond
at org.eclipse.rdf4j.repository.http.HTTPRepositoryConnection.exportStatements(HTTPRepositoryConnection.java:287)
at org.eclipse.rdf4j.repository.http.HTTPRepositoryConnection.getStatements(HTTPRepositoryConnection.java:269)
at x.y.semantic.Repository.loadGraph(Repository.java:90)
发生异常的一段代码:
ValueFactory factory = SimpleValueFactory.getInstance();
RepositoryConnection connection = repository.getConnection();
// exception happens in getStatements here:
RepositoryResult<Statement> result = connection.getStatements(null, null, null, true, factory.createIRI(contextURI));
请您帮我确定问题出在哪里?
非常感谢!
【问题讨论】:
-
我假设
resposity.getConnection是第 90 行? -
第 90 行是 connection.getStatements
标签: graphdb