Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-1649

localtransport Concurrent problem

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1.1, 2.0.7
    • Component/s: Transports
    • Labels:
      None

      Description

      I start 20 service with localtransport like this:
      <jaxws:server xmlns:jaxws="http://cxf.apache.org/jaxws" id="kimberlyServiceLocalServer" serviceBean="#kimberlyWebService" address="local://KimberlyService">
      <jaxws:serviceFactory>
      <ref bean="jaxws-and-xmlbean-service-factory" />
      </jaxws:serviceFactory>
      </jaxws:server>

      and start 20 client call those local service:

      <jaxws:client xmlns:jaxws="http://cxf.apache.org/jaxws" id="kimberlyServiceClient" serviceClass="com.KimberlyWebService" address="local://KimberlyService">
      <jaxws:binding>
      <soap:soapBinding xmlns:soap="http://cxf.apache.org/bindings/soap" mtomEnabled="true" version="1.2" />
      </jaxws:binding>
      <jaxws:dataBinding>
      <bean class="org.apache.cxf.xmlbeans.XmlBeansDataBinding" />
      </jaxws:dataBinding>
      </jaxws:client>

      when I run call client I meet this error, and sometime it can success.

      Exception in thread "Thread-11" java.util.ConcurrentModificationException
      at java.util.HashMap$HashIterator.nextEntry(HashMap.java:841)
      at java.util.HashMap$EntryIterator.next(HashMap.java:883)
      at java.util.HashMap$EntryIterator.next(HashMap.java:881)
      at org.apache.cxf.transport.local.LocalTransportFactory.copy(LocalTransp
      ortFactory.java:166)
      at org.apache.cxf.transport.local.LocalConduit$1$1.run(LocalConduit.java
      :123)
      at java.lang.Thread.run(Thread.java:595)
      2008-6-13 13:50:38 org.apache.cxf.endpoint.ClientImpl waitResponse
      警告: Timed out waiting for response to operation

      {http://www.test.com/schema/ aes}

      SaveCommodity.

        Attachments

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              ispx_team ispx_team
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: