Hello all,

I use MachII and use a ?reloadall variant while developing, which does a structClear(application) and structClear(session) to make sure the application gets a 'fresh start'. Since a little while however, I occasionally run into a situation where coldspring throws a 'Cache error, customerDG already exists in cache' in the addBeanToSingletonCache method (DefaultXmlBeanFactory.cfc:751) when it is handling my services.xml.

Now...
- there's only 1 customerDG defined in services.xml, which then is used in 2 other components - there are a lot of components defined in services.xml, but when the error occurs, it always involves customerDG - I'm the only person developing this application, so other requests (which would make this a multithreading issue) can be ruled out - the error happens almost everytime I reloadd my app, after working with it for a while. If I just reload a couple of times without doing anything else in the app, the error occurs far less often. Maybe 1 in 20 times.
- whenever it happens, the next request renders things just fine
- there aren't any errors or typos in customerDG (or any other component for that matter) since the application runs fine, once coldspring manages to instantiate everything.

Anyone any ideas on how to troubleshoot this? The difficult part is that I can't reproduce it on command yet...

Regards,
Ruud Hermans





Reply via email to