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

Cannot configure cache loader using new configuration api

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

            pmuiratbleepbleep Pete Muir (Inactive)
            pferraro@redhat.com Paul Ferraro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: