Team,
Value must be initialized before use.
Its possible that a method called on a Java object created by CreateObject returned null.
This works perfectly fine if i disable the null support.
I tried to debug more into the root cause of this and found that the cache instances are not getting intitialized in initCacheCommandMap function in BeanCache.cfc
viz the code below is having problems
<cffunction name="initCacheCommandMap" hint="initialises the cache command map" access="private" returntype="void" output="false">
<cfscript>
var map = {
singleton = getSingletonCache
,prototype = getPrototypeCache
,request = getRequestCache
,session = getSessionCache
};
setCacheCommandMap(map);
</cfscript>
</cffunction>
if i check the dump of getSingletonCache function viz
<cffunction name="getSingletonCache" access="private" returntype="struct" output="false"
colddoc:generic="string,coldspring.beans.support.BeanDefinition">
<cfreturn instance.singletonCache />
</cffunction>
i found that the instance.singletonCache is not getting initialized, when the null support is enabled.
Has any one else faced this issue or any further insights into the root cause of this would be really helpful, since i don't understand the code-base of the framework completely,
Appreciate your help.
Thank,
Ashu