mytang0 opened a new issue, #1022:
URL: https://github.com/apache/incubator-eventmesh/issues/1022

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Environment
   
   Linux
   
   ### EventMesh version
   
   master
   
   ### What happened
   
   When the property 'subsystem' of UserAgent is null
   
   ### How to reproduce
   
   1. Explicitly throw the 'key' of the exception to facilitate problem 
location.
   2. Fix NPE
   
   ### Debug logs
   
   Location:
   
   java.lang.NullPointerException: null
       at 
org.apache.eventmesh.protocol.meshmessage.resolver.tcp.TcpMessageProtocolResolver.buildEvent(TcpMessageProtocolResolver.java:82)
       at 
org.apache.eventmesh.protocol.meshmessage.MeshMessageProtocolAdaptor.deserializeTcpProtocol(MeshMessageProtocolAdaptor.java:81)
       at 
org.apache.eventmesh.protocol.meshmessage.MeshMessageProtocolAdaptor.toCloudEvent(MeshMessageProtocolAdaptor.java:59)
       at 
org.apache.eventmesh.runtime.core.protocol.tcp.client.task.MessageTransferTask.run(MessageTransferTask.java:110)
   
   
    
   and location:
   
   upload trace fail when finishSpanWithException
   java.lang.NullPointerException: null
       at 
org.apache.eventmesh.runtime.trace.Trace.addTraceInfoToSpan(Trace.java:104)
       at 
org.apache.eventmesh.runtime.trace.TraceUtils.finishSpanWithException(TraceUtils.java:110)
       at 
org.apache.eventmesh.runtime.core.protocol.tcp.client.task.MessageTransferTask.run(MessageTransferTask.java:184)
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to