You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Łukasz Dywicki (JIRA)" <ji...@apache.org> on 2010/05/19 21:52:19 UTC

[jira] Created: (FELIX-2349) JMX Notifications

JMX Notifications
-----------------

                 Key: FELIX-2349
                 URL: https://issues.apache.org/jira/browse/FELIX-2349
             Project: Felix
          Issue Type: Bug
          Components: Karaf
    Affects Versions: karaf-1.4.0
         Environment: Sun VM 1.6
            Reporter: Łukasz Dywicki


The JMX notification stuff is currently broken. I am not able to add JMX listener to FeaturesServiceMBean:
{code}
The specified MBean [org.apache.felix.karaf:type=features,name=root] is not a NotificationBroadcaster object.
{code}

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


[jira] Resolved: (FELIX-2349) JMX Notifications

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved FELIX-2349.
------------------------------------

         Assignee: Guillaume Nodet
    Fix Version/s: karaf-1.6.2
       Resolution: Fixed

URL: http://svn.apache.org/viewvc?rev=952712&view=rev

Łukasz, could you give it a try and make sure it works ?

> JMX Notifications
> -----------------
>
>                 Key: FELIX-2349
>                 URL: https://issues.apache.org/jira/browse/FELIX-2349
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>    Affects Versions: karaf-1.4.0
>         Environment: Sun VM 1.6
>            Reporter: Łukasz Dywicki
>            Assignee: Guillaume Nodet
>             Fix For: karaf-1.6.2
>
>         Attachments: management-notification.diff
>
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> The JMX notification stuff is currently broken. I am not able to add JMX listener to FeaturesServiceMBean:
> {code}
> The specified MBean [org.apache.felix.karaf:type=features,name=root] is not a NotificationBroadcaster object.
> {code}

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


[jira] Commented: (FELIX-2349) JMX Notifications

Posted by "Łukasz Dywicki (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12877044#action_12877044 ] 

Łukasz Dywicki commented on FELIX-2349:
---------------------------------------

Hello Guillaume,
FeaturesServiceMBean don't start due exception:

13:09:15,918 | ERROR | rint Extender: 1 | BlueprintContainerImpl           | container.BlueprintContainerImpl  342 | 8 - org.apache.aries.blueprint - 0.1.0.incubating | Unable to start blueprint container for bundle org.apache.felix.karaf.features.management
org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to convert value BeanRecipe[name='#recipe-2'] to type class java.util.ArrayList
        at org.apache.aries.blueprint.di.CollectionRecipe.internalCreate(CollectionRecipe.java:82)[8:org.apache.aries.blueprint:0.1.0.incubating]
        at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[8:org.apache.aries.blueprint:0.1.0.incubating]
        at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.createListeners(AbstractServiceReferenceRecipe.java:248)[8:org.apache.aries.blueprint:0.1.0.incubating]
        at org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:90)[8:org.apache.aries.blueprint:0.1.0.incubating]
        at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[8:org.apache.aries.blueprint:0.1.0.incubating]
        at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)[8:org.apache.aries.blueprint:0.1.0.incubating]
        at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:147)[8:org.apache.aries.blueprint:0.1.0.incubating]
        at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:624)[8:org.apache.aries.blueprint:0.1.0.incubating]
        at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:315)[8:org.apache.aries.blueprint:0.1.0.incubating]
        at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:213)[8:org.apache.aries.blueprint:0.1.0.incubating]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_20]
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_20]
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_20]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_20]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)[:1.6.0_20]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_20]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_20]
        at java.lang.Thread.run(Thread.java:619)[:1.6.0_20]



> JMX Notifications
> -----------------
>
>                 Key: FELIX-2349
>                 URL: https://issues.apache.org/jira/browse/FELIX-2349
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>    Affects Versions: karaf-1.4.0
>         Environment: Sun VM 1.6
>            Reporter: Łukasz Dywicki
>            Assignee: Guillaume Nodet
>             Fix For: karaf-1.6.2
>
>         Attachments: management-notification.diff
>
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> The JMX notification stuff is currently broken. I am not able to add JMX listener to FeaturesServiceMBean:
> {code}
> The specified MBean [org.apache.felix.karaf:type=features,name=root] is not a NotificationBroadcaster object.
> {code}

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


[jira] Commented: (FELIX-2349) JMX Notifications

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12877046#action_12877046 ] 

Guillaume Nodet commented on FELIX-2349:
----------------------------------------

Did you svn up and rebuild the whole karaf from a clean state ?
It starts without any errors for me on trunk.

> JMX Notifications
> -----------------
>
>                 Key: FELIX-2349
>                 URL: https://issues.apache.org/jira/browse/FELIX-2349
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>    Affects Versions: karaf-1.4.0
>         Environment: Sun VM 1.6
>            Reporter: Łukasz Dywicki
>            Assignee: Guillaume Nodet
>             Fix For: karaf-1.6.2
>
>         Attachments: management-notification.diff
>
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> The JMX notification stuff is currently broken. I am not able to add JMX listener to FeaturesServiceMBean:
> {code}
> The specified MBean [org.apache.felix.karaf:type=features,name=root] is not a NotificationBroadcaster object.
> {code}

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


[jira] Updated: (FELIX-2349) JMX Notifications

Posted by "Łukasz Dywicki (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Łukasz Dywicki updated FELIX-2349:
----------------------------------

    Attachment: management-notification.diff

