Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pellet ConcurrentModificationException #31

Closed
SimonBin opened this issue Jul 28, 2015 · 2 comments
Closed

Pellet ConcurrentModificationException #31

SimonBin opened this issue Jul 28, 2015 · 2 comments

Comments

@SimonBin
Copy link
Member

(reproducible on a private ontology)

Caused by: java.util.ConcurrentModificationException
        at java.util.HashMap$HashIterator.nextNode(HashMap.java:1429)
        at java.util.HashMap$KeyIterator.next(HashMap.java:1453)
        at com.clarkparsia.pellet.rules.ContinuousRulesStrategy.applyRuleBindings(ContinuousRulesStrategy.java:147)
        at com.clarkparsia.pellet.rules.ContinuousRulesStrategy.complete(ContinuousRulesStrategy.java:254)
        at org.mindswap.pellet.ABox.isConsistent(ABox.java:1423)
        at org.mindswap.pellet.ABox.isConsistent(ABox.java:1260)
        at org.mindswap.pellet.KnowledgeBase.consistency(KnowledgeBase.java:2017)
        at org.mindswap.pellet.KnowledgeBase.isConsistent(KnowledgeBase.java:2089)
        at com.clarkparsia.pellet.owlapiv3.PelletReasoner.isConsistent(PelletReasoner.java:849)
        at org.dllearner.reasoning.OWLAPIReasoner.init(OWLAPIReasoner.java:246)

changing for( PartialBinding ruleBinding : partialBindings ) to for( PartialBinding ruleBinding : new HashSet(partialBindings) ) on com.clarkparsia.pellet.rules.ContinuousRulesStrategy line 147 only results in

Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
        at org.mindswap.pellet.EdgeList.<init>(EdgeList.java:80)
        at org.mindswap.pellet.EdgeList.<init>(EdgeList.java:76)
        at org.mindswap.pellet.EdgeList.getEdges(EdgeList.java:202)
        at org.mindswap.pellet.Individual.getRNeighborEdges(Individual.java:678)
        at com.clarkparsia.pellet.rules.TrivialSatisfactionHelpers$TestProperty.check(TrivialSatisfactionHelpers.java:317)
        at com.clarkparsia.pellet.rules.TrivialSatisfactionHelpers$TestIndividualProperty.check(TrivialSatisfactionHelpers.java:295)
        at com.clarkparsia.pellet.rules.TrivialSatisfactionHelpers.isAtomTrue(TrivialSatisfactionHelpers.java:402)
        at com.clarkparsia.pellet.rules.ContinuousRulesStrategy.createDisjunctionsFromBinding(ContinuousRulesStrategy.java:410)
        at com.clarkparsia.pellet.rules.ContinuousRulesStrategy.applyRuleBindings(ContinuousRulesStrategy.java:224)
        at com.clarkparsia.pellet.rules.ContinuousRulesStrategy.complete(ContinuousRulesStrategy.java:331)
        at org.mindswap.pellet.ABox.isConsistent(ABox.java:1423)
        at org.mindswap.pellet.ABox.isConsistent(ABox.java:1260)
        at org.mindswap.pellet.KnowledgeBase.consistency(KnowledgeBase.java:1989)
        at org.mindswap.pellet.KnowledgeBase.isConsistent(KnowledgeBase.java:2061)
        at com.clarkparsia.pellet.owlapiv3.PelletReasoner.isConsistent(PelletReasoner.java:849)
        at org.dllearner.reasoning.OWLAPIReasoner.init(OWLAPIReasoner.java:246)
@tobias-hammerschmidt
Copy link

Most likely you are also hit by this issue.

@SimonBin
Copy link
Member Author

SimonBin commented Jan 7, 2016

thanks @tobias-hammerschmidt , applied

@SimonBin SimonBin closed this as completed Jan 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants