[
https://issues.jboss.org/browse/JBCACHE-1628?page=com.atlassian.jira.plug...
]
Dennis Reed updated JBCACHE-1628:
---------------------------------
Workaround Description:
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>
Workaround: Workaround Exists
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