Home > Back-end >  Process pulled up to the Class. Class.forname () to perform
Process pulled up to the Class. Class.forname () to perform

Time:01-20

Logger. The info (" begin ");
JobClass=Class. Class.forname (" com. Package. Test ");
Logger. The info (" end ");

Every time log to begin to a stop, the possible reasons, thank you, (JDK1.8, Linux, here to simplify the code)
Don't throw exceptions

CodePudding user response:

Simplify your code is too simplified
Do you have any special class of code? Staic piece of code, for example, the load will be invoked, and the static block in the code for any deadlocks, causes the class loader thread stopped

CodePudding user response:

Screen under the load of com. Package. The Test this class for any SAO operation

CodePudding user response:

Should be Class. Class.forname () function throw exceptions, and didn't catch exceptions, so what all can't see

CodePudding user response:

You're jobClass=Class. Class.forname (" com. Package. Test "); Add a try catch catch exceptions under

CodePudding user response:

reference 4 floor KeepSayingNo response:
you in jobClass=Class. Class.forname (" com. Package. Test "); Add a try catch catch exceptions under?



Static module code or constructor performs an error, try catch capture anomalies, looks like the back of the code does not perform the directly,
  • Related