I experienced such an error only if the deployment of the SU(SA) failed
before and then
the same is deployed once again. If it deploys correctly and I try to
redeploy then it works fine.
Lars
wuwei schrieb:
> Hi, I use the SM 3.2, OK, when I remove a endpoint and then add a same name
> endpoint in a SU(for requirement, not for borings). I met the error
>
> "More than one endpoint found in the SU for key:... "
>
>
> I find the code in the org.apache.servicemix.common.ServiceUnit
> ...
> public void removeEndpoint(Endpoint endpoint) throws DeploymentException
> {
> if (this.endpoints.remove(endpoint) != null) {
> throw new DeploymentException("Endpoint not found in the SU for
> key: " + EndpointSupport.getKey(endpoint));
> }
> ...
> }
> ...
>
> the endpoints is defined by:
> protected Map<String, Endpoint> endpoints = new LinkedHashMap<String,
> Endpoint>();
>
> yes, this one:
> "this.endpoints.remove(endpoint) " equals null. so the
> "this.endpoints.remove(endpoint) != null" is not useful.
>
> make sense?
> Thanks.
>
>