Infinispan
  1. Infinispan
  2. ISPN-1907

Enhance to bubble up exceptions that occur during instantiation/wiring of cache loader defined in xml

    Details

    • Similar Issues:
      Show 10 results 

      Description

      When using the SpringEmbeddedCacheManagerFactoryBean, any exception that occurs when attempting to instantiate a CacheStore implementation does not bubble up to the log, even with full error logging turned on. A specific failure case is inadvertently defining the CacheStore implementation property setter method with 'private' scope. Being able to see the error in the log would allow for much quicker diagnosis and resolution of the underlying issue in the implementation. Right now, the only way to find such an issue - other than to simply have it jump out at you in the CacheStore implementation code - is to tediously step through the unmarshalling process in the Infinispan source itself.

      The log is similarly silent about an incorrect setting of the CacheStore class name.

        Activity

        Hide
        Galder Zamarreño
        added a comment -

        Michael, once you fixed the property method, did the cache store get instantiated and does it work as expected?

        Based on my testing, the way configuration was built for Spring meant that cache stores would be started at all, not even constructed.

        Anyway, I'm fixing it so that parsing is done using the new parser which will show such errors.

        Show
        Galder Zamarreño
        added a comment - Michael, once you fixed the property method, did the cache store get instantiated and does it work as expected? Based on my testing, the way configuration was built for Spring meant that cache stores would be started at all, not even constructed. Anyway, I'm fixing it so that parsing is done using the new parser which will show such errors.
        Hide
        Michael Mogley
        added a comment -

        Yes, once I fixed the property method in the cache-loader implementation, it was successfully instantiated, wired up, and started.

        Show
        Michael Mogley
        added a comment - Yes, once I fixed the property method in the cache-loader implementation, it was successfully instantiated, wired up, and started.

          People

          • Assignee:
            Galder Zamarreño
            Reporter:
            Michael Mogley
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: