duometer icon indicating copy to clipboard operation
duometer copied to clipboard

Exception in thread "main" java.util.NoSuchElementException: next on empty iterator

Open manouchk38 opened this issue 3 years ago • 0 comments

Hi,

I installed duometer as informed in readme (https://github.com/pmandera/duometer) and runned the following command:

./duometer -i /home/manu/Joplin/MD -o /home/manu/Joplin/texts-duplicates.txt

I got the following exception:

Exception in thread "main" java.util.NoSuchElementException: next on empty iterator at scala.collection.Iterator$$anon$2.next(Iterator.scala:39) at scala.collection.Iterator$$anon$2.next(Iterator.scala:37) at scala.collection.IterableLike$class.head(IterableLike.scala:107) at scala.collection.AbstractIterable.head(Iterable.scala:54) at com.pawelmandera.duplicates.SharedMemberCandidates$class.candidates(SharedMemberCandidates.scala:17) at com.pawelmandera.main.MinHashMain$$anon$2.candidates(MinHashMain.scala:116) at com.pawelmandera.duplicates.MinHashDetection$class.detect(MinHashDetection.scala:29) at com.pawelmandera.main.MinHashMain$$anon$2.detect(MinHashMain.scala:116) at com.pawelmandera.main.MinHashMain$.main(MinHashMain.scala:121) at com.pawelmandera.main.MinHashMain.main(MinHashMain.scala)

I run duometer on archlinux and java version is:

$ java -version openjdk version "1.8.0_282" OpenJDK Runtime Environment (build 1.8.0_282-b08) OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode)

I also installed scala which did not change anything.

manouchk38 avatar Apr 08 '21 14:04 manouchk38