java.util.NoSuchElementException: head of empty list

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

Solutions on the web

via Stack Overflow by Alexander Samoilov
, 2 years ago
via grzegorzbalcerek.net by Unknown author, 1 year ago
head of empty list
via Google Groups by Channing Walton, 1 year ago
java.util.NoSuchElementException: head of empty list
at scala.collection.immutable.Nil$.head(List.scala:386)
at kafka.api.TopicMetadataRequest$$anonfun$readFrom$2.apply(TopicMetadataRequest.scala:43)
at kafka.api.TopicMetadataRequest$$anonfun$readFrom$2.apply(TopicMetadataRequest.scala:43)
at kafka.utils.Logging$class.debug(Logging.scala:51)
at kafka.api.TopicMetadataRequest$.debug(TopicMetadataRequest.scala:25)
at kafka.api.TopicMetadataRequest$.readFrom(TopicMetadataRequest.scala:43)
at kafka.api.RequestKeys$$anonfun$4.apply(RequestKeys.scala:37)
at kafka.api.RequestKeys$$anonfun$4.apply(RequestKeys.scala:37)
at kafka.network.RequestChannel$Request.(RequestChannel.scala:47)
at kafka.network.Processor.read(SocketServer.scala:320)
at kafka.network.Processor.run(SocketServer.scala:231)
at java.lang.Thread.run(Thread.java:680)

Users with the same issue

2 times, 2 weeks ago
Once, 1 month ago
Once, 1 month ago
2 times, 2 months ago
Once, 3 months ago

Write tip

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