You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2011/01/05 07:20:47 UTC

[jira] Resolved: (SMXCOMP-836) EndpointExporter should unregister the endpoint with it if failed to create a ServiceAssembly

     [ https://issues.apache.org/jira/browse/SMXCOMP-836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved SMXCOMP-836.
----------------------------------

    Resolution: Fixed

commit fix
http://svn.apache.org/viewvc?rev=1055303&view=rev

> EndpointExporter should unregister the endpoint with it if failed to create a ServiceAssembly
> ---------------------------------------------------------------------------------------------
>
>                 Key: SMXCOMP-836
>                 URL: https://issues.apache.org/jira/browse/SMXCOMP-836
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-common
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 2011.01
>
>
> For example, in the bunlde's beans.xml we have two endpoints, the configuration like
> <endpoint1.....>
> <endpoint2......>
> <bean class="org.apache.servicemix.common.osgi.EndpointExporter" />
> somehow when deploy this bundle, it failed when register endpoint2, so that it failed to create a ServiceAssembly for this bundle, but at this moment endpoint1 already get registered, so if we fix the problem for endpoint2 and build a new bundle to redeploy, we'll see some error like Caused by: java.lang.IllegalStateException: An endpoint is already registered for key: endpoint1
> In this case, we need unregister endpoint1 also if there's something wrong which cause can't create ServiceAssmebly for this bundle

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.