DWR

BaseCallMarshaller.marshallOutbound() results in ConcurrentModificationException error in log

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Cannot Reproduce
  • Affects Version/s: 2.0.5
  • Fix Version/s: 3.0
  • Component/s: DWRP
  • Description:
    Hide
    Occasionally we're seeing the following in our logs:

    2008-09-30 16:09:44,265 ERROR org.directwebremoting.dwrp.BaseCallMarshaller --MarshallException: batchId=[some batch ID here] message=java.util.ConcurrentModificationException

    It's unclear what's causing the error thus far but looking at the code for BaseCallMarshaller (which suggests that the MarshallException 'is a bit of a "this can't happen" case') it appears that one of the method calls in the try block is triggering a ConcurrentModificationException.
    Show
    Occasionally we're seeing the following in our logs: 2008-09-30 16:09:44,265 ERROR org.directwebremoting.dwrp.BaseCallMarshaller --MarshallException: batchId=[some batch ID here] message=java.util.ConcurrentModificationException It's unclear what's causing the error thus far but looking at the code for BaseCallMarshaller (which suggests that the MarshallException 'is a bit of a "this can't happen" case') it appears that one of the method calls in the try block is triggering a ConcurrentModificationException.

Activity

Hide
Joe Walker added a comment - 30/Oct/08 1:52 PM

I think that it's likely that DWR isn't at fault here, it's just trying to iterate over a collection as something else changes it. You should probably clone the collection before passing it to DWR if it is likely to change.
Please re-open if you don't think this can be the issue.

Show
Joe Walker added a comment - 30/Oct/08 1:52 PM I think that it's likely that DWR isn't at fault here, it's just trying to iterate over a collection as something else changes it. You should probably clone the collection before passing it to DWR if it is likely to change. Please re-open if you don't think this can be the issue.

People

Dates

  • Created:
    01/Oct/08 12:10 AM
    Updated:
    31/Oct/08 2:57 PM
    Resolved:
    30/Oct/08 1:52 PM