Refactor in feature managament. JMX notification works.

> JMX Notifications
> -----------------
>
>                 Key: FELIX-2349
>                 URL: https://issues.apache.org/jira/browse/FELIX-2349
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>    Affects Versions: karaf-1.4.0
>         Environment: Sun VM 1.6
>            Reporter: Łukasz Dywicki
>         Attachments: management-notification.diff
>
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> The JMX notification stuff is currently broken. I am not able to add JMX listener to FeaturesServiceMBean:
> {code}
> The specified MBean [org.apache.felix.karaf:type=features,name=root] is not a NotificationBroadcaster object.
> {code}

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


[jira] Commented: (FELIX-2349) JMX Notifications

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869676#action_12869676 ] 

Guillaume Nodet commented on FELIX-2349:
----------------------------------------

So is there anything to fix ? I'm not sure I understand.  In which case are we using a wrapper ?

> JMX Notifications
> -----------------
>
>                 Key: FELIX-2349
>                 URL: https://issues.apache.org/jira/browse/FELIX-2349
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>    Affects Versions: karaf-1.4.0
>         Environment: Sun VM 1.6
>            Reporter: Łukasz Dywicki
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> The JMX notification stuff is currently broken. I am not able to add JMX listener to FeaturesServiceMBean:
> {code}
> The specified MBean [org.apache.felix.karaf:type=features,name=root] is not a NotificationBroadcaster object.
> {code}

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


[jira] Updated: (FELIX-2349) JMX Notifications

Posted by "Łukasz Dywicki (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Łukasz Dywicki updated FELIX-2349:
----------------------------------

    Attachment: info-command.patch

Patch with single command features:info -t -c -b -d name [version] and small refactor in completers.

> JMX Notifications
> -----------------
>
>                 Key: FELIX-2349
>                 URL: https://issues.apache.org/jira/browse/FELIX-2349
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>    Affects Versions: karaf-1.4.0
>         Environment: Sun VM 1.6
>            Reporter: Łukasz Dywicki
>            Assignee: Guillaume Nodet
>             Fix For: karaf-1.6.2
>
>         Attachments: info-command.patch, management-notification.diff
>
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> The JMX notification stuff is currently broken. I am not able to add JMX listener to FeaturesServiceMBean:
> {code}
> The specified MBean [org.apache.felix.karaf:type=features,name=root] is not a NotificationBroadcaster object.
> {code}

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


[jira] Commented: (FELIX-2349) JMX Notifications

Posted by "Łukasz Dywicki (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869316#action_12869316 ] 

Łukasz Dywicki commented on FELIX-2349:
---------------------------------------

After short investigation - notofications works fine when FeaturesServiceMBeanImpl extends StandardMBean, but not when we use StandardMBean as wrapper for existing instance.

> JMX Notifications
> -----------------
>
>                 Key: FELIX-2349
>                 URL: https://issues.apache.org/jira/browse/FELIX-2349
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>    Affects Versions: karaf-1.4.0
>         Environment: Sun VM 1.6
>            Reporter: Łukasz Dywicki
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> The JMX notification stuff is currently broken. I am not able to add JMX listener to FeaturesServiceMBean:
> {code}
> The specified MBean [org.apache.felix.karaf:type=features,name=root] is not a NotificationBroadcaster object.
> {code}

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


[jira] Closed: (FELIX-2349) JMX Notifications

Posted by "Łukasz Dywicki (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Łukasz Dywicki closed FELIX-2349.
---------------------------------


Ater reverting local changes it works. Sorry for alarm.

Regards,
Lukasz

> JMX Notifications
> -----------------
>
>                 Key: FELIX-2349
>                 URL: https://issues.apache.org/jira/browse/FELIX-2349
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>    Affects Versions: karaf-1.4.0
>         Environment: Sun VM 1.6
>            Reporter: Łukasz Dywicki
>            Assignee: Guillaume Nodet
>             Fix For: karaf-1.6.2
>
>         Attachments: management-notification.diff
>
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> The JMX notification stuff is currently broken. I am not able to add JMX listener to FeaturesServiceMBean:
> {code}
> The specified MBean [org.apache.felix.karaf:type=features,name=root] is not a NotificationBroadcaster object.
> {code}

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


[jira] Commented: (FELIX-2349) JMX Notifications

Posted by "Łukasz Dywicki (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869742#action_12869742 ] 

Łukasz Dywicki commented on FELIX-2349:
---------------------------------------

Guillaume - FeatureServiceMBeanImpl does not extend StandardMBean - they extends NotificationBroadcasterSupport - it's not wrong but current version does not provide information about notifications.
I've patch (where FeatureServiceMBeanImpl extends StandardEmmiterMBean) for this and small refactor in management package. I'll provide it to review later today.

> JMX Notifications
> -----------------
>
>                 Key: FELIX-2349
>                 URL: https://issues.apache.org/jira/browse/FELIX-2349
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>    Affects Versions: karaf-1.4.0
>         Environment: Sun VM 1.6
>            Reporter: Łukasz Dywicki
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> The JMX notification stuff is currently broken. I am not able to add JMX listener to FeaturesServiceMBean:
> {code}
> The specified MBean [org.apache.felix.karaf:type=features,name=root] is not a NotificationBroadcaster object.
> {code}

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