[
https://issues.jboss.org/browse/ISPN-1582?page=com.atlassian.jira.plugin....
]
Paul Ferraro updated ISPN-1582:
-------------------------------
Summary: Cannot configure cache loader using new configuration api (was:
configuration loader)
Affects Version/s: 5.1.0.BETA5
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.
Component/s: Configuration
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: Manik Surtani
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