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] #722

Open
tspannhw opened this issue Nov 16, 2022 · 2 comments
Open

[BUG] #722

tspannhw opened this issue Nov 16, 2022 · 2 comments
Labels

Comments

@tspannhw
Copy link

Describe the bug
Send fails on Pulsar 2.10.1 server as AOP/RabbitMQ libraries don't set a producer.

To Reproduce

send a message

https://github.com/tspannhw/airquality/blob/main/src/main/java/dev/datainmotion/airquality/service/AMQPService.java

Expected behavior

messages sends to topic no error

Screenshots

amqp send at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "String.startsWith(String)" because "producerName" is null
at org.apache.pulsar.broker.service.persistent.MessageDeduplication.isDuplicate(MessageDeduplication.java:327) ~[org.apache.pulsar-pulsar-broker-2.10.1.jar:2.10.1]
at org.apache.pulsar.broker.service.persistent.PersistentTopic.publishMessage(PersistentTopic.java:428) ~[org.apache.pulsar-pulsar-broker-2.10.1.jar:2.10.1]
at io.streamnative.pulsar.handlers.amqp.MessagePublishContext.publishMessages(MessagePublishContext.java:103) ~[?:?]
at io.streamnative.pulsar.handlers.amqp.impl.PersistentExchange.writeMessageAsync(PersistentExchange.java:112) ~[?:?]
at io.streamnative.pulsar.handlers.amqp.AmqpChannel.lambda$deliverCurrentMessageIfComplete$8(AmqpChannel.java:552) ~[?:?]

@GhostBoyBoy
Copy link
Contributor

#530

@GhostBoyBoy
Copy link
Contributor

GhostBoyBoy commented Nov 21, 2022

You can try version AoP2.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants