FYI: https://issues.jboss.org/browse/ISPN-1443
Martin On 2.8.2012 05:07, David van Balen wrote: > FYI, this is what's causing configurationAsXmlString to fail: > > > 19:04:39,754 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) > java.lang.reflect.InvocationTargetException > 19:04:39,754 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > 19:04:39,755 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > 19:04:39,755 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > 19:04:39,755 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > java.lang.reflect.Method.invoke(Method.java:616) > 19:04:39,756 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > org.infinispan.jmx.ResourceDMBean$InvokableSetterBasedMBeanAttributeInfo.invoke(ResourceDMBean.java:419) > 19:04:39,756 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > org.infinispan.jmx.ResourceDMBean.getNamedAttribute(ResourceDMBean.java:299) > 19:04:39,756 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > org.infinispan.jmx.ResourceDMBean.getAttributes(ResourceDMBean.java:219) > 19:04:39,756 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttributes(DefaultMBeanServerInterceptor.java:745) > 19:04:39,757 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > com.sun.jmx.mbeanserver.JmxMBeanServer.getAttributes(JmxMBeanServer.java:699) > 19:04:39,757 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.getAttributes(PluggableMBeanServerImpl.java:428) > 19:04:39,757 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > org.jboss.as.jmx.PluggableMBeanServerImpl.getAttributes(PluggableMBeanServerImpl.java:160) > 19:04:39,758 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1431) > 19:04:39,758 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:90) > 19:04:39,758 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1285) > 19:04:39,759 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1383) > 19:04:39,759 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > javax.management.remote.rmi.RMIConnectionImpl.getAttributes(RMIConnectionImpl.java:655) > 19:04:39,759 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source) > 19:04:39,759 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > 19:04:39,760 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > java.lang.reflect.Method.invoke(Method.java:616) > 19:04:39,760 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322) > 19:04:39,760 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > sun.rmi.transport.Transport$1.run(Transport.java:177) > 19:04:39,760 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > java.security.AccessController.doPrivileged(Native Method) > 19:04:39,761 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > sun.rmi.transport.Transport.serviceCall(Transport.java:173) > 19:04:39,761 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553) > 19:04:39,761 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808) > 19:04:39,762 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667) > 19:04:39,762 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > 19:04:39,762 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > 19:04:39,762 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > java.lang.Thread.run(Thread.java:679) > 19:04:39,763 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) Caused by: > java.lang.RuntimeException: org.infinispan.config.ConfigurationException: > Attempted to modify a non-Dynamic configuration element [cacheLoaderConfigs] > after the component has started! > 19:04:39,763 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > org.infinispan.config.InfinispanConfiguration.toXmlString(InfinispanConfiguration.java:324) > 19:04:39,763 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > org.infinispan.config.Configuration.toXmlString(Configuration.java:1670) > 19:04:39,763 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > org.infinispan.CacheImpl.getConfigurationAsXmlString(CacheImpl.java:650) > 19:04:39,763 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) ... 29 more > 19:04:39,764 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) Caused by: > org.infinispan.config.ConfigurationException: Attempted to modify a > non-Dynamic configuration element [cacheLoaderConfigs] after the component > has started! > 19:04:39,764 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > org.infinispan.config.AbstractConfigurationBean.testImmutability(AbstractConfigurationBean.java:105) > 19:04:39,764 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > org.infinispan.config.CacheLoaderManagerConfig.getCacheLoaders(CacheLoaderManagerConfig.java:201) > 19:04:39,764 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > 19:04:39,767 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > 19:04:39,768 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > 19:04:39,768 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > java.lang.reflect.Method.invoke(Method.java:616) > 19:04:39,768 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > com.sun.xml.bind.v2.runtime.reflect.Accessor$GetterSetterReflection.get(Accessor.java:354) > 19:04:39,768 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:150) > 19:04:39,769 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:358) > 19:04:39,769 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:696) > 19:04:39,769 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:158) > 19:04:39,770 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:358) > 19:04:39,770 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > com.sun.xml.bind.v2.runtime.XMLSerializer.childAsSoleContent(XMLSerializer.java:593) > 19:04:39,770 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeRoot(ClassBeanInfoImpl.java:340) > 19:04:39,771 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:494) > 19:04:39,771 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:323) > 19:04:39,771 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:251) > 19:04:39,772 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:95) > 19:04:39,772 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) at > org.infinispan.config.InfinispanConfiguration.toXmlString(InfinispanConfiguration.java:318) > 19:04:39,772 ERROR [stderr] (RMI TCP Connection(4)-127.0.0.1) ... 31 more > > > > > ----- Original Message ----- > From: "David van Balen" <dvanb...@redhat.com> > To: "infinispan -Dev List" <infinispan-dev@lists.jboss.org> > Sent: Thursday, July 19, 2012 11:03:16 AM > Subject: Re: [infinispan-dev] Exposing numOwners through JMX > > That attribute doesn't seem to be working for me. When I try to access it in > jconsole, I get this in the server log: > > 10:56:53,338 WARN [org.infinispan.jmx.ResourceDMBean] (RMI TCP > Connection(2)-127.0.0.1) ISPN000036: Did not find attribute > configurationAsXmlString > > If I try to access it programmatically, through the MBeanServer, I get this > in the server log: > > 10:49:27,598 ERROR [stderr] (http-/127.0.0.1:8180-1) > javax.management.AttributeNotFoundException: Unknown attribute > 'configurationAsXmlString'. Known attributes names are: [cacheName, > cacheStatus, configurationAsXmlString] > 10:49:27,599 ERROR [stderr] (http-/127.0.0.1:8180-1) at > org.infinispan.jmx.ResourceDMBean.getAttribute(ResourceDMBean.java:201) > 10:49:27,599 ERROR [stderr] (http-/127.0.0.1:8180-1) at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:683) > 10:49:27,599 ERROR [stderr] (http-/127.0.0.1:8180-1) at > com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:672) > 10:49:27,599 ERROR [stderr] (http-/127.0.0.1:8180-1) at > org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.getAttribute(PluggableMBeanServerImpl.java:419) > 10:49:27,599 ERROR [stderr] (http-/127.0.0.1:8180-1) at > org.jboss.as.jmx.PluggableMBeanServerImpl.getAttribute(PluggableMBeanServerImpl.java:154) > > > which seems strange, since it's reported among the "known attribute names". > Nothing obvious jumps out at me from looking at the code for ResourceDMBean. > > > > > > ----- Original Message ----- > From: "Galder Zamarreño" <gal...@redhat.com> > To: "infinispan -Dev List" <infinispan-dev@lists.jboss.org> > Sent: Thursday, July 19, 2012 9:29:34 AM > Subject: Re: [infinispan-dev] Exposing numOwners through JMX > > Did you try: Cache.ConfigurationAsXmlString jmx property? > > On Jul 18, 2012, at 11:14 PM, David van Balen wrote: > >> After looking at the JMX component documentation >> (http://docs.jboss.org/infinispan/5.1/apidocs/jmxComponents.html) and >> browsing around in jconsole, I don't see the numOwners attribute for >> distributed caches exposed anywhere, although I thought I had seen it before. >> >> In any case, the only way I see numOwners being retrieved in the ISPN source >> is by calling DistributionManager.locate for a particular key. Is there a >> way to retrieve the currently configured value of numOwners, regardless of >> whether it's the default or was overridden in the configuration? >> _______________________________________________ >> infinispan-dev mailing list >> infinispan-dev@lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/infinispan-dev > -- > Galder Zamarreño > Sr. Software Engineer > Infinispan, JBoss Cache > > > _______________________________________________ > infinispan-dev mailing list > infinispan-dev@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/infinispan-dev > > _______________________________________________ > infinispan-dev mailing list > infinispan-dev@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/infinispan-dev > > _______________________________________________ > infinispan-dev mailing list > infinispan-dev@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/infinispan-dev -- Martin Gencur -- QE Lead, JBoss Data Grid Desk phone: +420 532 294 192, ext. 62192 _______________________________________________ infinispan-dev mailing list infinispan-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/infinispan-dev