Ruud, Interesting... first thing we need is relevant code:
-Your code that clears the application/session scopes (you shouldn't need to do this so I suspect this may be the root of your problem) -If the above isn't in index.cfm (or whatever template includes mach-ii.cfm), then give us that too. -Your bean definitions xml (at least the customerDG and dependent beans) -You coldspring mach-ii plugin config As a quick test - if you drop the code to clear those scopes and let mach-ii reload as normal, can you still reproduce the issue? thanks, Dave Ross On 6/29/06, Ruud Hermans <[EMAIL PROTECTED]> wrote:
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
