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

RabbitMQ CachingConnectionFactory is wrapped into CGLIB proxy which leads to NPE on start #240

Closed
knstvk opened this issue Oct 1, 2021 · 0 comments
Assignees
Labels
type: bug Something isn't working
Milestone

Comments

@knstvk
Copy link
Contributor

knstvk commented Oct 1, 2021

Presumably because Jmix adds an AOP interceptor to all @ManagedResource beans in ManagedResourceAspect.

2021-09-30 22:49:20.613  INFO 35757 --- [           main] o.s.aop.framework.CglibAopProxy          : Unable to proxy interface-implementing method [public final org.springframework.amqp.rabbit.connection.Connection org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createConnection() throws org.springframework.amqp.AmqpException] because it is marked as final: Consider using interface-based JDK proxies instead!
2021-09-30 22:50:20.380 ERROR 35757 --- [    container-1] o.s.amqp.rabbit.core.RabbitAdmin         : Error executing MBean method

java.lang.NullPointerException: null
	at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createConnection(CachingConnectionFactory.java:721) ~[spring-rabbit-2.3.9.jar:2.3.9]
	at org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils.createConnection(ConnectionFactoryUtils.java:216) ~[spring-rabbit-2.3.9.jar:2.3.9]

Reported on forum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant