Anyone have any success in applying a dynaTrace JVM agent to a AjaxSwing application? (
http://www.creamtec.com/products/ajaxswing/)
We have tried applying it to software from CLEO, and apparently its not working properly, the application never boots up:
com.creamtec.ajaxswing.core.AjaxSwingException
AjaxSwingException: Failed to start client agent process using command line <br>[Ljava.lang.String;@6b01df06<br>(process exited with value 1)<p>Check the installation and persmissions on files and make sure AJAXSWING_HOME is set.
It could also be an actual permission issue, as in the ajaxswing webserver cannot load the dtagent.dll - which then points me to the question - will Dynatrace support AjaxSwing at some point?
Answer by Stefan M. ·
update, hi Andreas - and thank you for your feedback. We succesfully managed to get the application instrumented and found a few bugs in some 3.party software (sent to CLEO software).
The issue was that the jvm proces in question was being booted by an internal runtime call, and this was intercepting the jvm arguments and performing a few "tricks" to the arguments. In this situation it was stripping key tokens like '\' (not so good for a path definition), but we managed to get around it.
for the record,
CLEO VLTrader can be fully instrumented by dynaTrace, both the serverside, ui (webclient - Ajaxswing) and the console application.
Awesome to hear :-)
In case you found some interesting problems you think the world should know about - feel free to send me some of your purepaths via my http://bit.ly/sharepurepath program. I am happy to take another look at your data and eventually write a short blog post about the findings!
Answer by Andreas G. ·
Hi Stefan
I've never heard of AjaxSwing - but - assuming it is just as any other Java Application you should be fine installing dynatrace. I assume you went through the process of getting the correct -agentpath command line option. MAke sure you selected the correct "bitness" of your JVM: 32 vs 64bit. depending on that you either have to load the 32 or the 64bit version. If you load the wrong one the JVM wont start.
Also make sure that you specify that parameter on the correct position of your command line. As I dont know how AjaxSwing is constructing its final command line string make sure it is put on there without interfering with any other options. As an alternative you could try setting the dynatrace -agentpath setting via the global JAVA_OPTIONS. That should be picked up if they adhere to standards.
Last things to check: in case you have spaces in the installation path make sure to put quotes around them, e.g: -agentpath:"c:\program files\dynatrace\...\dtagent.dll"=name=yourtrier=server=yourserver
Also make sure that your process not only has read privileges but also write privileges to the agent directory. Why? because our agent may download a newer version of the agent from your server in case you made an upgrade and then needs to store that file locally
hope this helps
andi
JANUARY 15, 3:00 PM GMT / 10:00 AM ET