WebORB for Java

Possible collection synchronization issue

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 4.0
  • Fix Version/s: 4.0
  • Component/s: None
  • Labels:
    None

Description

in WebServiceHandler.java, method invoke contains the following code:


    if( serviceInfo == null )
      serviceInfo = WebServicesUtils.lookupByPrefix( targetObject, serviceCache );

inside of lookupByPrefix the code iterates over the keys in serviceCache. If another request comes in and serviceCache is updated in a different thread, the first loop will throw and exception. The collection should be synchronized during the iteration.

Activity

People

Vote (0)
Watch (0)

Dates

  • Created:
    30/Jul/10 12:54 PM
    Updated:
    31/Jul/10 2:28 AM
    Resolved:
    31/Jul/10 2:28 AM