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

Christopher Schultz <[email protected]> Thu, 13 Mar 2014 17:55:33 -0400
Newsgroups gmane.comp.jakarta.velocity.user
Message-ID <[email protected]>
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.

-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/

iQIcBAEBCAAGBQJTIilVAAoJEBzwKT+lPKRYe9IP/06RMFOnbwRg5V31rzKtDOat
rAgp4FK1nvS/ewtl6GE/X7siYSOyTW+eDeKAv8xSOfTdLsvnlT02uw4qUBHcX2rf
afz51H/AP/HTezz0PQ6ne5UEaanvb8mQ/+FnNgqtQG+sYqHMfPYsLSBk/HCjMPLQ
d4IWtcEB1ged3lYqaykpt50ltymBkwCmk+UNec7RP/pbhhnRHTNuLZLVKZBys0zu
2tbpvTeIKxZaGO9qr486LZB63fM4wtEPSNkbZut4ybtT4qkXB0IxwU143RVuROkH
YTzuCRK8O2mOTUw1o3cYSmRC0MqjYtEe9Sg6lZ0lo26l09ySdzsxWSstuZEVH9nL
apiiZm56IoPyX8GQz3Xt/ixcpqDwBlEvJfW0Dk0dABTszIOzjIO2OkvsFIVL7LbY
uW7xfYDBxD6Wz70VW/DAmLIWH7ekmBRS1sjx8i3vmrQX5b9+766dK8AiudPrBrtv
Kis3AbESqs/U8QG28m8ucrDH11U+fngC9HYsnkX9goGYbNnnxjcQj7cN4iCa8hC5
zc+Dpmn/PlsrEvCK/iZqWEWqkvE3QoYTbTUv/cYqREK9yFTw8SCE3TOKtY5j9qy+
tPgEAjEyJ9OUcZFNBtjN68Gef75ekEK/JbR8c7fGV8pG4n6ghJAmO1wf+7E64Cjm
0Y+PYqJdNjxCF+pFjfU3
=VSTi
-----END PGP SIGNATURE-----