Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-13607

Nullpointer Exception in class RemoteInfinispanCaceMeterBinder when using infinispan-spring-boot-starter-remote in a Spring project with multiple Cache Managers and Spring Actuator

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 13.0.5.Final
    • Spring Integration
    • None

      When using infinispan-spring-boot-starter-remote in a Spring Project with multiple Cache Managers and Spring actuator, the class org.infinispan.spring.starter.remote.actuator.RemoteInfinispanCacheMeterBinderProvider creates a new Instance of RemoteInfinispanCacheMeterBinder using null as the cache construtor param for unsupported caches. This leads directly to a NullPointerException in org.infinispan.spring.starter.remote.actuator.RemoteInfinispanCacheMeterBinder (see Line 21 cache.getName()). According to the Spring API Documentation the method getMeterBinder should return null for unsupported caches (see https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/actuate/metrics/cache/CacheMeterBinderProvider.html).

              karestig@redhat.com Katia Aresti
              mathias.boehm@struktuhr.de Mathias Böhm (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: