tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Soden" <>
Subject Re: [JMX] org.apache.catalina.session.StandardManager not serializable
Date Wed, 05 Nov 2008 07:54:16 GMT
Thank you Chuck,
 What I understand know is that, you can only retrieve primitive values.
In the same way, I was trying to retrieve a "org.apache.catalina.Context"
from the MBean
using the JMX operation operation "findMappingObject" and I get the
following error

Caused by: java.rmi.UnmarshalException: error unmarshalling return; nested
exception is: writing aborted; org.apache.catalina.util.LifecycleSupport
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)
at Source)

My suggestion:
 - If you want to expose a JMX object all of their attributes or operations
have to be serializable.
 - Provide a different set of interface for Remote JMX connection and local
JMX connection.
 - Add to the documentation a list of objects that can be retrieved


On 11/4/08, Caldarale, Charles R <> wrote:
> > From: Emmanuel Soden []
> > Subject: Re: [JMX] org.apache.catalina.session.StandardManager not
> serializable
> >
> > Using Tomcat 5.5.27 with JDK 1.5.0_11, I'm trying to retrieve
> > the attribute "manager" from the MBean
> > "Catalina:J2EEApplication=none,J2EEServer=none,
> > j2eeType=WebModule,name=//localhost/".
> I don't think there's any requirement for any app to guarantee that
> attributes are serializable, and I suspect trying to make StandardManager so
> would create a host of issues inside Tomcat.
> Perhaps you should try retrieving the attributes you're interested in from
> this JMX location instead:
> "Catalina:type=Manager,path=/,host=localhost"
> Its attributes are all retrievable, at least according to JConsole.
> > when I try to retrieve an attribute like "managedResource"
> > from the MBean "Catalina:host=localhost,type=Host"
> From a brief perusal of the 6.0 code (sorry, not the level you're using),
> there appears to be extremely limited use of the "managedResource"
> attribute, despite its presence in most of the MBeans.  Looks like in the
> vast majority of cases, the attribute is never set.
> - Chuck
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
> ---------------------------------------------------------------------
> To start a new topic, e-mail:
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message