Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Span is null when eventMeshServerTraceEnable is false #1021

Closed
2 tasks done
liuzwei opened this issue Jul 14, 2022 · 1 comment
Closed
2 tasks done

[Bug] Span is null when eventMeshServerTraceEnable is false #1021

liuzwei opened this issue Jul 14, 2022 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@liuzwei
Copy link
Contributor

liuzwei commented Jul 14, 2022

Search before asking

  • I had searched in the issues and found no similar issues.

Environment

Windows

EventMesh version

master

What happened

I running the eventmesh-runtime in my Windows machine, and want to run the examples.
So I run the demo files AsyncPublish and Asyncsubscribe which them in package org.apache.eventmesh.tcp.demo.

I found the demo cannot run normally, and print a lot of NPE in console.

like this:

java.lang.NullPointerException: null
	at org.apache.eventmesh.runtime.core.protocol.tcp.client.group.ClientGroupWrapper.lambda$initClientGroupPersistentConsumer$0(ClientGroupWrapper.java:432) ~[main/:?]
	at org.apache.eventmesh.connector.standalone.broker.task.SubScribeTask.run(SubScribeTask.java:94) [eventmesh-connector-standalone-1.3.0-release.jar:1.3.0-release]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.lang.Thread.run(Thread.java:834) [?:?]
09:24:49.591 [StandaloneConsumerThread] ERROR org.apache.eventmesh.connector.standalone.broker.task.SubScribeTask - consumer error, topic: TEST-TOPIC-TCP-ASYNC, offset: 0
java.lang.NullPointerException: null
	at org.apache.eventmesh.runtime.core.protocol.tcp.client.group.ClientGroupWrapper.lambda$initClientGroupPersistentConsumer$0(ClientGroupWrapper.java:432) ~[main/:?]
	at org.apache.eventmesh.connector.standalone.broker.task.SubScribeTask.run(SubScribeTask.java:94) [eventmesh-connector-standalone-1.3.0-release.jar:1.3.0-release]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.lang.Thread.run(Thread.java:834) [?:?]
09:24:50.604 [StandaloneConsumerThread] ERROR org.apache.eventmesh.connector.standalone.broker.task.SubScribeTask - consumer error, topic: TEST-TOPIC-TCP-ASYNC, offset: 0
java.lang.NullPointerException: null

How to reproduce

step1:

running the eventmesh-runtime.

I start the main method which in file EventMeshStartup.java, and specify a local configuration file which is copy from eventmesh.properties.

step2:

Running main method in org.apache.eventmesh.tcp.demo.pub.eventmeshmessage.AsyncPublish

step3:

Running main method in org.apache.eventmesh.tcp.demo.sub.eventmeshmessage.AsyncSubscribe

Debug logs

image

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@liuzwei liuzwei added the bug Something isn't working label Jul 14, 2022
@github-actions
Copy link
Contributor

Welcome to the Apache EventMesh (incubating) community!!
We are glad that you are contributing by opening this issue. :D

Please make sure to include all the relevant context.
We will be here shortly.

If you are interested in contributing to our project, please let us know!
You can check out our contributing guide on contributing to EventMesh.

Want to get closer to the community?

WeChat Group:
wechat_qr

Mailing Lists:

Name Description Subscribe Unsubscribe Archive
Users User support and questions mailing list Subscribe Unsubscribe Mail Archives
Development Development related discussions Subscribe Unsubscribe Mail Archives
Commits All commits to repositories Subscribe Unsubscribe Mail Archives

@xwm1992 xwm1992 changed the title [Bug] Span is null when eventMeshServerTraceEnable is fasle [Bug] Span is null when eventMeshServerTraceEnable is false Jul 18, 2022
xwm1992 added a commit that referenced this issue Aug 4, 2022
[ISSUE #1021]Fix the case that span is null
close #1021
@xwm1992 xwm1992 added this to the 1.6.0 milestone Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants