java.lang.IllegalArgumentException: requirement failed: Given /Users/hickst/Documents/nxml2fries/papers/PMC1234335.csv, but readNXMLPaper only handles .nxml files!

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

Delete the corrupted index files and on startup, Kafka server will rebuild it.

Solutions on the web

via GitHub by hickst
, 1 year ago
requirement failed: Given /Users/hickst/Documents/nxml2fries/papers/PMC1234335.csv, but readNXMLPaper only handles .nxml files!
via apache.org by Unknown author, 2 years ago
requirement failed: Found fields with the same name.
via github.com by Unknown author, 1 year ago
via GitHub by 2m
, 2 years ago
requirement failed: An `ForeachSink(<function1>)` instance MUST NOT be used more than once in a `FlowGraph` to avoid ambiguity. Use individual instances instead of the same one multiple times. Nodes are: NodeSet(ForeachSink(<function1>))
via GitHub by johanandren
, 1 year ago
requirement failed: Compression table should start allocating from 0, yet lowest allocated id was 1
via Stack Overflow by JKC
, 4 months ago
requirement failed: Column State must be of type equal to one of the following types: [ArrayType(StringType,true), ArrayType(StringType,false)] but was actually of type StringType.
java.lang.IllegalArgumentException: requirement failed: Given /Users/hickst/Documents/nxml2fries/papers/PMC1234335.csv, but readNXMLPaper only handles .nxml files!
at scala.Predef$.require(Predef.scala:224)
at org.clulab.reach.PaperReader$.readPaper(PaperReader.scala:74)
at org.clulab.reach.PaperReader$.getMentionsFromPaper(PaperReader.scala:81)
at org.clulab.reach.AssemblyCLI$$anonfun$processPapers$1.apply(AssemblyCLI.scala:51)
at org.clulab.reach.AssemblyCLI$$anonfun$processPapers$1.apply(AssemblyCLI.scala:42)
at scala.collection.parallel.mutable.ParArray$ParArrayIterator.foreach_quick(ParArray.scala:143)
at scala.collection.parallel.mutable.ParArray$ParArrayIterator.foreach(ParArray.scala:136)
at scala.collection.parallel.ParIterableLike$Foreach.leaf(ParIterableLike.scala:972)
at scala.collection.parallel.Task$$anonfun$tryLeaf$1.apply$mcV$sp(Tasks.scala:49)
at scala.collection.parallel.Task$$anonfun$tryLeaf$1.apply(Tasks.scala:48)
at scala.collection.parallel.Task$$anonfun$tryLeaf$1.apply(Tasks.scala:48)
at scala.collection.parallel.Task$class.tryLeaf(Tasks.scala:51)
at scala.collection.parallel.ParIterableLike$Foreach.tryLeaf(ParIterableLike.scala:969)
at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask$class.internal(Tasks.scala:159)
at scala.collection.parallel.AdaptiveWorkStealingForkJoinTasks$WrappedTask.internal(Tasks.scala:443)
at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask$class.compute(Tasks.scala:149)
at scala.collection.parallel.AdaptiveWorkStealingForkJoinTasks$WrappedTask.compute(Tasks.scala:443)
at scala.concurrent.forkjoin.RecursiveAction.exec(RecursiveAction.java:160)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

Users with the same issue

11 times, 1 week ago
3 times, 1 week ago
Once, 1 month ago
12 times, 1 month ago
Once, 1 month ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.