Initialization Cache F42UI11

redah

Member
i have an error in the program P4210 when i want to validate the order : 078L => Initialization of cache F42UI11 failed

CAUSE . . . . Cache &1 may not be able to be initialized because of an
invalid user handle or not enough memory allocated to hold
JDECACHE structures.
RESOLUTION. . Verify that a valid user handle is being passed back from
JDB_InitBhvr and that you have enough memory allocated. Check
the JDE.LOG and JDEDEBUG.LOG for additional information.
How can i fix this problem : is it a problem with the cache ? memory allocated to the cache is not enoughh ???
The BSFN concerned is B4200311, this is a copy oh the source where i have the error
if (lpDS->cCMWriteToWFFlag == '2')
{
/**************************************************************************
* If the cache has not already been opened, open it. F42UI11
**************************************************************************/
if (lpds4200310B->hF42UI11Cache == (HCACHE) NULL)
{
/*SAR 3360837-Begin
jdeCacheResult = jdeCacheInit(lpds4200310B->hUser, &hF42UI11Cache,
"F42UI11", jdecmIndexF42UI11);
*/
jdeCacheResult = I4200310_InitiateF42UI11Cache (lpBhvrCom,
lpVoid,
lpds4200310B->hUser,
&hF42UI11Cache);
/*SAR 3360837-End*/
if (jdeCacheResult == JDECM_PASSED)
{
lpds4200310B->hF42UI11Cache = hF42UI11Cache;
}
}
else
{
hF42UI11Cache = lpds4200310B->hF42UI11Cache;
}
/**************************************************************************
* If the cache has not already been opened, open it. F42UI12
**************************************************************************/
if (lpds4200310B->hF42UI12Cache == (HCACHE) NULL)
{
/*SAR 3360837-Begin
jdeCacheResult = jdeCacheInit(lpds4200310B->hUser, &hF42UI12Cache,
"F42UI12", jdecmIndexF42UI12);
*/
jdeCacheResult = I4200310_InitiateF42UI12Cache (lpBhvrCom,
lpVoid,
lpds4200310B->hUser,
&hF42UI12Cache);
/*SAR 3360837-End*/

if (jdeCacheResult == JDECM_PASSED)
{
lpds4200310B->hF42UI12Cache = hF42UI12Cache;
}
}
else
{
hF42UI12Cache = lpds4200310B->hF42UI12Cache;
}
/**************************************************************************
* F42UI11 - Open Cursor
**************************************************************************/
if (jdeCacheResult == JDECM_PASSED)
{
jdeCacheResult = jdeCacheOpenCursor(hF42UI11Cache, &hF42UI11Cursor);
/*SAR 4483601-Begin*/
if (jdeCacheResult==JDECM_PASSED)
{
jdeCacheResult=jdeCacheSetIndex(hF42UI11Cache,hF42UI11Cursor,1);
}/*SAR 4483601-End*/
if ((cLoadingfromCart == 'Y') && (jdeCacheResult != JDECM_PASSED))
{
bShopCartEmpty = TRUE;
}
}
else
{
/*SAR 2898782*/
if ((jdeCacheResult == JDECM_FAILED) &&
(!bShopCartEmpty))
{
idErrorFlag += 2;
memset((void *)&dsDE0022, (int)'\0', sizeof(dsDE0022));
strcpy((char *)dsDE0022.szDescription, (const char *)"F42UI11");
jdeSetGBRErrorSubText(lpBhvrCom, lpVoid, (ID)0,
"078L", &dsDE0022);
}
}
/**************************************************************************
* F42UI12 - Open Cursor
**************************************************************************/
if (jdeCacheResult == JDECM_PASSED)
{
jdeCacheResult = jdeCacheOpenCursor(hF42UI12Cache, &hF42UI12Cursor);
/*SAR 3360837-Begin*/
if (jdeCacheResult == JDECM_PASSED)
{
jdeCacheResult = jdeCacheSetIndex(hF42UI12Cache,
hF42UI12Cursor,
1);
}
/*SAR 3360837-End*/
if ((cLoadingfromCart == 'Y') && (jdeCacheResult != JDECM_PASSED))
{
bShopCartEmpty = TRUE;
}
}
else
{
/*SAR 2898782*/
if ((jdeCacheResult == JDECM_FAILED) &&
(!bShopCartEmpty))
{
idErrorFlag += 2;
memset((void *)&dsDE0022, (int)'\0', sizeof(dsDE0022));
strcpy((char *)dsDE0022.szDescription, (const char *)"F42UI11");
jdeSetGBRErrorSubText(lpBhvrCom, lpVoid, (ID)0,
"078L", &dsDE0022);
}
}
}
 
Back
Top