You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Ruwan Linton (JIRA)" <ji...@apache.org> on 2008/05/21 11:47:55 UTC

[jira] Commented: (SYNAPSE-322) AbstractTransport listener adds the observer twice

    [ https://issues.apache.org/jira/browse/SYNAPSE-322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598606#action_12598606 ] 

Ruwan Linton commented on SYNAPSE-322:
--------------------------------------

This can be solved by removing the observer add in the start method. I see the init method as better fitting for the observer registration.

At the same time I think we should check for the existence of the MBean before unregistering the MBean from the MBeanServer. AbstractTransportListener:454

> AbstractTransport listener adds the observer twice
> --------------------------------------------------
>
>                 Key: SYNAPSE-322
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-322
>             Project: Synapse
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 1.2-QA-B3
>            Reporter: Ruwan Linton
>            Assignee: Ruwan Linton
>            Priority: Blocker
>             Fix For: 1.2
>
>
> AbstractTransportListener adds the axisobserver for service management tasks twice. First time inside the init method and then on the start method. When you do ListenerManager.addListener() in axis2 it will first init the listener and then start the listener.
> There fore according to the above behavior there are two observer references to a particular transport in the observerlist of the AxisConfiguration
> This does not affect the normal path, but if you try to undeploy a service it will be invoked twice and tries to remove the JMX MBeans twice which leads to an exception. 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org