-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

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.

Thanks,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTF5U2AAoJEBzwKT+lPKRYTFIP/RzBzWqddv94qKmqiv2E+hl9
XfQlmu/bYlzNWX2Do2x/fk0Jl2//Bid+jPMwWHJMWyEpaXFLQUaAd8v1IBHmZnbA
+OVZ7mtS4P2Ostoazj4GYGOlv1diJz49Qpm0p/e377/DpaTPY+Um3OafxE7iT7Yv
t/uyo+VhupfyXddsdDYvyCuwrGs6oq5XsXXwaJnLKNBnRSmSiAV3CNPz7stXRXD9
R/9amTdmqaOrnBUVxvA3I8YLitDO8lkqxELxMhgkot/K0lFOo+wVDShA0/jay0xD
hZaqvMSIIfkXKYE4teX8Zfk/zY/Xc6iC7DA4YWo250bpYxGrsIl+skOgfcMBcSkq
sC/o4ZaipzA4hXd0yTNRQsR/sITFU5oMzfJ9z1co2/gPnnvmFN6rM/HWBR8pJkF8
kAJ3haTS9l5Te1UfC53hntIeGQa2lNQFNJxBKOeukCBlEVkRdIAW7V4V7ytlg1oX
2oaJj851ljlpWdQMgze9GHtMjOt4RCerhRwRRzPHzUszYC85Wg5ms+H8DlUDAJIw
YtYe7zmSgCeCsWrGuIFbPxAfhuOa2ZISI2ReNt0MhHhpBwkdHotJROJIAD0/N1pB
ImFWmMsOG4pnv3Z6lYRmUxFD87m2LSy/QwslUltLgqQp9vCDwMzb6rUu+a7yYHyt
Xv9ahNRr4ydtlJdObYhp
=m2c1
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to