java.lang.UnsupportedOperationException: empty.head

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

java.lang.UnsupportedOperationException: empty.head
at service.ProposalService$$anonfun$finishVote$1$$anonfun$apply$1$$anonfun$apply$mcII$sp$2.apply(ProposalService.scala:123)
at service.ProposalService$$anonfun$finishVote$1$$anonfun$apply$1$$anonfun$apply$mcII$sp$2.apply(ProposalService.scala:121)
at scala.collection.Iterator$class.foreach(Iterator.scala:727)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
at service.ProposalService$$anonfun$finishVote$1$$anonfun$apply$1.apply$mcII$sp(ProposalService.scala:121)
at service.ProposalService$$anonfun$finishVote$1$$anonfun$apply$1.apply(ProposalService.scala:118)
at service.ProposalService$$anonfun$finishVote$1$$anonfun$apply$1.apply(ProposalService.scala:118)
at service.ProposalService$$anonfun$finishVote$1.apply(ProposalService.scala:118)
at service.ProposalService$$anonfun$finishVote$1.apply(ProposalService.scala:115)
at scala.slick.backend.DatabaseComponent$DatabaseDef$$anonfun$withTransaction$1$$anonfun$apply$1.apply(DatabaseComponent.scala:44)
at scala.slick.backend.DatabaseComponent$DatabaseDef$$anonfun$withTransaction$1.apply(DatabaseComponent.scala:44)
at scala.slick.backend.DatabaseComponent$DatabaseDef$$anonfun$withTransaction$1.apply(DatabaseComponent.scala:44)
at scala.slick.backend.DatabaseComponent$DatabaseDef$class.withSession(DatabaseComponent.scala:31)
at scala.slick.backend.DatabaseComponent$DatabaseDef$class.withTransaction(DatabaseComponent.scala:44)
at service.ProposalService.finishVote(ProposalService.scala:115)
at service.ProposalService$$anonfun$receive$1.applyOrElse(ProposalService.scala:146)
at scala.runtime.AbstractPartialFunction$mcVL$sp.apply$mcVL$sp(AbstractPartialFunction.scala:33)
at scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:33)
at scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:25)
at service.ExceptionHandling$Handled.apply(ExceptionHandling.scala:23)
at service.ExceptionHandling$Handled.apply(ExceptionHandling.scala:20)
at scala.PartialFunction$class.applyOrElse(PartialFunction.scala:118)
at service.ExceptionHandling$Handled.applyOrElse(ExceptionHandling.scala:20)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:498)
at akka.actor.ActorCell.invoke(ActorCell.scala:456)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:237)
at akka.dispatch.Mailbox.run(Mailbox.scala:219)
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, 2 months ago
2 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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