[Bug] An error is reported when undertow uses the sky-agent access interface #12751
Replies: 1 comment 2 replies
-
This error indicates you changed the agent.jar or add/remove some plugins. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Search before asking
Apache SkyWalking Component
OAP server (apache/skywalking)
What happened
An error is reported when undertow uses the sky-agent access interface
What you expected to happen
It works fine
How to reproduce
spring-boot 3.3.5
undertow 2.3.17 (Springboot comes with it)
sky-agent 9.2.0
If you access any interface during normal operation, an error will be reported
`2024-11-05 15:31:55 [XNIO-1 I/O-8] ERROR io.undertow.request
java.lang.NullPointerException: Cannot invoke "org.apache.skywalking.apm.agent.core.context.ContextManagerExtendService.createTraceContext(String, boolean)" because "org.apache.skywalking.apm.agent.core.context.ContextManager.EXTEND_SERVICE" is null
at org.apache.skywalking.apm.agent.core.context.ContextManager.getOrCreate(ContextManager.java:60)
at org.apache.skywalking.apm.agent.core.context.ContextManager.createEntrySpan(ContextManager.java:115)
at org.apache.skywalking.apm.plugin.undertow.v2x.handler.TracingHandler.handleRequest(TracingHandler.java:62)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:395)
at io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:265)
at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:136)
at io.undertow.server.protocol.http.HttpOpenListener.handleEvent(HttpOpenListener.java:162)
at io.undertow.server.protocol.http.HttpOpenListener.handleEvent(HttpOpenListener.java:100)
at io.undertow.server.protocol.http.HttpOpenListener.handleEvent(HttpOpenListener.java:57)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.ChannelListeners$10.handleEvent(ChannelListeners.java:291)
at org.xnio.ChannelListeners$10.handleEvent(ChannelListeners.java:286)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.nio.QueuedNioTcpServer2.acceptTask(QueuedNioTcpServer2.java:178)
at org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:624)
at org.xnio.nio.WorkerThread.run(WorkerThread.java:491)`
Anything else
No response
Are you willing to submit a pull request to fix on your own?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions