-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Unable to register MBean - Invalid character `:' in value #3051
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
The
Looks like something similar must happen in Spring Boot or Spring Framework.
Although, you can add an explicit bean name for that MQTT endpoint to workaround this problem:
|
I mean the issue is there, but it is not a part of Spring Integration to fix. @philwebb , any thoughts about quoting MBean names in Spring Boot? |
Oh! Sorry, @Stiuil06 . The
|
As I wrote in opening post in this case (Configuring with Java Configuration) it works, but not work for Configuring with the Java DSL. (I refer to that). Now I notice, that im working on 5.1.7.RELEASE, and example from the above documentation is for 5.2.0.BUILD-SNAPSHOT. Maybe it will be work on this build. |
On the other hand it is not clear how this Spring Integration component (marked with
and there is a @Stiuil06 , It looks like would be great if you can share a simple project with us to play with and reproduce. Thanks for understanding. |
@artembilan I mean to change version of all spring components which I use. (boot etc.) I create simple project with that issue. Thanks for all your help and time. |
OK. Another solution is for you like this:
So, all Spring Integration components are going to be registered in JMX by the Spring Integration mechanism. Anyway I think we still have quoting problem in the regular Spring Boot/Spring Framework solution. /CC @philwebb |
Spring Boot is just delegating to |
would you mind sharing with us your final experience? It looks like we agreed with Spring Boot team that an issue has to be resolved on the core level if at all... Thanks |
@artembilan
as you advised, and it work for me. Sure, we should move issue to spring-framework. |
Great! Good to know that workaround has made it! Well, looks like I don't have permissions to move issue over there. |
@artembilan So I opened new issue there. |
Thanks, @Stiuil06 ! We will keep this issue opened until resolution on that SF one. |
google brought me here.. I think it is rather unfortunate that the quickstart given in documentation here: |
I'm sorry to hear about your bad experience, but unfortunately that code snippet does nothing with JMX, so the problem you are facing is really out of that chapter scope. Of course, there is another workaround to provide a custom naming strategy instead of an out-of-the-box one in Spring Boot:
But this one not easier then just adding |
The fix has landed in Spring Framework via: spring-projects/spring-framework#23608. Nothing to do on Spring Integration side. |
Hi all.
I have similar(I think) issues to spring-cloud-stream/#1497 when I try run application to listening mqtt broker.
Im trying to run this code:
https://docs.spring.io/spring-integration/docs/5.2.0.BUILD-SNAPSHOT/reference/html/mqtt.html#configuring-with-the-java-dsl
Configuring with the Java DSL
for Configuring with Java Configuration everything works.
My stacktrace
My code
My main pom
pom for this module
The text was updated successfully, but these errors were encountered: