-
Notifications
You must be signed in to change notification settings - Fork 38.5k
SimpAnnotationMethodMessageHandler fails when no applicationDestinationPrefixes configured or Rabbit endpoint present [SPR-13704] #18279
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
Comments
Juergen Hoeller commented Juliusz Piwoński, could you please give a recent Juergen |
Juliusz Piwoński commented sure, just give me a while |
Juergen Hoeller commented No hurries - it'd just be great to verify ahead of the releases on Dec 15... Juergen |
Juliusz Piwoński commented Hi Juergen,
and it seems that But now I was hit by another exception (also while creating STOMP subscription):
What is important both exceptions (this one and the previous) don't break stomp functionality. Subscription message passed is handled by rabbit broker and works later on.
|
Juergen Hoeller commented Thanks for the follow-up, I'll have a look at what happens there in Juergen |
Juergen Hoeller commented The error message is a bit misleading there: It indicates that the payload value was empty, which we do not accept by default. You may add In any case, I'll make that error message clearer. Juergen |
Juergen Hoeller commented Hmm, aside from the misleading exception message, it looks like our STOMP endpoint dispatcher is getting confused with your Rabbit endpoint there... possibly due to Juergen |
Juergen Hoeller commented I've added an explicit check to ignore The next Juergen |
Juergen Hoeller commented Just to confirm my assumption: You have Juergen |
Juliusz Piwoński commented
|
Juergen Hoeller commented Ah ok, makes sense that way as well. When Good to hear that it works for you now :-) Juergen |
Juliusz Piwoński opened SPR-13704 and commented
There is unguarded access to first iterator element at:
SimpAnnotationMethodMessageHandler.handleMatch
which causes
NoSuchElementException
in case noorg.springframework.messaging.simp.config.MessageBrokerRegistry#setApplicationDestinationPrefixes
is set.Affects: 4.1.8, 4.2.3
Referenced from: commits 5549436, 4b27a6d, f119962, e8417ea
Backported to: 4.1.9
The text was updated successfully, but these errors were encountered: