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

java.util.NoSuchElementException: head of empty stream	at scala.collection.immutable.Stream$Empty$.head(Stream.scala:1168)	at scala.collection.immutable.Stream$Empty$.head(Stream.scala:1166)	at models.MetaModel$$anonfun$15.apply(MetaModel.scala:83)	at models.MetaModel$$anonfun$15.apply(MetaModel.scala:77)	at play.api.db.DefaultDatabase.withConnection(Databases.scala:155)	at play.api.db.DB$.withConnection(DB.scala:52)	at models.MetaModel.(MetaModel.scala:77)	at globals.package$.(Global.scala:126)	at globals.package$.(Global.scala)	at service.txbitsUserService$.deleteExpiredTokens(txbitsUserService.scala:100)	at service.txbitsUserService$$anonfun$onStart$1.apply$mcV$sp(txbitsUserService.scala:120)	at akka.actor.Scheduler$$anon$5.run(Scheduler.scala:79)	at akka.actor.LightArrayRevolverScheduler$$anon$2$$anon$1.run(Scheduler.scala:242)	at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:40)	at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397)	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)