Russ,I got this same error earlier this week. It occured after a user
double-clicked on a form submission (sending two requests) right after the CF
server was restarted. Here's the partial stack trace:CFEX 04/19/07 14:39:22
"Error","jrpp-2","04/19/07","14:39:22","ESURVEY","Cache error,
Campaign.AccessManager already exists in cache
C:\MBM\Inetpub\wwwroot\extensions\coldspring\beans\DefaultXmlBeanFactory.cfc:751
C:\MBM\Inetpub\wwwroot\extensions\coldspring\beans\DefaultXmlBeanFactory.cfc:400
C:\MBM\Inetpub\wwwroot\extensions\coldspring\beans\DefaultXmlBeanFactory.cfc:332
C:\MBM\Inetpub\wwwroot\edu\utah\hsc\mbm\Survey\Controller\Listeners\Questionnaire\QuestionnaireListener.cfc:224My
code was calling getBean("Campaign.AccessManager") in
DefaultXMLBeanFactory.cfc. I looked at the CS source and it looks like
DefaultXMLBeanFactory has insufficient logic to prevent constructBean() and
addSingletonToCache() from being called simultaneously from two different
requests for the same bean. It does have enough locking in
addBeanToSingletonCache() to prevent a cached singleton from being overwritten,
which is what caused my exception to be thrown.If your beans are singletons,
this race condition should only happen on the first request for a particular
bean. JonDate: Wed, 25 Apr 2007 17:51:45 -0400From: [EMAIL PROTECTED]: [EMAIL
PROTECTED]: [coldspring-dev] Object already exists in cache exceptionI have
been dealing with this on a new application Im developing.. We just started
user testing and it happens every once in a while.. it may go a few days
without it then all of the sudden Bam, it throws the error.
My site is using Fusebox5 and Coldspring and I call my beans using the Lexicons
only in the controller circuit.xml.cfm files.I for the life of me cant figure
out whats causing it. My boss is starting to get annoyed because I really
pushed to use Coldspring for this project and its biting me in the rear end. I
have used this same setup of FB5 and Coldspring on several apps before and have
never seen this problem.
Any ideas??On 2/21/07, Stuart Miller <[EMAIL PROTECTED]> wrote:
Hi,I was wondering if anyone else has had regular occurances of the "Cache
error, [bean name] already exists in cache" exception. I have an application
that that throws these exceptions when under heavy usage.
Thanks,Stuart
-- Russ [EMAIL PROTECTED]://wwww.angry-fly.com
_________________________________________________________________
Connect to the next generation of MSN Messenger
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline