[infinispan-issues] [JBoss JIRA] (ISPN-1582) Cannot configure cache loader using new configuration api

Tristan Tarrant (Resolved) (JIRA) jira-events at lists.jboss.org
Fri Dec 2 03:46:41 EST 2011


     [ https://issues.jboss.org/browse/ISPN-1582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tristan Tarrant resolved ISPN-1582.
-----------------------------------

    Resolution: Done

    
> Cannot configure cache loader using new configuration api
> ---------------------------------------------------------
>
>                 Key: ISPN-1582
>                 URL: https://issues.jboss.org/browse/ISPN-1582
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 5.1.0.BETA5
>            Reporter: Paul Ferraro
>            Assignee: Pete Muir
>            Priority: Blocker
>             Fix For: 5.1.0.CR1
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list