Arkady Zelekman created CXF-8142:
------------------------------------
Summary: WSDLManager.removeDefinition doesn't work well
Key: CXF-8142
URL: https://issues.apache.org/jira/browse/CXF-8142
Project: CXF
Issue Type: Bug
Components: Core
Affects Versions: 3.3.3
Reporter: Arkady Zelekman
Attachments: CXF_TEST.7z
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
--
This message was sent by Atlassian Jira
(v8.3.4#803005)