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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 13.0.5.Final
    • Spring Integration
    • None

    Description

      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).

      Attachments

        Activity

          People

            karestig@redhat.com Katia Aresti
            mathias.boehm@struktuhr.de Mathias Böhm (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: