Avoid recursive update error on security mode
@@ -19,6 +19,7 @@ import org.apache.commons.lang.StringUtils;
import java.io.File;
import java.io.FileDescriptor;
import java.net.InetAddress;
+import java.security.AllPermission;
import java.security.Permission;
import java.util.ArrayList;
import java.util.List;
@@ -54,6 +55,10 @@ public class NGrinderSecurityManager extends SecurityManager {
this.init();
}
+ public NGrinderSecurityManager() {
+ this.checkPermission(new AllPermission());
+ }
+
void init() {
ngrinderContext = System.getProperty("ngrinder.context", "agent");
if (isControllerContext()) {
