Please answer these questions before submitting your issue.
ServerInProtocolWrapper#readFieldBegin()
@Override
public TField readFieldBegin() throws TException {
................
if (field.type == TType.STOP) {
Boolean haveCreatedSpan =
(Boolean) ContextManager.getRuntimeContext().get(HAVE_CREATED_SPAN);
if (haveCreatedSpan != null && !haveCreatedSpan) {
try {
AbstractSpan span = ContextManager.createEntrySpan(
context.getOperatorName(), createContextCarrier(null));
span.start(context.startTime);
span.tag(TAG_ARGS, context.getArguments());
span.setComponent(ComponentsDefine.THRIFT_SERVER);
SpanLayer.asRPCFramework(span);
} catch (Throwable throwable) {
LOGGER.error("Failed to create EntrySpan.", throwable);
} finally {
context = null;
}
return field;
}
Please answer these questions before submitting your issue.
Question
I already used version 8.6.0 which has fixed the error: NPE when thrift field is nested ,but context is still null, why?
Bug
Which version of SkyWalking, OS, and JRE?
8.6.0
Which company or project?
What happened?
If possible, provide a way to reproduce the error. e.g. demo application, component version.
context is null, why?
code position:
Requirement or improvement