jolokia-agent.jar is not responding to control commands "InvocationTarget..." exception

classic Classic list List threaded Threaded
3 messages Options
dmitry_wht dmitry_wht
Reply | Threaded
Open this post in threaded view
|

jolokia-agent.jar is not responding to control commands "InvocationTarget..." exception

Hello,

Another occurrence of "InvocationTarget" from my side, but I expect it is not a permissions issue.

I successfully started java service (hazelcast) and attached jolokia agent to it under the same UID,
but after some days jolokia falls in InvocationTarget exception when I try to get it's status. However it is still working.
> java -version
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)

> java -jar /jar_path/jolokia-jvm-1.3.2-agent.jar status 6046
InvocationTarget class com.sun.tools.attach.VirtualMachine (command: status) : null

> curl 'http://localhost:8779/jolokia/'
{"timestamp":1449759596,"status":200,"request":{"type":"version"},"value":{"protocol":"7.2","config":{"maxDepth":"15","maxCollectionSize":"0","maxObjects":"0","discoveryEnabled":"false","agentContext":"\/jolokia","historyMaxEntries":"10","agentId":"192.168.1.1-6046-43cda81e-jvm","agentType":"jvm","debug":"false","debugMaxEntries":"100"},"agent":"1.3.2","info":{}}}
After restart of java service, everything is working fine again.

How this could be fixed?
Thanks
 
roland roland
Reply | Threaded
Open this post in threaded view
|

Re: jolokia-agent.jar is not responding to control commands "InvocationTarget..." exception

Sorry, didn't fully get this.

So, try to get that status of a process whose has Jolokia already attached ?
When you curl it, is it this process which answers ?
What do you mean with 'restarting the service' ?

A bit more of context would be helpful. BTW, I would prefer to continue on Github for this (https://github.com/rhuss/jolokia/issues) since its hard for me to track this forum.

thanks ...
... roland
... roland
Dmitry Dmitry
Reply | Threaded
Open this post in threaded view
|

Re: jolokia-agent.jar is not responding to control commands "InvocationTarget..." exception