You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by pchakinala <pr...@ebix.com> on 2013/07/01 14:24:06 UTC

SMX 4.4-Karaf -2.2.4 - JMX List Features

Hello,

We are using Karaf  2.2.4 JMX Services to build user console and were able
to retrieve all the information using JMX MBeans.

Using below MBean, extracted features related data from Karaf /felix
container.
org.apache.karaf.features.management.internal.FeaturesServiceMBeanImpl

Below services are working fine.
1. public abstract void addRepository(String paramString)    throws
Exception;
2.  public abstract void removeRepository(String paramString)     throws
Exception;
3.  public abstract void installFeature(String paramString)     throws
Exception;
4.  public abstract void installFeature(String paramString1, String
paramString2)     throws Exception;
5.  public abstract void uninstallFeature(String paramString)     throws
Exception;
6. public abstract void uninstallFeature(String paramString1, String
paramString2)    throws Exception;

When i am trying to use listFeature service, system is throwing "No Such
Method exception"


javax.management.ReflectionException: No such operation: listFeatures
	at com.sun.jmx.mbeanserver.PerInterface.noSuchMethod(PerInterface.java:152)
	at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:94)
	at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
	at javax.management.StandardMBean.invoke(StandardMBean.java:391)
	at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)

Code:

MBeanServerConnection.invoke(new
ObjectName("org.apache.karaf:type=features,name=root"),
"listFeatures",null,null);

Method in MBean:

public abstract Feature[] listFeatures()   throws Exception;

Please suggest is there any issue in above code.

Regards,
Pchakina







--
View this message in context: http://servicemix.396122.n5.nabble.com/SMX-4-4-Karaf-2-2-4-JMX-List-Features-tp5717215.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

RE: SMX 4.4-Karaf -2.2.4 - JMX List Features

Posted by pchakinala <pr...@ebix.com>.
Hi Freeman,



Thank you for your advice. I will post the message in karaf forum.  I observed same exception after using  “getFeatures()”  method also.



Regards,

pchakina



From: Freeman-2 [via ServiceMix] [mailto:ml-node+s396122n5717222h72@n5.nabble.com]
Sent: Tuesday, July 02, 2013 6:54 AM
To: pchakinala
Subject: Re: SMX 4.4-Karaf -2.2.4 - JMX List Features



Hi,

This should be in Karaf users list.

Because there's no listFeatures operation in FeaturesServiceMBean at all.

You can use getFeatures instead.
TabularData getFeatures() throws Exception;
-------------
Freeman(Yue) Fang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋



On 2013-7-1, at 下午8:24, pchakinala wrote:


> Hello,
>
> We are using Karaf  2.2.4 JMX Services to build user console and were able
> to retrieve all the information using JMX MBeans.
>
> Using below MBean, extracted features related data from Karaf /felix
> container.
> org.apache.karaf.features.management.internal.FeaturesServiceMBeanImpl
>
> Below services are working fine.
> 1. public abstract void addRepository(String paramString)    throws
> Exception;
> 2.  public abstract void removeRepository(String paramString)     throws
> Exception;
> 3.  public abstract void installFeature(String paramString)     throws
> Exception;
> 4.  public abstract void installFeature(String paramString1, String
> paramString2)     throws Exception;
> 5.  public abstract void uninstallFeature(String paramString)     throws
> Exception;
> 6. public abstract void uninstallFeature(String paramString1, String
> paramString2)    throws Exception;
>
> When i am trying to use listFeature service, system is throwing "No Such
> Method exception"
>
>
> javax.management.ReflectionException: No such operation: listFeatures
> at com.sun.jmx.mbeanserver.PerInterface.noSuchMethod(PerInterface.java:152)
> at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:94)
> at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
> at javax.management.StandardMBean.invoke(StandardMBean.java:391)
> at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
> at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
>
> Code:
>
> MBeanServerConnection.invoke(new
> ObjectName("org.apache.karaf:type=features,name=root"),
> "listFeatures",null,null);
>
> Method in MBean:
>
> public abstract Feature[] listFeatures()   throws Exception;
>
> Please suggest is there any issue in above code.
>
> Regards,
> Pchakina
>
>
>
>
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/SMX-4-4-Karaf-2-2-4-JMX-List-Features-tp5717215.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.





  _____

If you reply to this email, your message will be added to the discussion below:

http://servicemix.396122.n5.nabble.com/SMX-4-4-Karaf-2-2-4-JMX-List-Features-tp5717215p5717222.html

