java.lang.NullPointerException

Exception #2487020

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2

  • via GitHub by m1ci
    ,
  • Stack trace

    • java.lang.NullPointerException at spray.json.JsonPrinter$class.firstToBeEncoded$1(JsonPrinter.scala:58) at spray.json.JsonPrinter$class.printString(JsonPrinter.scala:61) at spray.json.PrettyPrinter$.printString(PrettyPrinter.scala:69) at spray.json.JsonPrinter$class.printLeaf(JsonPrinter.scala:50) at spray.json.PrettyPrinter$.printLeaf(PrettyPrinter.scala:69) at spray.json.PrettyPrinter$class.print(PrettyPrinter.scala:36) at spray.json.PrettyPrinter$.print(PrettyPrinter.scala:69) at spray.json.PrettyPrinter$$anonfun$printObject$2.apply(PrettyPrinter.scala:46) at spray.json.PrettyPrinter$$anonfun$printObject$2.apply(PrettyPrinter.scala:42) at spray.json.JsonPrinter$$anonfun$printSeq$1.apply(JsonPrinter.scala:92) at spray.json.JsonPrinter$$anonfun$printSeq$1.apply(JsonPrinter.scala:90) at scala.collection.immutable.Map$Map4.foreach(Map.scala:188) at spray.json.JsonPrinter$class.printSeq(JsonPrinter.scala:90) at spray.json.PrettyPrinter$.printSeq(PrettyPrinter.scala:69) at spray.json.PrettyPrinter$class.printObject(PrettyPrinter.scala:42) at spray.json.PrettyPrinter$.printObject(PrettyPrinter.scala:69) at spray.json.PrettyPrinter$class.print(PrettyPrinter.scala:34) at spray.json.PrettyPrinter$.print(PrettyPrinter.scala:69) at spray.json.PrettyPrinter$$anonfun$printArray$2.apply(PrettyPrinter.scala:55) at spray.json.PrettyPrinter$$anonfun$printArray$2.apply(PrettyPrinter.scala:55) at spray.json.JsonPrinter$$anonfun$printSeq$1.apply(JsonPrinter.scala:92) at spray.json.JsonPrinter$$anonfun$printSeq$1.apply(JsonPrinter.scala:90) at scala.collection.Iterator$class.foreach(Iterator.scala:743) at scala.collection.AbstractIterator.foreach(Iterator.scala:1195) at scala.collection.IterableLike$class.foreach(IterableLike.scala:72) at scala.collection.AbstractIterable.foreach(Iterable.scala:54) at spray.json.JsonPrinter$class.printSeq(JsonPrinter.scala:90) at spray.json.PrettyPrinter$.printSeq(PrettyPrinter.scala:69) at spray.json.PrettyPrinter$class.printArray(PrettyPrinter.scala:55) at spray.json.PrettyPrinter$.printArray(PrettyPrinter.scala:69) at spray.json.PrettyPrinter$class.print(PrettyPrinter.scala:35) at spray.json.PrettyPrinter$.print(PrettyPrinter.scala:69) at spray.json.PrettyPrinter$class.print(PrettyPrinter.scala:29) at spray.json.PrettyPrinter$.print(PrettyPrinter.scala:69) at spray.json.JsonPrinter$class.apply(JsonPrinter.scala:37) at spray.json.PrettyPrinter$.apply(PrettyPrinter.scala:69) at spray.json.JsonPrinter$class.apply(JsonPrinter.scala:27) at spray.json.PrettyPrinter$.apply(PrettyPrinter.scala:69) at spray.httpx.SprayJsonSupport$$anonfun$sprayJsonMarshaller$1.apply(SprayJsonSupport.scala:44) at spray.httpx.SprayJsonSupport$$anonfun$sprayJsonMarshaller$1.apply(SprayJsonSupport.scala:42) at spray.httpx.marshalling.Marshaller$MarshallerDelegation$$anonfun$apply$1.apply(Marshaller.scala:58) at spray.httpx.marshalling.Marshaller$MarshallerDelegation$$anonfun$apply$1.apply(Marshaller.scala:58) at spray.httpx.marshalling.Marshaller$MarshallerDelegation$$anonfun$apply$2.apply(Marshaller.scala:61) at spray.httpx.marshalling.Marshaller$MarshallerDelegation$$anonfun$apply$2.apply(Marshaller.scala:60) at spray.httpx.marshalling.Marshaller$$anon$2.apply(Marshaller.scala:47) at spray.httpx.marshalling.BasicToResponseMarshallers$$anon$1.apply(BasicToResponseMarshallers.scala:35) at spray.httpx.marshalling.BasicToResponseMarshallers$$anon$1.apply(BasicToResponseMarshallers.scala:22) at spray.httpx.marshalling.ToResponseMarshaller$$anonfun$compose$1.apply(Marshaller.scala:69) at spray.httpx.marshalling.ToResponseMarshaller$$anonfun$compose$1.apply(Marshaller.scala:69) at spray.httpx.marshalling.ToResponseMarshaller$$anon$3.apply(Marshaller.scala:81) at spray.routing.RequestContext.complete(RequestContext.scala:237) at org.elinker.core.api.process.PerRequest$class.complete(PerRequest.scala:49) at org.elinker.core.api.process.PerRequest$WithProps.complete(PerRequest.scala:71) at org.elinker.core.api.process.PerRequest$$anonfun$receive$1.applyOrElse(PerRequest.scala:40) at akka.actor.Actor$class.aroundReceive(Actor.scala:465) at org.elinker.core.api.process.PerRequest$WithProps.aroundReceive(PerRequest.scala:71) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516) at akka.actor.ActorCell.invoke(ActorCell.scala:487) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:254) at akka.dispatch.Mailbox.run(Mailbox.scala:221) at akka.dispatch.Mailbox.exec(Mailbox.scala:231) 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.