Please describe here below the current result you got (if relevant)
[if relevant, include a screenshot]
EvoSuite 1.1.0
Going to generate test cases for class: Newzgrabber.Newzbatch
Starting Client-0
Properties loaded from /home/unimelb.edu.au/nneelofar/Documents/Matilda/software-testing/fault-localization/SF110-test/99_newzgrabber/evosuite-files/evosuite.properties
Connecting to master process on port 21908
Analyzing classpath:
Inheritance tree loaded from evosuite-files/inheritance.xml.gz
at org.evosuite.instrumentation.InstrumentingClassLoader.instrumentClass(InstrumentingClassLoader.java:164)
at org.evosuite.instrumentation.InstrumentingClassLoader.loadClass(InstrumentingClassLoader.java:132)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.evosuite.testcase.statements.MethodStatement$1.execute(MethodStatement.java:261)
at org.evosuite.testcase.statements.AbstractStatement.exceptionHandler(AbstractStatement.java:172)
at org.evosuite.testcase.statements.MethodStatement.execute(MethodStatement.java:224)
at org.evosuite.testcase.execution.TestRunnable.executeStatements(TestRunnable.java:295)
at org.evosuite.testcase.execution.TestRunnable.call(TestRunnable.java:201)
at org.evosuite.testcase.execution.TestRunnable.call(TestRunnable.java:54)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.SecurityException: Security manager blocks ("java.io.FilePermission" "evosuite-graphs/Newzgrabber.Newzbatch/RCFG" "write")
java.lang.Thread.getStackTrace(Thread.java:1559)
org.evosuite.runtime.sandbox.MSecurityManager.checkPermission(MSecurityManager.java:433)
java.lang.SecurityManager.checkWrite(SecurityManager.java:979)
java.io.File.mkdir(File.java:1311)
java.io.File.mkdirs(File.java:1343)
org.evosuite.graphs.EvoSuiteGraph.createGraphDirectory(EvoSuiteGraph.java:797)
org.evosuite.graphs.EvoSuiteGraph.toDot(EvoSuiteGraph.java:758)
org.evosuite.graphs.GraphPool.registerRawCFG(GraphPool.java:214)
org.evosuite.graphs.cfg.CFGGenerator.registerCFGs(CFGGenerator.java:104)
org.evosuite.graphs.cfg.CFGMethodAdapter.visitEnd(CFGMethodAdapter.java:233)
org.evosuite.shaded.org.objectweb.asm.MethodVisitor.visitEnd(MethodVisitor.java:783)
org.evosuite.shaded.org.objectweb.asm.MethodVisitor.visitEnd(MethodVisitor.java:783)
org.evosuite.shaded.org.objectweb.asm.MethodVisitor.visitEnd(MethodVisitor.java:783)
org.evosuite.shaded.org.objectweb.asm.tree.MethodNode.accept(MethodNode.java:772)
org.evosuite.shaded.org.objectweb.asm.tree.MethodNode.accept(MethodNode.java:649)
org.evosuite.shaded.org.objectweb.asm.tree.ClassNode.accept(ClassNode.java:452)
org.evosuite.instrumentation.BytecodeInstrumentation.transformBytes(BytecodeInstrumentation.java:287)
org.evosuite.instrumentation.InstrumentingClassLoader.getTransformedBytes(InstrumentingClassLoader.java:141)
org.evosuite.instrumentation.InstrumentingClassLoader.instrumentClass(InstrumentingClassLoader.java:155)
org.evosuite.instrumentation.InstrumentingClassLoader.loadClass(InstrumentingClassLoader.java:132)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Class.java:348)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
org.evosuite.testcase.statements.MethodStatement$1.execute(MethodStatement.java:261)
org.evosuite.testcase.statements.AbstractStatement.exceptionHandler(AbstractStatement.java:172)
org.evosuite.testcase.statements.MethodStatement.execute(MethodStatement.java:224)
org.evosuite.testcase.execution.TestRunnable.executeStatements(TestRunnable.java:295)
org.evosuite.testcase.execution.TestRunnable.call(TestRunnable.java:201)
org.evosuite.testcase.execution.TestRunnable.call(TestRunnable.java:54)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)
Additional info
Getting same error using both the latest and previous releases.
Context
java.io.FilePermission error when using flag "-Dwrite_cfg" with test generation command.
EvoSuite Arguments
java -jar /home/evosuite-1.1.0.jar -class Newzgrabber.Newzbatch -projectCP build/classes -Dshow_progress=false -Djunit_check=false -Dfilter_assertions=false -Dtest_comments=false -Duse_separate_classloader=true -Doutput_variables=TARGET_CLASS,algorithm,criterion,Total_Branches,Covered_Branches,BranchCoverage,Lines,Covered_Lines,LineCoverage,MethodCoverage,Size,Length,MutationScore,Total_Goals,Covered_Goals -Dsearch_budget=60 -Dalgorithm=MOSA -Dwrite_cfg=true
Current Result
Please describe here below the current result you got (if relevant) [if relevant, include a screenshot]
EvoSuite 1.1.0
Going to generate test cases for class: Newzgrabber.Newzbatch
Starting Client-0
Properties loaded from /home/unimelb.edu.au/nneelofar/Documents/Matilda/software-testing/fault-localization/SF110-test/99_newzgrabber/evosuite-files/evosuite.properties
Connecting to master process on port 21908
Analyzing classpath:
Inheritance tree loaded from evosuite-files/inheritance.xml.gz
Error while initializing target class: Security manager blocks ("java.io.FilePermission" "evosuite-graphs/Newzgrabber.Newzbatch/RCFG" "write") java.lang.Thread.getStackTrace(Thread.java:1559) org.evosuite.runtime.sandbox.MSecurityManager.checkPermission(MSecurityManager.java:433) java.lang.SecurityManager.checkWrite(SecurityManager.java:979) java.io.File.mkdir(File.java:1311) java.io.File.mkdirs(File.java:1343) org.evosuite.graphs.EvoSuiteGraph.createGraphDirectory(EvoSuiteGraph.java:797) org.evosuite.graphs.EvoSuiteGraph.toDot(EvoSuiteGraph.java:758) org.evosuite.graphs.GraphPool.registerRawCFG(GraphPool.java:214) org.evosuite.graphs.cfg.CFGGenerator.registerCFGs(CFGGenerator.java:104) org.evosuite.graphs.cfg.CFGMethodAdapter.visitEnd(CFGMethodAdapter.java:233) org.evosuite.shaded.org.objectweb.asm.MethodVisitor.visitEnd(MethodVisitor.java:783) org.evosuite.shaded.org.objectweb.asm.MethodVisitor.visitEnd(MethodVisitor.java:783) org.evosuite.shaded.org.objectweb.asm.MethodVisitor.visitEnd(MethodVisitor.java:783) org.evosuite.shaded.org.objectweb.asm.tree.MethodNode.accept(MethodNode.java:772) org.evosuite.shaded.org.objectweb.asm.tree.MethodNode.accept(MethodNode.java:649) org.evosuite.shaded.org.objectweb.asm.tree.ClassNode.accept(ClassNode.java:452) org.evosuite.instrumentation.BytecodeInstrumentation.transformBytes(BytecodeInstrumentation.java:287) org.evosuite.instrumentation.InstrumentingClassLoader.getTransformedBytes(InstrumentingClassLoader.java:141) org.evosuite.instrumentation.InstrumentingClassLoader.instrumentClass(InstrumentingClassLoader.java:155) org.evosuite.instrumentation.InstrumentingClassLoader.loadClass(InstrumentingClassLoader.java:132) java.lang.Class.forName0(Native Method) java.lang.Class.forName(Class.java:348) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.evosuite.testcase.statements.MethodStatement$1.execute(MethodStatement.java:261) org.evosuite.testcase.statements.AbstractStatement.exceptionHandler(AbstractStatement.java:172) org.evosuite.testcase.statements.MethodStatement.execute(MethodStatement.java:224) org.evosuite.testcase.execution.TestRunnable.executeStatements(TestRunnable.java:295) org.evosuite.testcase.execution.TestRunnable.call(TestRunnable.java:201) org.evosuite.testcase.execution.TestRunnable.call(TestRunnable.java:54) java.util.concurrent.FutureTask.run(FutureTask.java:266) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) java.lang.Thread.run(Thread.java:748)
Computation finished [MASTER] 14:15:11.121 [logback-2] ERROR TestSuiteGenerator - Problem for Newzgrabber.Newzbatch. Full stack: java.lang.ClassNotFoundException: Security manager blocks ("java.io.FilePermission" "evosuite-graphs/Newzgrabber.Newzbatch/RCFG" "write") java.lang.Thread.getStackTrace(Thread.java:1559) org.evosuite.runtime.sandbox.MSecurityManager.checkPermission(MSecurityManager.java:433) java.lang.SecurityManager.checkWrite(SecurityManager.java:979) java.io.File.mkdir(File.java:1311) java.io.File.mkdirs(File.java:1343) org.evosuite.graphs.EvoSuiteGraph.createGraphDirectory(EvoSuiteGraph.java:797) org.evosuite.graphs.EvoSuiteGraph.toDot(EvoSuiteGraph.java:758) org.evosuite.graphs.GraphPool.registerRawCFG(GraphPool.java:214) org.evosuite.graphs.cfg.CFGGenerator.registerCFGs(CFGGenerator.java:104) org.evosuite.graphs.cfg.CFGMethodAdapter.visitEnd(CFGMethodAdapter.java:233) org.evosuite.shaded.org.objectweb.asm.MethodVisitor.visitEnd(MethodVisitor.java:783) org.evosuite.shaded.org.objectweb.asm.MethodVisitor.visitEnd(MethodVisitor.java:783) org.evosuite.shaded.org.objectweb.asm.MethodVisitor.visitEnd(MethodVisitor.java:783) org.evosuite.shaded.org.objectweb.asm.tree.MethodNode.accept(MethodNode.java:772) org.evosuite.shaded.org.objectweb.asm.tree.MethodNode.accept(MethodNode.java:649) org.evosuite.shaded.org.objectweb.asm.tree.ClassNode.accept(ClassNode.java:452) org.evosuite.instrumentation.BytecodeInstrumentation.transformBytes(BytecodeInstrumentation.java:287) org.evosuite.instrumentation.InstrumentingClassLoader.getTransformedBytes(InstrumentingClassLoader.java:141) org.evosuite.instrumentation.InstrumentingClassLoader.instrumentClass(InstrumentingClassLoader.java:155) org.evosuite.instrumentation.InstrumentingClassLoader.loadClass(InstrumentingClassLoader.java:132) java.lang.Class.forName0(Native Method) java.lang.Class.forName(Class.java:348) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.evosuite.testcase.statements.MethodStatement$1.execute(MethodStatement.java:261) org.evosuite.testcase.statements.AbstractStatement.exceptionHandler(AbstractStatement.java:172) org.evosuite.testcase.statements.MethodStatement.execute(MethodStatement.java:224) org.evosuite.testcase.execution.TestRunnable.executeStatements(TestRunnable.java:295) org.evosuite.testcase.execution.TestRunnable.call(TestRunnable.java:201) org.evosuite.testcase.execution.TestRunnable.call(TestRunnable.java:54) java.util.concurrent.FutureTask.run(FutureTask.java:266) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) java.lang.Thread.run(Thread.java:748)
at org.evosuite.instrumentation.InstrumentingClassLoader.instrumentClass(InstrumentingClassLoader.java:164) at org.evosuite.instrumentation.InstrumentingClassLoader.loadClass(InstrumentingClassLoader.java:132) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.evosuite.testcase.statements.MethodStatement$1.execute(MethodStatement.java:261) at org.evosuite.testcase.statements.AbstractStatement.exceptionHandler(AbstractStatement.java:172) at org.evosuite.testcase.statements.MethodStatement.execute(MethodStatement.java:224) at org.evosuite.testcase.execution.TestRunnable.executeStatements(TestRunnable.java:295) at org.evosuite.testcase.execution.TestRunnable.call(TestRunnable.java:201) at org.evosuite.testcase.execution.TestRunnable.call(TestRunnable.java:54) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.SecurityException: Security manager blocks ("java.io.FilePermission" "evosuite-graphs/Newzgrabber.Newzbatch/RCFG" "write") java.lang.Thread.getStackTrace(Thread.java:1559) org.evosuite.runtime.sandbox.MSecurityManager.checkPermission(MSecurityManager.java:433) java.lang.SecurityManager.checkWrite(SecurityManager.java:979) java.io.File.mkdir(File.java:1311) java.io.File.mkdirs(File.java:1343) org.evosuite.graphs.EvoSuiteGraph.createGraphDirectory(EvoSuiteGraph.java:797) org.evosuite.graphs.EvoSuiteGraph.toDot(EvoSuiteGraph.java:758) org.evosuite.graphs.GraphPool.registerRawCFG(GraphPool.java:214) org.evosuite.graphs.cfg.CFGGenerator.registerCFGs(CFGGenerator.java:104) org.evosuite.graphs.cfg.CFGMethodAdapter.visitEnd(CFGMethodAdapter.java:233) org.evosuite.shaded.org.objectweb.asm.MethodVisitor.visitEnd(MethodVisitor.java:783) org.evosuite.shaded.org.objectweb.asm.MethodVisitor.visitEnd(MethodVisitor.java:783) org.evosuite.shaded.org.objectweb.asm.MethodVisitor.visitEnd(MethodVisitor.java:783) org.evosuite.shaded.org.objectweb.asm.tree.MethodNode.accept(MethodNode.java:772) org.evosuite.shaded.org.objectweb.asm.tree.MethodNode.accept(MethodNode.java:649) org.evosuite.shaded.org.objectweb.asm.tree.ClassNode.accept(ClassNode.java:452) org.evosuite.instrumentation.BytecodeInstrumentation.transformBytes(BytecodeInstrumentation.java:287) org.evosuite.instrumentation.InstrumentingClassLoader.getTransformedBytes(InstrumentingClassLoader.java:141) org.evosuite.instrumentation.InstrumentingClassLoader.instrumentClass(InstrumentingClassLoader.java:155) org.evosuite.instrumentation.InstrumentingClassLoader.loadClass(InstrumentingClassLoader.java:132) java.lang.Class.forName0(Native Method) java.lang.Class.forName(Class.java:348) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.evosuite.testcase.statements.MethodStatement$1.execute(MethodStatement.java:261) org.evosuite.testcase.statements.AbstractStatement.exceptionHandler(AbstractStatement.java:172) org.evosuite.testcase.statements.MethodStatement.execute(MethodStatement.java:224) org.evosuite.testcase.execution.TestRunnable.executeStatements(TestRunnable.java:295) org.evosuite.testcase.execution.TestRunnable.call(TestRunnable.java:201) org.evosuite.testcase.execution.TestRunnable.call(TestRunnable.java:54) java.util.concurrent.FutureTask.run(FutureTask.java:266) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) java.lang.Thread.run(Thread.java:748)
Additional info
Getting same error using both the latest and previous releases.