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
The stream has no active subscriptions when using camel-quarkus-smallrye-reactive-messaging #1851
Comments
further investigation shows that following code is not really respected on startup as the init method is still invoked and actually overrides the reactive instance which makes it to register to publishers but only one subscriber and that's why the exception is thrown as the publisher used is the one without any subscribers. the only workaround I found is to do a null check on reactive field in Smallrye Reactive Massaging Camel component which made it work. |
Thanks for investigating. I'll look into seeing if there's a short term fix for |
@jamesnetherton excellent, thanks. let me know if you need me to give it a try or any additional info is needed. |
@mswiderski are you able to point me at the code for your application? It'd help me to write an integration test that replicates the problem. |
have a look at the attached sample |
There's a change in Until then, I'll see if we can work around the problem, but it is proving to be quite tricky to do. |
Excellent! thanks a lot @jamesnetherton do you know if it will make it before 1.2.0? |
The good news is that 2.4.0 is planned to be released tomorrow, so it should make Quarkus 1.9.0 & Camel Quarkus 1.2.0. |
I am seeing the same issue in camel reactive streams |
@sqasim2329 could you please file a new issue, ideally with a minimal reproducer app? |
I encountered the same issue with pulsar component, it is a simple project..with inbound config like the following
Quarkus has the following warning Quarkus is the latest 1.11.3.Final =================================
2021-02-17 23:13:43,386 ERROR [org.apa.cam.pro.err.DefaultErrorHandler] (pulsar-external-listener-3-1) Failed delivery for (MessageId: 0C994938016BAD2-0000000000000004 on ExchangeId: 0C994938016BAD2-0000000000000005). Exhausted after delivery attempt: 1 caught: java.lang.IllegalStateException: The stream has no active subscriptions
|
When using
camel-quarkus-smallrye-reactive-messaging
to simply receive messages when new files show up in a folder I getI tried Quarkus 1.7 and 1.8 with camel-quarkus-smallrye-reactive-messaging 1.1.0
The code is really simple as it consists of following class
and then
application.properties
have followingas soon as file exists in that folder (
/tmp/orders
) it constantly throws above exception.Any ideas what do I miss to make this work properly?
The text was updated successfully, but these errors were encountered: