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

Cannot configure cache loader using new configuration api

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 5.1.0.CR1
    • 5.1.0.BETA5
    • Configuration
    • None

      There are a few issues here:
      1. LoadersConfigurationBuilder stores individual loader builders in a List<LoaderConfigurationBuilder>, but that list is never instantiated, thus NPEs
      2. LoaderConfigurationBuilder stores properties in a Properties object, but that too is never instantiated. Thus one must call withProperties(Properties) before calling addProperty(..., ...).
      3. The LoaderConfiguration constructor, via the AbstractTypedPropertiesConfiguration constructor, calls Immutables.immutableTypedPropreties(...) on the properties object. However, this method always fails for a non-empty properties object, since the ImmutableTypedProperties constructor tries to call ImmutableTypedProperties.putAll(...) which throws an UnsupportedOperationException. I'm guess this issue affects more than just the loaders, but probably any configuration object that uses generic properties.

              pmuiratbleepbleep Pete Muir (Inactive)
              pferraro@redhat.com Paul Ferraro
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: