cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Narendra Sharma <narendra.sha...@gmail.com>
Subject Re: weird error when connecting to cassandra mbean proxy
Date Fri, 08 Apr 2011 00:19:45 GMT
The correct object name is "org.apache.cassandra.db:type=StorageProxy"

-Naren

On Thu, Apr 7, 2011 at 4:36 PM, Anurag Gujral <anurag.gujral@gmail.com>wrote:

> Hi All,
>  I have written a code for connecting to mbean server runnning on cassandra
> node.
> I get the following error:
> Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
>     at $Proxy1.getReadOperations(Unknown Source)
>     at
> com.smeet.cassandra.CassandraJmxHttpServerMy.<init>(CassandraJmxHttpServerMy.java:72)
>     at
> com.smeet.cassandra.CassandraJmxHttpServerMy.main(CassandraJmxHttpServerMy.java:77)
> Caused by: javax.management.InstanceNotFoundException:
> org.apache.cassandra.service:type=StorageProxy
>     at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1118)
>     at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:679)
>     at
> com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:672)
>     at
> javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
>     at
> javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:90)
>
> I have attached the code file.
>
> Cassandra is running on the port I am trying to connect to .
>
> Please Suggest
> Thanks
> Anurag
>
>


-- 
Narendra Sharma
Solution Architect
*http://www.persistentsys.com*
*http://narendrasharma.blogspot.com/*

Mime
View raw message