Skip to content

Commit

Permalink
RabbitMQ CachingConnectionFactory is wrapped into CGLIB proxy which l…
Browse files Browse the repository at this point in the history
…eads to NPE on start (port to 1.0) jmix-framework#243

(cherry picked from commit 4bb6b0a)
  • Loading branch information
knstvk committed Oct 4, 2021
1 parent cf714a7 commit f8fa7d7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
@Aspect
public class ManagedResourceAspect {

@AfterThrowing(pointcut = "@within(org.springframework.jmx.export.annotation.ManagedResource)", throwing = "throwable")
@AfterThrowing(pointcut = "@within(org.springframework.jmx.export.annotation.ManagedResource) && within(io.jmix..*)",
throwing = "throwable")
public void writeToLog(JoinPoint joinPoint, Throwable throwable) {
Logger logger = LoggerFactory.getLogger(joinPoint.getTarget().getClass());
logger.error("Error executing MBean method", throwable);
Expand Down

0 comments on commit f8fa7d7

Please sign in to comment.