Skip,
The widget models are kept in a memory cache and the model instances are
shared among threads. There were a number of thread-safe issues in the
9.x widget models. Some have been fixed, others have Jira issues and
still need to be fixed. It is not uncommon for thread-safe bugs to
appear sporadically - since the bug is timing-dependent. If you have a
specific revision number, I might be able to suggest a fix.
-Adrian
On 5/25/2011 6:19 PM, SkipDever wrote:
I am frequently getting a java.util.ConcurrentModificationException from:
java.util.LinkedList$ListItr.next()
org.ofbiz.widget.form.ModelForm.renderHeaderRow(ModelForm.java:1074)
....
I only get this error using a Centos server. Another server running Windows
has no similiar complaint.
I looked at the code and cannot possibly see how a single copy of the
ModelForm object could be used in multiple threads? The list causing the
grief is the fieldList and a new one is instantiated each time the modelform
is created, i.e. it is not static.
This server runs for a few days before this error occurs.
Note that this exception is from 9.0 based ofbiz code. I did a comparison
of the 9x code and the 10.x ModelForm.java code and see that this stuff has
been almost completely rewritten.
Anyone have any insite?
Skip