-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 All,
On 3/5/14, 4:20 PM, Christopher Schultz wrote: > All, > > For some reason, I'm not able to access my Tomcat's JMX beans > remotely using jconsole, etc. and so I figured I'd try using the > jmxproxy servlet in the manager webapp. I've deployed the manager > webapp in the same way I've done in many other installations... I'm > fairly sure I haven't screwed it up. > > I get an exception when calling an open-ended "get" (i.e. it > should dump the entire JMX tree): > > $ curl -v --user jmxproxy:jmxproxy > http://localhost/manager/jmxproxy?get > > * Adding handle: conn: 0x7fd780804000 * Adding handle: send: 0 * > Adding handle: recv: 0 * Curl_addHandleToPipeline: length: 1 * - > Conn 0 (0x7fd780804000) send_pipe: 1, recv_pipe: 0 * About to > connect() to localhost port 80 (#0) * Trying ::1... * Connected > to localhost (::1) port 80 (#0) * Server auth using Basic with user > 'jmxproxy' >> GET /manager/jmxproxy?get HTTP/1.1 Authorization: Basic >> am14cHJveHk6am14cHJveHk= User-Agent: curl/7.30.0 Host: localhost >> Accept: */* > > < HTTP/1.1 200 OK < Date: Wed, 05 Mar 2014 20:57:59 GMT < > Cache-Control: private < Expires: Wed, 31 Dec 1969 19:00:00 EST < > Content-Type: text/plain;charset=ISO-8859-1 < Content-Length: 3079 > < Error - javax.management.RuntimeOperationsException: Exception > occurred trying to invoke the getter on the MBean > javax.management.RuntimeOperationsException: Exception occurred > trying to invoke the getter on the MBean at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:629) > > at > com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678) > > at > org.apache.catalina.manager.JMXProxyServlet.getAttribute(JMXProxyServlet.java:128) > > at > org.apache.catalina.manager.JMXProxyServlet.doGet(JMXProxyServlet.java:107) > > ... > ... ... Caused by: java.lang.IllegalArgumentException: Attribute > cannot be null ... 32 more * Connection #0 to host localhost left > intact [end of output] > > Any idea what this might be? > > I removed my own web application and launched fresh with nothing > but the manager and it's still failing. Here is the entirety of my > catalina.out after a fresh launch: > > Mar 05, 2014 4:15:48 PM > org.apache.catalina.core.AprLifecycleListener init INFO: The APR > based Apache Tomcat Native library which allows optimal performance > in production environments was not found on the java.library.path: > $CATALINA_HOME/apache-tomcat-8.0.3/lib Mar 05, 2014 4:15:48 PM > org.apache.coyote.AbstractProtocol init INFO: Initializing > ProtocolHandler ["ajp-nio-8225"] Mar 05, 2014 4:15:48 PM > org.apache.tomcat.util.net.NioSelectorPool getSharedSelector INFO: > Using a shared selector for servlet write/read Mar 05, 2014 4:15:48 > PM org.apache.catalina.startup.Catalina load INFO: Initialization > processed in 532 ms Mar 05, 2014 4:15:48 PM > org.apache.catalina.core.StandardService startInternal INFO: > Starting service Catalina Mar 05, 2014 4:15:48 PM > org.apache.catalina.core.StandardEngine startInternal INFO: > Starting Servlet Engine: Apache Tomcat/8.0.3 Mar 05, 2014 4:15:48 > PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: > Deploying configuration descriptor > $CATALINA_HOME/conf/Catalina/localhost/manager-c.xml Mar 05, 2014 > 4:15:48 PM org.apache.tomcat.util.digester.SetPropertiesRule begin > WARNING: [SetPropertiesRule]{Context/Valve} Setting property > 'resolveHosts' to 'false' did not find a matching property. Mar 05, > 2014 4:15:49 PM org.apache.jasper.servlet.TldScanner scanJars INFO: > At least one JAR was scanned for TLDs yet contained no TLDs. Enable > debug logging for this logger for a complete list of JARs that were > scanned but no TLDs were found in them. Skipping unneeded JARs > during scanning can improve startup time and JSP compilation time. > Mar 05, 2014 4:15:49 PM org.apache.coyote.AbstractProtocol start > INFO: Starting ProtocolHandler ["ajp-nio-8225"] Mar 05, 2014 > 4:15:49 PM org.apache.catalina.startup.Catalina start INFO: Server > startup in 648 ms > > I'm going to continue to investigate, but I thought someone might > have noticed this before. So, I'm stupid: the command to dump everything is "?qry", not "get". Getting an error like this is no fun, though. I think I'll fix that. There is another - legit this time - error that I can see when I call ?qry: Mar 05, 2014 4:39:39 PM org.apache.catalina.mbeans.MBeanDumper dumpBeans SEVERE: Error getting attribute Catalina:type=WebappClassLoader,host=localhost,context=/manager jarPath javax.management.ReflectionException: Cannot find getter method getJarPath at org.apache.tomcat.util.modeler.ManagedBean.getGetter(ManagedBean.java:461) at org.apache.tomcat.util.modeler.BaseModelMBean.getAttribute(BaseModelMBean.java:180) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:647) at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678) I'm not sure why this would be happening... could be mismatch with mbeans-descriptor? I'll investigate this one, too. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTF5nPAAoJEBzwKT+lPKRYsHAP/A4Qz2u88pHhpuaX+MQW0PTs fZ6Dc+S36+fvdp2wIVyZ1y2jMIMGV76QuvFTxq2U9PsmQR6Mb1vnTb5SkrN0+9Zh FvN++VECJjFv3JHxTVHiK8+Z+tVP9v3Cii/1eRr3clx6WNoEWRLq+RIVXd6d7w+g emqk6C2CZUqTyDJxwyHYIMhGrf/pjr2HCXCsfJpiZorfhbAEbUlagGLbjrxBfrPN Wxle8PWfIMB/ViUMXf3lf3pFlcZ1dvYUs3XphBYTGM8f9T92nKkKfha234rudeUl 5+vPZHEOFDWXJbiserdOUHxgvEZN/pJCFjV1cwi7n/h5gpz0wIL8M++u9+wrGGZO 0xC1QxLb5TDXtFIM44/RJ4KRExPgynNH/XAn6ypUW2/1OchuFao6lxIbTmC+qXs2 sDdE8U5P2XaDR0Tma1A9QNI2VCvIvgBD9BfbsDDyJgm9Ip2+k8rJMLQHJdRVxL3X 5Xas+m/I+MpOeeC/RSLDSHRCHV0BDKhKFQT08cSbws+Xt5CoA2EgbUUHDp1Wlix8 JvY+yrWz7LFrswG6HjughhzBn72csAw9Jkc1/8aEn1MIRzyYeAzv3JocKRs4TvB6 CmbXYrL7TULI3E7b8xzn4JFxg+jHEqbWga8bU7yNrKDhAwr3nMrU8w6LJVmcL9cu YCNURJmHa+s7GYJkBG/u =UrHC -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org