Skip to content

datadog.trace.instrumentation.akkahttp.DatadogServerRequestResponseFlowWrapper$1-DatadogServerRequestResponseFlowWrapper triggers NPE #9017

Open
@dtremper

Description

@dtremper

Tracer Version(s)

1.50.0~6db7d82c6e

Java Version(s)

11.0.22+7

JVM Vendor

Eclipse Adoptium / Temurin

Bug Report

after an automatic upgrade of dd-agent from version 1.49.0~5bfab6549b to 1.50.0~6db7d82c6e today, we noticed some NPEs in our logs, probably pointing to this modification: 50ad603#diff-7c7abff2c87ddb4eec6d640142214c8e3e6c0d62addd3444e3d61a7d8d0ed321R171

java.lang.NullPointerException: null
	at datadog.trace.instrumentation.akkahttp.DatadogServerRequestResponseFlowWrapper$1$3.onUpstreamFailure(DatadogServerRequestResponseFlowWrapper.java:171)
	at akka.stream.impl.fusing.GraphInterpreter.processEvent(GraphInterpreter.scala:525)
	at akka.stream.impl.fusing.GraphInterpreter.execute(GraphInterpreter.scala:390)
	at akka.stream.impl.fusing.GraphInterpreterShell.runBatch(ActorGraphInterpreter.scala:650)
	at akka.stream.impl.fusing.GraphInterpreterShell$AsyncInput.execute(ActorGraphInterpreter.scala:521)
	at akka.stream.impl.fusing.GraphInterpreterShell.processEvent(ActorGraphInterpreter.scala:625)
	at akka.stream.impl.fusing.ActorGraphInterpreter.akka$stream$impl$fusing$ActorGraphInterpreter$$processEvent(ActorGraphInterpreter.scala:800)
	at akka.stream.impl.fusing.ActorGraphInterpreter$$anonfun$receive$1.applyOrElse(ActorGraphInterpreter.scala:818)
	at akka.actor.Actor.aroundReceive(Actor.scala:537)
	at akka.actor.Actor.aroundReceive$(Actor.scala:535)
	at akka.stream.impl.fusing.ActorGraphInterpreter.aroundReceive(ActorGraphInterpreter.scala:716)
	at akka.actor.ActorCell.receiveMessage(ActorCell.scala:579)
	at akka.actor.ActorCell.invoke(ActorCell.scala:547)
	at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:270)
	at akka.dispatch.Mailbox.run(Mailbox.scala:231)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

Expected Behavior

no NPEs

Reproduction Code

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions