Re: Can't connect to JVM via jconsole, etc. when using VelocityViewServlet

Christopher Schultz <[email protected]> Thu, 13 Mar 2014 17:57:32 -0400
Newsgroups gmane.comp.jakarta.velocity.user
Message-ID <[email protected]>
All,

On 3/13/14, 5:55 PM, Christopher Schultz wrote:
> All,
> 
> On 3/10/14, 2:15 PM, Christopher Schultz wrote:
>> All,
>>
>> I've just discovered that I can't connect using jconsole, VisualVM,
>> YourKit, etc. when VelocityViewServlet has been enabled. I never noticed
>> this before because I haven't been using jconsole very much, and I don't
>> think I've tried to profile recently.
>>
>> I have a quick summary of what's going on, including a link to a bug
>> I've filed against Apache Tomcat (because the problem appears to be
>> related to JMX).
>>
>> http://markmail.org/thread/4g6ey2a24z6awxu5
>>
>> I was able to reduce my entire web application to just
>> VelocityViewServlet with no manually-deployed tools, so everything in
>> this web application is coming from Velocity or Apache Commons.
>>
>> Can anyone confirm that this happens to them, too? Any ideas what might
>> be happening? If anyone has any thoughts about this, I'd really
>> appreciate them.
> 
> Oddly enough, disabling the default tools (see my other thread from this
> week) seems to clear-up this problem.
> 
> I'll see if I can figure out what tool -- if any -- seems to be causing
> this problem. I wonder if it's that stupid non-serializable Log member
> or something like that.

Hmm. I think I spoke too soon.

-chris
signature.asc (application/pgp-signature, 924 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTIinMAAoJEBzwKT+lPKRYssIQAImaYc/O77NN8EEOEYfmfxml
8GXMgC167rtIhmt4PFK18gNrsj7IJ2bawqu3VO0L6YTyIAgOq+TfpQFLVDiZ0nw6
MuC+Wz5xqN4V3+k7gKr7LEgdunaRKpKpAAhyfGtGYEBsw9QPx4UGCevonEPLk1kk
uK7z1D0Ay+YMSlV2mzXvU2Kp7bIaILYaSwLvwo3JAK/ifgVQt4sE68ivVKu1QBS5
vvEKw00fyCT995eQ/y7HjGwFPtcXprC00kjZR6lsTlZ1dgaxmF51fhw4CddrkfMO
15Ku1+Qm8lwmuCkxkuEytD/Yj3hNfAcNMxwb/MUBct94h1mEYMAz2Eam47t5QYd4
gOK5qBUryLU+S48kODNpfJQiMvHaTNYnxJgt/JSe9PwomKqKY0A/SIOrr/3VvHa6
18SzV2J2Tt7uF4lldGHzbkmN+I6rJUlU9vmTwvXV8uxM6NmR87W5F9wPZWd9C0m4
7wY/LWJvN20CvxXwsl2Vq8mYMq6cYtn77Hv6HVy6DhfV4WOi7+pP44VrY0CRCRyb
qxYfHyuv2109PunC/XHIRsUpGYn+ZumoAZyKF4U4y9o59AqshXA11/IYb142zhQI
Mek7pbnYFuGTdoXgBe/sioUD8A977e8qgcXZZKF5Qg6GlDZ3PCbs2F0Y8WCBWrIY
XI3biT0BWVLVTbQ7n1fJ
=zzkE
-----END PGP SIGNATURE-----