To unsubscribe from SMX 4.4-Karaf -2.2.4 - JMX List Features, click here <http://servicemix.396122.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5717215&code=cHJhdmVlbi5jaGFraW5hbGFAZWJpeC5jb218NTcxNzIxNXwtMTUyMjU1ODc0NA==> .
 <http://servicemix.396122.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> NAML



The information contained in this message may be CONFIDENTIAL and is for the intended addressee only. Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately and delete this message.



--
View this message in context: http://servicemix.396122.n5.nabble.com/SMX-4-4-Karaf-2-2-4-JMX-List-Features-tp5717215p5717230.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: SMX 4.4-Karaf -2.2.4 - JMX List Features

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

This should be in Karaf users list.

Because there's no listFeatures operation in FeaturesServiceMBean at all.

You can use getFeatures instead.
TabularData getFeatures() throws Exception;
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋



On 2013-7-1, at 下午8:24, pchakinala wrote:

> Hello,
> 
> We are using Karaf  2.2.4 JMX Services to build user console and were able
> to retrieve all the information using JMX MBeans.
> 
> Using below MBean, extracted features related data from Karaf /felix
> container.
> org.apache.karaf.features.management.internal.FeaturesServiceMBeanImpl
> 
> Below services are working fine.
> 1. public abstract void addRepository(String paramString)    throws
> Exception;
> 2.  public abstract void removeRepository(String paramString)     throws
> Exception;
> 3.  public abstract void installFeature(String paramString)     throws
> Exception;
> 4.  public abstract void installFeature(String paramString1, String
> paramString2)     throws Exception;
> 5.  public abstract void uninstallFeature(String paramString)     throws
> Exception;
> 6. public abstract void uninstallFeature(String paramString1, String
> paramString2)    throws Exception;
> 
> When i am trying to use listFeature service, system is throwing "No Such
> Method exception"
> 
> 
> javax.management.ReflectionException: No such operation: listFeatures
> 	at com.sun.jmx.mbeanserver.PerInterface.noSuchMethod(PerInterface.java:152)
> 	at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:94)
> 	at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
> 	at javax.management.StandardMBean.invoke(StandardMBean.java:391)
> 	at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> 
> Code:
> 
> MBeanServerConnection.invoke(new
> ObjectName("org.apache.karaf:type=features,name=root"),
> "listFeatures",null,null);
> 
> Method in MBean:
> 
> public abstract Feature[] listFeatures()   throws Exception;
> 
> Please suggest is there any issue in above code.
> 
> Regards,
> Pchakina
> 
> 
> 
> 
> 
> 
> 
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/SMX-4-4-Karaf-2-2-4-JMX-List-Features-tp5717215.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: SMX 4.4-Karaf -2.2.4 - JMX List Features

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

This should be in Karaf users list.

Because there's no listFeatures operation in FeaturesServiceMBean at all.

You can use getFeatures instead.
TabularData getFeatures() throws Exception;
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋



On 2013-7-1, at 下午8:24, pchakinala wrote:

> Hello,
> 
> We are using Karaf  2.2.4 JMX Services to build user console and were able
> to retrieve all the information using JMX MBeans.
> 
> Using below MBean, extracted features related data from Karaf /felix
> container.
> org.apache.karaf.features.management.internal.FeaturesServiceMBeanImpl
> 
> Below services are working fine.
> 1. public abstract void addRepository(String paramString)    throws
> Exception;
> 2.  public abstract void removeRepository(String paramString)     throws
> Exception;
> 3.  public abstract void installFeature(String paramString)     throws
> Exception;
> 4.  public abstract void installFeature(String paramString1, String
> paramString2)     throws Exception;
> 5.  public abstract void uninstallFeature(String paramString)     throws
> Exception;
> 6. public abstract void uninstallFeature(String paramString1, String
> paramString2)    throws Exception;
> 
> When i am trying to use listFeature service, system is throwing "No Such
> Method exception"
> 
> 
> javax.management.ReflectionException: No such operation: listFeatures
> 	at com.sun.jmx.mbeanserver.PerInterface.noSuchMethod(PerInterface.java:152)
> 	at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:94)
> 	at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
> 	at javax.management.StandardMBean.invoke(StandardMBean.java:391)
> 	at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> 
> Code:
> 
> MBeanServerConnection.invoke(new
> ObjectName("org.apache.karaf:type=features,name=root"),
> "listFeatures",null,null);
> 
> Method in MBean:
> 
> public abstract Feature[] listFeatures()   throws Exception;
> 
> Please suggest is there any issue in above code.
> 
> Regards,
> Pchakina
> 
> 
> 
> 
> 
> 
> 
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/SMX-4-4-Karaf-2-2-4-JMX-List-Features-tp5717215.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.