<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Supple software comments on Persistence not supported for this MBean</title>
    <link>http://supplesoftware.com/</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Supple software comments</description>
    <item>
      <title>"Persistence not supported for this MBean" by petrovg</title>
      <description>&lt;p&gt;I was getting an MBeanException with this message when I used jconsole to call a Spring exported MBean method called load(). Other methods (both attributes and operations) seemed to work fine. I may still be totally wrong, but I think that was because of the name of the method. I tried a lot of things for almost half a day, cleared the body of the method, changed attributes, changed the Spring config in many ways, changed names of beans and all sorts of other things - nothing worked. Eventually I stumbled upon this - &lt;a href="http://www.codase.com/search/smart?join=class+javax.management.modelmbean.RequiredModelMBean" &gt;piece of seemingly irrelevant code&lt;/a&gt;. It struck me though that the method that does nothing but throw an exception with a strangely matching message (this string yields only six matches in google) is called load(). I changed the method name and it worked.&lt;/p&gt;

&lt;p&gt;So, what goes on inside is beyond me at this time, and I can&amp;#8217;t be bothered to investigate right now, but if you&amp;#8217;re going to export a @ManagedOperation through Spring do not call the method load().&lt;/p&gt;

</description>
      <pubDate>Sat,  7 Jun 2008 15:04:00 PDT</pubDate>
      <guid>&lt;a href="/articles/2008/06/07/persistence-not-supported-for-this-mbean"&gt;Persistence not supported for this MBean&lt;/a&gt;</guid>
      <link>&lt;a href="/articles/2008/06/07/persistence-not-supported-for-this-mbean"&gt;Persistence not supported for this MBean&lt;/a&gt;</link>
    </item>
  </channel>
</rss>
