ColdBox Forums Notification: Post to Using ioc plugin in viewlet event handler

Title: RE: Using ioc plugin in viewlet event handler
Thread: Using ioc plugin in viewlet event handler
Forum: Need Help?
Conference: ColdBox
User: doryphores Luis,

I think I may have fixed this. Here's what I found on Java HashMaps:
The iterators returned by all of this class's "collection view methods" are
fail-fast: if the map is structurally modified at any time after the iterator is
created, in any way except through the iterator's own remove or add methods, the
iterator will throw a ConcurrentModificationException. Thus, in the face of
concurrent modification, the iterator fails quickly and cleanly, rather than
risking arbitrary, non-deterministic behavior at an undetermined time in the

So, in the reap method, I replaced the "for (key in objStruct)" with a cfloop
over the list of keys (returned by structLeyList) and the error disappeared.
Remember that you should run this on CF7 (or maybe with the multi threading
option disabled on CF8).

Let me know what you think.