Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Index out of bounds in generalised node comparator #1

Open
FWDekker opened this issue Feb 9, 2019 · 0 comments
Open

Index out of bounds in generalised node comparator #1

FWDekker opened this issue Feb 9, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@FWDekker
Copy link
Member

FWDekker commented Feb 9, 2019

The following exception was thrown while running Schaapi on 800 users of version 2.6 of the commons-lang library:

2019-02-08 21:25:15,029 [main] ERROR o.c.s.miningpipeline.MiningPipeline [MiningPipeline.kt:85] - A critical error occurred during the mining process causing it to be aborted.
java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
	at java.util.ArrayList.rangeCheck(ArrayList.java:657) ~[na:1.8.0_201]
	at java.util.ArrayList.get(ArrayList.java:433) ~[na:1.8.0_201]
	at org.cafejojo.schaapi.models.libraryusagegraph.jimple.GeneralizedNodeComparator.generalizedValuesAreEqual(GeneralizedNodeComparator.kt:57) ~[schaapi.jar:na]
	at org.cafejojo.schaapi.models.libraryusagegraph.jimple.GeneralizedNodeComparator.satisfies(GeneralizedNodeComparator.kt:26) ~[schaapi.jar:na]
	at org.cafejojo.schaapi.models.libraryusagegraph.jimple.GeneralizedNodeComparator.satisfies(GeneralizedNodeComparator.kt:14) ~[schaapi.jar:na]
	at org.cafejojo.schaapi.models.NodeSequenceUtil.sequenceContainsSubSequence(NodeSequenceUtil.kt:18) ~[schaapi.jar:na]
	at org.cafejojo.schaapi.miningpipeline.patterndetector.ccspan.CCSpan.calculateSupport(CCSpan.kt:99) ~[schaapi.jar:na]
	at org.cafejojo.schaapi.miningpipeline.patterndetector.ccspan.CCSpan.checkSupportOfSubSequence(CCSpan.kt:79) ~[schaapi.jar:na]
	at org.cafejojo.schaapi.miningpipeline.patterndetector.ccspan.CCSpan.findAllContiguousSequencesOfLength(CCSpan.kt:73) ~[schaapi.jar:na]
	at org.cafejojo.schaapi.miningpipeline.patterndetector.ccspan.CCSpan.findFrequentPatterns$ccspan_pattern_detector(CCSpan.kt:47) ~[schaapi.jar:na]
	at org.cafejojo.schaapi.miningpipeline.patterndetector.ccspan.CCSpanPatternDetector.findPatterns(CCSpanPatternDetector.kt:19) ~[schaapi.jar:na]
	at org.cafejojo.schaapi.miningpipeline.MiningPipeline.run(MiningPipeline.kt:70) ~[schaapi.jar:na]
	at org.cafejojo.schaapi.GitHubMiningCommandLineInterface.run(GitHubMiningCommandLineInterface.kt:69) [schaapi.jar:na]
	at org.cafejojo.schaapi.CommandLineInterface.run(CommandLineInterface.kt:77) [schaapi.jar:na]
	at org.cafejojo.schaapi.CommandLineInterfaceKt$main$flavors$2.invoke(CommandLineInterface.kt:24) [schaapi.jar:na]
	at org.cafejojo.schaapi.CommandLineInterfaceKt$main$flavors$2.invoke(CommandLineInterface.kt) [schaapi.jar:na]
	at org.cafejojo.schaapi.CommandLineInterfaceKt.main(CommandLineInterface.kt:37) [schaapi.jar:na]
	at org.cafejojo.schaapi.DekkerSuperDuperCliKt.main(DekkerSuperDuperCli.kt:49) [schaapi.jar:na]
@FWDekker FWDekker added the bug Something isn't working label Feb 9, 2019
@FWDekker FWDekker self-assigned this Feb 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@FWDekker and others