[jbosscache-issues] [JBoss JIRA] (JBCACHE-1628) NullPointerException in AsyncCacheLoaderConfig.setProperties
Dennis Reed (JIRA)
jira-events at lists.jboss.org
Thu Dec 6 16:55:17 EST 2012
[ https://issues.jboss.org/browse/JBCACHE-1628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Reed updated JBCACHE-1628:
---------------------------------
Workaround Description:
Add another property to the CacheLoader configuration named "properties" with an empty map:
<property name="properties"><map/></property>
was:
Add another property named "properties" with an empty Properties map:
<property name="properties">
<map class="java.util.Properties" keyClass="java.lang.String" valueClass="java.lang.String"/>
</property>
> NullPointerException in AsyncCacheLoaderConfig.setProperties
> ------------------------------------------------------------
>
> Key: JBCACHE-1628
> URL: https://issues.jboss.org/browse/JBCACHE-1628
> Project: JBoss Cache
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Cache loaders
> Affects Versions: 3.2.8.GA
> Reporter: Dennis Reed
> Assignee: Dennis Reed
>
> When using a cache loader with async=true, but without an explicit "properties" configuration set, AsyncCacheLoaderConfig.setProperties throws a NullPointerException:
> Caused by: java.lang.NullPointerException
> at org.jboss.cache.loader.AsyncCacheLoaderConfig.setProperties(AsyncCacheLoaderConfig.java:121)
> at org.jboss.cache.config.CacheLoaderConfig$IndividualCacheLoaderConfig.populateFromBaseConfig(CacheLoaderConfig.java:207)
> at org.jboss.cache.loader.AsyncCacheLoaderConfig.<init>(AsyncCacheLoaderConfig.java:57)
> at org.jboss.cache.loader.AsyncCacheLoader.setConfig(AsyncCacheLoader.java:143)
> at org.jboss.cache.loader.CacheLoaderManager.createCacheLoader(CacheLoaderManager.java:269)
> at org.jboss.cache.loader.CacheLoaderManager.createCacheLoader(CacheLoaderManager.java:195)
> at org.jboss.cache.loader.CacheLoaderManager.injectDependencies(CacheLoaderManager.java:106)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosscache-issues
mailing list