首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >RDF / lucenesail错误: org.openrdf.query.QueryEvaluationException: java.util.ConcurrentModificationException

RDF / lucenesail错误: org.openrdf.query.QueryEvaluationException: java.util.ConcurrentModificationException
EN

Stack Overflow用户
提问于 2016-09-15 23:49:35
回答 1查看 96关注 0票数 1

我们在90%的http://www.openrdf.org/contrib/lucenesail#查询中使用rdf。我想看看是否有人知道如何修复/sesame-data/openrdf-sesame/logs/main.log中的错误"org.openrdf.query.QueryEvaluationException: java.util.ConcurrentModificationException“。当错误发生时,紧随其后的是rdf服务器CPU使用率迅速上升、rdf服务器无响应以及必须重新启动服务器。它似乎是随机发生的,与特定的查询无关。我想知道这个错误是否与使用lucenesail与rdf数据交互有关,因为我们直到将查询转换为lucenesail查询后才看到这些错误。将非常感谢您的意见。谢谢您抽时间见我。这是一个完整的错误跟踪:

代码语言:javascript
复制
    [ERROR] 2016-09-08 10:07:38,826 [repositories/NwsRDFRepo] LuceneTripleSource: Error getting statements for http://acfews.com/content/41806958 http://acfews.com/content/type "Image"^^<htt
    p://www.w3.org/2001/XMLSchema#token>java.util.ConcurrentModificationException: null
            at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:886)
            at java.util.ArrayList$Itr.next(ArrayList.java:836)
            at org.openrdf.model.impl.TreeModel.choose(TreeModel.java:474)
            at org.openrdf.model.impl.TreeModel.matchPattern(TreeModel.java:406)
            at org.openrdf.model.impl.TreeModel.contains(TreeModel.java:250)
            at org.openrdf.sail.nativerdf.MemoryOverflowModel.contains(MemoryOverflowModel.java:127)
            at org.openrdf.model.impl.FilteredModel.contains(FilteredModel.java:157)
            at org.openrdf.model.impl.AbstractModel.isEmpty(AbstractModel.java:58)
            at org.openrdf.sail.base.SailDatasetImpl.difference(SailDatasetImpl.java:286)
            at org.openrdf.sail.base.SailDatasetImpl.getStatements(SailDatasetImpl.java:265)
            at org.openrdf.sail.base.DelegatingSailDataset.getStatements(DelegatingSailDataset.java:79)
            at org.openrdf.sail.base.DelegatingSailDataset.getStatements(DelegatingSailDataset.java:79)
            at org.openrdf.sail.base.UnionSailDataset.getStatements(UnionSailDataset.java:111)
            at org.openrdf.sail.base.SailSourceConnection.getStatementsInternal(SailSourceConnection.java:258)
            at org.openrdf.sail.helpers.SailConnectionBase.getStatements(SailConnectionBase.java:328)
            at org.openrdf.sail.lucene.LuceneTripleSource.getStatements(LuceneTripleSource.java:284)
            at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:517)
            at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:226)
            at org.openrdf.query.algebra.evaluation.iterator.JoinIterator.<init>(JoinIterator.java:54)
            at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:861)
            at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:824)
            at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:232)
            at org.openrdf.query.algebra.evaluation.iterator.LeftJoinIterator.<init>(LeftJoinIterator.java:65)
            at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:883)
            at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:827)
            at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:232)
            at org.openrdf.query.algebra.evaluation.iterator.LeftJoinIterator.<init>(LeftJoinIterator.java:65)
            at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:883)
            at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:827)
            at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:232)
            at org.openrdf.query.algebra.evaluation.iterator.LeftJoinIterator.getNextElement(LeftJoinIterator.java:88)
            at org.openrdf.query.algebra.evaluation.iterator.LeftJoinIterator.getNextElement(LeftJoinIterator.java:33)
            at info.aduna.iteration.LookAheadIteration.lookAhead(LookAheadIteration.java:91)
            at info.aduna.iteration.LookAheadIteration.hasNext(LookAheadIteration.java:60)
            at org.openrdf.query.algebra.evaluation.iterator.LeftJoinIterator.getNextElement(LeftJoinIterator.java:80)
            at org.openrdf.query.algebra.evaluation.iterator.LeftJoinIterator.getNextElement(LeftJoinIterator.java:33)
            at info.aduna.iteration.LookAheadIteration.lookAhead(LookAheadIteration.java:91)
            at info.aduna.iteration.LookAheadIteration.hasNext(LookAheadIteration.java:60)
            at org.openrdf.query.algebra.evaluation.iterator.LeftJoinIterator.getNextElement(LeftJoinIterator.java:80)
            at org.openrdf.query.algebra.evaluation.iterator.LeftJoinIterator.getNextElement(LeftJoinIterator.java:33)
            at info.aduna.iteration.LookAheadIteration.lookAhead(LookAheadIteration.java:91)
            at info.aduna.iteration.LookAheadIteration.hasNext(LookAheadIteration.java:60)
            at org.openrdf.query.algebra.evaluation.iterator.LeftJoinIterator.getNextElement(LeftJoinIterator.java:80)
            at org.openrdf.query.algebra.evaluation.iterator.LeftJoinIterator.getNextElement(LeftJoinIterator.java:33)
            at info.aduna.iteration.LookAheadIteration.lookAhead(LookAheadIteration.java:91)
            at info.aduna.iteration.LookAheadIteration.hasNext(LookAheadIteration.java:60)
            at info.aduna.iteration.ConvertingIteration.hasNext(ConvertingIteration.java:73)
            at info.aduna.iteration.ConvertingIteration.hasNext(ConvertingIteration.java:73)
            at info.aduna.iteration.IterationWrapper.hasNext(IterationWrapper.java:68)
            at info.aduna.iteration.FilterIteration.findNextElement(FilterIteration.java:79)
            at info.aduna.iteration.FilterIteration.hasNext(FilterIteration.java:54)
            at info.aduna.iteration.IterationWrapper.hasNext(IterationWrapper.java:68)
            at info.aduna.iteration.LimitIteration.hasNext(LimitIteration.java:73)
            at info.aduna.iteration.IterationWrapper.hasNext(IterationWrapper.java:68)
            at info.aduna.iteration.IterationWrapper.hasNext(IterationWrapper.java:68)
            at org.openrdf.query.QueryResults.report(QueryResults.java:155)
            at org.openrdf.http.server.repository.TupleQueryResultView.renderInternal(TupleQueryResultView.java:110)
            at org.openrdf.http.server.repository.QueryResultView.render(QueryResultView.java:84)
            at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1228)
            at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1011)
            at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:955)
            at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
            at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
            at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:868)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
            at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at com.github.ziplet.filter.compression.CompressingFilter.doFilter(CompressingFilter.java:300)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
            at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
            at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
            at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
            at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at java.lang.Thread.run(Thread.java:745)

    [ERROR] 2016-09-08 10:07:38,827 [repositories/NwsRDFRepo] Query evaluation error
    org.openrdf.query.QueryEvaluationException: java.util.ConcurrentModificationException
            at org.openrdf.sail.lucene.LuceneTripleSource.getStatements(LuceneTripleSource.java:294)
            at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:517)
            at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:226)
            at org.openrdf.query.algebra.evaluation.iterator.JoinIterator.<init>(JoinIterator.java:54)
            at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:861)
            at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:824)
            at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:232)
            at org.openrdf.query.algebra.evaluation.iterator.LeftJoinIterator.<init>(LeftJoinIterator.java:65)
            at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:883)
            at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:827)
            at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:232)
            at org.openrdf.query.algebra.evaluation.iterator.LeftJoinIterator.<init>(LeftJoinIterator.java:65)
            at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:883)
            at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:827)
            at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl.evaluate(EvaluationStrategyImpl.java:232)
            at org.openrdf.query.algebra.evaluation.iterator.LeftJoinIterator.getNextElement(LeftJoinIterator.java:88)
            at org.openrdf.query.algebra.evaluation.iterator.LeftJoinIterator.getNextElement(LeftJoinIterator.java:33)
            at info.aduna.iteration.LookAheadIteration.lookAhead(LookAheadIteration.java:91)
            at info.aduna.iteration.LookAheadIteration.hasNext(LookAheadIteration.java:60)
            at org.openrdf.query.algebra.evaluation.iterator.LeftJoinIterator.getNextElement(LeftJoinIterator.java:80)
            at org.openrdf.query.algebra.evaluation.iterator.LeftJoinIterator.getNextElement(LeftJoinIterator.java:33)
            at info.aduna.iteration.LookAheadIteration.lookAhead(LookAheadIteration.java:91)
            at info.aduna.iteration.LookAheadIteration.hasNext(LookAheadIteration.java:60)
            at org.openrdf.query.algebra.evaluation.iterator.LeftJoinIterator.getNextElement(LeftJoinIterator.java:80)
            at org.openrdf.query.algebra.evaluation.iterator.LeftJoinIterator.getNextElement(LeftJoinIterator.java:33)
            at info.aduna.iteration.LookAheadIteration.lookAhead(LookAheadIteration.java:91)
            at info.aduna.iteration.LookAheadIteration.hasNext(LookAheadIteration.java:60)
            at org.openrdf.query.algebra.evaluation.iterator.LeftJoinIterator.getNextElement(LeftJoinIterator.java:80)
            at org.openrdf.query.algebra.evaluation.iterator.LeftJoinIterator.getNextElement(LeftJoinIterator.java:33)
            at info.aduna.iteration.LookAheadIteration.lookAhead(LookAheadIteration.java:91)
            at info.aduna.iteration.LookAheadIteration.hasNext(LookAheadIteration.java:60)
            at info.aduna.iteration.ConvertingIteration.hasNext(ConvertingIteration.java:73)
            at info.aduna.iteration.ConvertingIteration.hasNext(ConvertingIteration.java:73)
            at info.aduna.iteration.IterationWrapper.hasNext(IterationWrapper.java:68)
            at info.aduna.iteration.FilterIteration.findNextElement(FilterIteration.java:79)
            at info.aduna.iteration.FilterIteration.hasNext(FilterIteration.java:54)
            at info.aduna.iteration.IterationWrapper.hasNext(IterationWrapper.java:68)
            at info.aduna.iteration.LimitIteration.hasNext(LimitIteration.java:73)
            at info.aduna.iteration.IterationWrapper.hasNext(IterationWrapper.java:68)
            at info.aduna.iteration.IterationWrapper.hasNext(IterationWrapper.java:68)
            at org.openrdf.query.QueryResults.report(QueryResults.java:155)
            at org.openrdf.http.server.repository.TupleQueryResultView.renderInternal(TupleQueryResultView.java:110)
            at org.openrdf.http.server.repository.QueryResultView.render(QueryResultView.java:84)
            at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1228)
            at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1011)
            at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:955)
            at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
            at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
            at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:868)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
            at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at com.github.ziplet.filter.compression.CompressingFilter.doFilter(CompressingFilter.java:300)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
            at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
            at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
            at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
            at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at java.lang.Thread.run(Thread.java:745)
    Caused by: java.util.ConcurrentModificationException: null
            at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:886)
            at java.util.ArrayList$Itr.next(ArrayList.java:836)
            at org.openrdf.model.impl.TreeModel.choose(TreeModel.java:474)
            at org.openrdf.model.impl.TreeModel.matchPattern(TreeModel.java:406)
            at org.openrdf.model.impl.TreeModel.contains(TreeModel.java:250)
            at org.openrdf.sail.nativerdf.MemoryOverflowModel.contains(MemoryOverflowModel.java:127)
            at org.openrdf.model.impl.FilteredModel.contains(FilteredModel.java:157)
            at org.openrdf.model.impl.AbstractModel.isEmpty(AbstractModel.java:58)
            at org.openrdf.sail.base.SailDatasetImpl.difference(SailDatasetImpl.java:286)
            at org.openrdf.sail.base.SailDatasetImpl.getStatements(SailDatasetImpl.java:265)
            at org.openrdf.sail.base.DelegatingSailDataset.getStatements(DelegatingSailDataset.java:79)
            at org.openrdf.sail.base.DelegatingSailDataset.getStatements(DelegatingSailDataset.java:79)
            at org.openrdf.sail.base.UnionSailDataset.getStatements(UnionSailDataset.java:111)
            at org.openrdf.sail.base.SailSourceConnection.getStatementsInternal(SailSourceConnection.java:258)
            at org.openrdf.sail.helpers.SailConnectionBase.getStatements(SailConnectionBase.java:328)
            at org.openrdf.sail.lucene.LuceneTripleSource.getStatements(LuceneTripleSource.java:284)
            ... 70 common frames omitted
EN

回答 1

Stack Overflow用户

发布于 2016-10-02 08:57:43

我还没有见过这个特殊的错误,但是你正在使用的Lucene Sail版本看起来很老了,当时它还是一个单独的项目。

Lucene Sail已经与RDF4J集成,并得到了广泛的改进和更新。我的建议是使用upgrade to the latest version of RDF4J并切换到built-in Lucene Sail。有关如何将现有的Sesame安装升级到RDF4J的更多信息,请参阅Migration Guide

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39515348

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档