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

WSDLManager.removeDefinition doesn't work well

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.3.3
    • None
    • Core
    • None
    • Unknown

    Description

      WSDLManager.removeDefinition still doesn't work in cxf-core-3.3.3

      The problem is in org.apache.cxf.common.util.CacheMap class: "extraKeyMap" sometimes contains multiple entries for the same wsdl.

      I tried to understand why 2 maps (mainDataMap and extraKeyMap) are need, but didn't success. If I change these maps to be ConcurrentHashMap so everything works find.

      I attached project of Eclipse which reproduces the problem.

      Output:

      Definition removed for: http://10.110.108.41/services/SMPConfig?wsdl. Number of occurrences: 1. Definition still exist: false
      Definition added for: http://10.110.108.41/services/SMPConfig?wsdl
      Definition removed for: http://10.110.108.41/services/SMPConfig?wsdl. Number of occurrences: 1. Definition still exist: false
      Definition added for: http://10.110.108.41/services/SMPConfig?wsdl
      Definition removed for: http://10.110.108.41/services/SMPConfig?wsdl. Number of occurrences: 2. Definition still exist: false
      Definition added for: http://10.110.108.41/services/SMPConfig?wsdl
      Definition removed for: http://10.110.108.41/services/SMPConfig?wsdl. Number of occurrences: 2. Definition still exist: false
      Definition added for: http://10.110.108.41/services/SMPConfig?wsdl
      Definition removed for: http://10.110.108.41/services/SMPConfig?wsdl. Number of occurrences: 1. Definition still exist: false
      Definition added for: http://10.110.108.41/services/SMPConfig?wsdl
      Definition removed for: http://10.110.108.41/services/SMPConfig?wsdl. Number of occurrences: 1. Definition still exist: false

      Attachments

        1. CXF_TEST.7z
          2.89 MB
          Arkady Zelekman

        Activity

          People

            Unassigned Unassigned
            arkadyz Arkady Zelekman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: