Can chronon recorder be deployed to record webstart application in platform-independent way?
If so - is there some note in the documentation how to deploy chronon jars/libs with the app.
If not - is there a plan or at least possibility to support webstart?
-
You should be able to record any java program with Chronon.
We havent included this is in the documentation since none of our users up until now have used webstart :)
You need to include the 'javaagent' vm arguments as described here to your webstart config file and make sure your application is signed so that it can write to the file system.
Here is the JDK bug describing how to pass in the javaagent arguments to a webstart application
The workaround case 1 should be the one that works for you. -
-
I am evaluating Chronon to help debug a very rich UI client that is launched using JNLP. I have taken the above approach and have not been able to get our app to launch. Any help would be appreciated.
set JAVAWS_TRACE_NATIVE=1
javaws -J-javaagent:c:\Contoller\recorder-2.0.2.266.jar=c:\Controller\config.txt -J-agentpath:c:\Controller\recorderagent32-1.0.0.dll w:\dev\OMSClient\DennisClient.jnlp
-
dennis:
1. it seems the javaagent argument is being passed twice.
2. try omitting the 'native' agent file for now. (the -agentlib argument). that only records exceptions. Once we have the javaagent working we can make it agentlib work too. but for now that reduces the set of issues to 1 instead of 2.
3. Can you paste the contents of the config.txt file? -
-
-
-
-
Here is the contents of my batch file to launch the jnlp, after your suggestion I have removed the -agentlib. I think this may have been the result of me using set instead of -J in a prior test. I restarted the test machine and I did not see any difference. Would not having the right dubug level in the compile cause an issue? I am in the process of recompiling the app with full debug.
Right now the jvm crashes after about 15 seconds. There is no log or error message anywhere that I can find.
set JAVAWS_TRACE_NATIVE=1
javaws -J-javaagent:c:\Contoller\recorder-2.0.2.266.jar=c:\Controller\config.txt w:\dev\OMSClient\DennisClient.jnlp
config.txt
servermode = true
name = JOE -
-
I have found that there is a bug in the jvm when trying to instrument code using the java -client(default) option. I have tried to run the app with -server, but still have yet to be able to launch with the -javaagent jvm arg
-
-
Is your application signed with a certificate?
-