I have a
Java agent that runs on the web. While running, if it comes upon a line of code that references a class that does not exist, the agent simply hangs. I'll then have to do a http restart on the server. For example, the following line will not execute because the class cannot be found. (I'm still looking into why the class cannot be found.)
variableName = new className();
Isn't there a means of simply checking the availability of the class in the code without causing the agent to hang? I thought that some try-catch logic could do this, but I haven't had success in coming up with this.
Thanks.