Fixing a NullPointerException when upgrading from Lagom while using Cinnamon (Telemetry)

Fixing a NullPointerException when upgrading from Lagom while using Cinnamon (Telemetry)

In case you are upgrading Lagom to 1.6.2 while using Cinnamon 2.14.0 you may come across the following error:

Restarting graph due to failure. stack_trace:
java.lang.NullPointerException
     at com.lightbend.lagom.internal.spi.projection.ProjectionSpiImpl$.startProcessing(ProjectionSpiImpl.scala:24)
     at com.lightbend.lagom.internal.spi.projection.ProjectionSpi$.startProcessing(ProjectionSpi.scala)
     at com.lightbend.lagom.internal.scaladsl.persistence.AbstractPersistentEntityRegistry.$anonfun$eventStream$1(AbstractPersistentEntityRegistry.scala:135)

This error was fixed in a recent release of Cinnamon 2.14.2. Please upgrade to that version in order to fix or prevent this error from happening.

Pro tip: try using the Scala Stuart Bot to ensure your Lightbend dependencies are up-to date.



    • Related Articles

    • Why should I use Telemetry (Cinnamon) instead of Kamon?

      Telemetry (aka Cinnamon) is the industry’s most capable tool for the monitoring of Akka, Play and Lagom applications. While Cinnamon and Kamon share some common features such as actor mailbox metrics, dead letter message counts and fine-grained ...
    • Split Brain Resolver throws java.lang.NoSuchMethodError

      This error happens when using SBR 1.1.4 in conjunction with Lightbend Telemetry (aka Cinnamon) 2.10.8.  The changes introduced in SBR, unfortunately, broke the instrumentation in Cinnamon. That has been corrected in Cinnamon version 2.10.9 and the ...
    • How to aggregate Cinnamon rates over time

      Cinnamon does not support this natively in part because neither of our underlying metric backends support that type of rate metric*. The Rate metric is for rates of occurrences, like how many times has this happened, and the Recorder is for measuring ...
    • Does Lagom support multitenancy?

      Our suggestion is to not go down this path. Multi-tenancy was very popular back in the time when people used to deploy one single application on a huge application server. In the era of cloud computing, it's much easier to have different deployments, ...
    • Can Lagom errors be handled using Play error handling?

      No, the Play error handler is not invoked from Lagom, because the Lagom exception serializer intercepts it first. Any exception thrown by application code will be wrapped in a transport exception, serialized to json and a response is built from it. ...