java.lang.NullPointerException

GitHub | m1ci | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 68#180376174

    GitHub | 1 year ago | m1ci
    java.lang.NullPointerException
  2. 0

    NullPointerException when passing null to JsString

    GitHub | 3 years ago | martin-g
    java.lang.NullPointerException: null

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at spray.json.JsonPrinter$class.firstToBeEncoded$1()
    2. Spray Json
      JsonPrinter$$anonfun$printSeq$1.apply
      1. spray.json.JsonPrinter$class.firstToBeEncoded$1(JsonPrinter.scala:58)
      2. spray.json.JsonPrinter$class.printString(JsonPrinter.scala:61)
      3. spray.json.PrettyPrinter$.printString(PrettyPrinter.scala:69)
      4. spray.json.JsonPrinter$class.printLeaf(JsonPrinter.scala:50)
      5. spray.json.PrettyPrinter$.printLeaf(PrettyPrinter.scala:69)
      6. spray.json.PrettyPrinter$class.print(PrettyPrinter.scala:36)
      7. spray.json.PrettyPrinter$.print(PrettyPrinter.scala:69)
      8. spray.json.PrettyPrinter$$anonfun$printObject$2.apply(PrettyPrinter.scala:46)
      9. spray.json.PrettyPrinter$$anonfun$printObject$2.apply(PrettyPrinter.scala:42)
      10. spray.json.JsonPrinter$$anonfun$printSeq$1.apply(JsonPrinter.scala:92)
      11. spray.json.JsonPrinter$$anonfun$printSeq$1.apply(JsonPrinter.scala:90)
      11 frames
    3. Scala
      Map$Map4.foreach
      1. scala.collection.immutable.Map$Map4.foreach(Map.scala:188)
      1 frame
    4. Spray Json
      JsonPrinter$$anonfun$printSeq$1.apply
      1. spray.json.JsonPrinter$class.printSeq(JsonPrinter.scala:90)
      2. spray.json.PrettyPrinter$.printSeq(PrettyPrinter.scala:69)
      3. spray.json.PrettyPrinter$class.printObject(PrettyPrinter.scala:42)
      4. spray.json.PrettyPrinter$.printObject(PrettyPrinter.scala:69)
      5. spray.json.PrettyPrinter$class.print(PrettyPrinter.scala:34)
      6. spray.json.PrettyPrinter$.print(PrettyPrinter.scala:69)
      7. spray.json.PrettyPrinter$$anonfun$printArray$2.apply(PrettyPrinter.scala:55)
      8. spray.json.PrettyPrinter$$anonfun$printArray$2.apply(PrettyPrinter.scala:55)
      9. spray.json.JsonPrinter$$anonfun$printSeq$1.apply(JsonPrinter.scala:92)
      10. spray.json.JsonPrinter$$anonfun$printSeq$1.apply(JsonPrinter.scala:90)
      10 frames
    5. Scala
      AbstractIterable.foreach
      1. scala.collection.Iterator$class.foreach(Iterator.scala:743)
      2. scala.collection.AbstractIterator.foreach(Iterator.scala:1195)
      3. scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
      4. scala.collection.AbstractIterable.foreach(Iterable.scala:54)
      4 frames
    6. Spray Json
      PrettyPrinter$.apply
      1. spray.json.JsonPrinter$class.printSeq(JsonPrinter.scala:90)
      2. spray.json.PrettyPrinter$.printSeq(PrettyPrinter.scala:69)
      3. spray.json.PrettyPrinter$class.printArray(PrettyPrinter.scala:55)
      4. spray.json.PrettyPrinter$.printArray(PrettyPrinter.scala:69)
      5. spray.json.PrettyPrinter$class.print(PrettyPrinter.scala:35)
      6. spray.json.PrettyPrinter$.print(PrettyPrinter.scala:69)
      7. spray.json.PrettyPrinter$class.print(PrettyPrinter.scala:29)
      8. spray.json.PrettyPrinter$.print(PrettyPrinter.scala:69)
      9. spray.json.JsonPrinter$class.apply(JsonPrinter.scala:37)
      10. spray.json.PrettyPrinter$.apply(PrettyPrinter.scala:69)
      11. spray.json.JsonPrinter$class.apply(JsonPrinter.scala:27)
      12. spray.json.PrettyPrinter$.apply(PrettyPrinter.scala:69)
      12 frames
    7. Spray Httpx
      ToResponseMarshaller$$anon$3.apply
      1. spray.httpx.SprayJsonSupport$$anonfun$sprayJsonMarshaller$1.apply(SprayJsonSupport.scala:44)
      2. spray.httpx.SprayJsonSupport$$anonfun$sprayJsonMarshaller$1.apply(SprayJsonSupport.scala:42)
      3. spray.httpx.marshalling.Marshaller$MarshallerDelegation$$anonfun$apply$1.apply(Marshaller.scala:58)
      4. spray.httpx.marshalling.Marshaller$MarshallerDelegation$$anonfun$apply$1.apply(Marshaller.scala:58)
      5. spray.httpx.marshalling.Marshaller$MarshallerDelegation$$anonfun$apply$2.apply(Marshaller.scala:61)
      6. spray.httpx.marshalling.Marshaller$MarshallerDelegation$$anonfun$apply$2.apply(Marshaller.scala:60)
      7. spray.httpx.marshalling.Marshaller$$anon$2.apply(Marshaller.scala:47)
      8. spray.httpx.marshalling.BasicToResponseMarshallers$$anon$1.apply(BasicToResponseMarshallers.scala:35)
      9. spray.httpx.marshalling.BasicToResponseMarshallers$$anon$1.apply(BasicToResponseMarshallers.scala:22)
      10. spray.httpx.marshalling.ToResponseMarshaller$$anonfun$compose$1.apply(Marshaller.scala:69)
      11. spray.httpx.marshalling.ToResponseMarshaller$$anonfun$compose$1.apply(Marshaller.scala:69)
      12. spray.httpx.marshalling.ToResponseMarshaller$$anon$3.apply(Marshaller.scala:81)
      12 frames
    8. Spray Routing
      RequestContext.complete
      1. spray.routing.RequestContext.complete(RequestContext.scala:237)
      1 frame
    9. org.elinker.core
      PerRequest$$anonfun$receive$1.applyOrElse
      1. org.elinker.core.api.process.PerRequest$class.complete(PerRequest.scala:49)
      2. org.elinker.core.api.process.PerRequest$WithProps.complete(PerRequest.scala:71)
      3. org.elinker.core.api.process.PerRequest$$anonfun$receive$1.applyOrElse(PerRequest.scala:40)
      3 frames
    10. Akka Actor
      Actor$class.aroundReceive
      1. akka.actor.Actor$class.aroundReceive(Actor.scala:465)
      1 frame
    11. org.elinker.core
      PerRequest$WithProps.aroundReceive
      1. org.elinker.core.api.process.PerRequest$WithProps.aroundReceive(PerRequest.scala:71)
      1 frame
    12. Akka Actor
      Mailbox.exec
      1. akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
      2. akka.actor.ActorCell.invoke(ActorCell.scala:487)
      3. akka.dispatch.Mailbox.processMailbox(Mailbox.scala:254)
      4. akka.dispatch.Mailbox.run(Mailbox.scala:221)
      5. akka.dispatch.Mailbox.exec(Mailbox.scala:231)
      5 frames
    13. Scala
      ForkJoinWorkerThread.run
      1. scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
      2. scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
      3. scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
      4. scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
      4 frames