SpoonLabs / astor

Automatic program repair for Java with generate-and-validate techniques :v::v:: jGenProg (2014) - jMutRepair (2016) - jKali (2016) - DeepRepair (2017) - Cardumen (2018) - 3sfix (2018)
https://hal.archives-ouvertes.fr/hal-01321615/document
GNU General Public License v2.0
207 stars 106 forks source link

ERROR: time example #331

Open KwanghoKim opened 3 years ago

KwanghoKim commented 3 years ago

Hi, I'm kim

Thank you for your astor. I think it is so great tool.

But I meet a problem. Could you tell me how to resolve below error?

========= kwangho@kwangho-750XDA:~/workspace/astor$ java -cp $(cat /tmp/astor-classpath.txt):target/classes fr.inria.main.evolution.AstorMain -mode jgenprog -srcjavafolder /src/java/ -srctestfolder /src/test/ -binjavafolder /target/classes/ -bintestfolder /target/test-classes/ -location /home/kwangho/workspace/astor/examples/time_2/ -dependencies examples/time_2/lib 16:57:36.543 [main] ERROR MutationSupporter - Problem compiling the model with compliance level 8 16:57:36.545 [main] ERROR MutationSupporter - The import org.joda.convert cannot be resolved at /home/kwangho/workspace/astor/examples/time_2/src/main/java/org/joda/time/base/AbstractPeriod.java:18 spoon.compiler.ModelBuildingException: The import org.joda.convert cannot be resolved at /home/kwangho/workspace/astor/examples/time_2/src/main/java/org/joda/time/base/AbstractPeriod.java:18 at spoon.support.compiler.jdt.JDTBasedSpoonCompiler.report(JDTBasedSpoonCompiler.java:635) at spoon.support.compiler.jdt.JDTBasedSpoonCompiler.reportProblems(JDTBasedSpoonCompiler.java:617) at spoon.support.compiler.jdt.JDTBasedSpoonCompiler.build(JDTBasedSpoonCompiler.java:116) at spoon.support.compiler.jdt.JDTBasedSpoonCompiler.build(JDTBasedSpoonCompiler.java:97) at fr.inria.astor.core.manipulation.MutationSupporter.buildModel(MutationSupporter.java:85) at fr.inria.astor.core.manipulation.MutationSupporter.buildSpoonModel(MutationSupporter.java:240) at fr.inria.astor.core.solutionsearch.AstorCoreEngine.initModel(AstorCoreEngine.java:776) at fr.inria.main.evolution.AstorMain.createEngine(AstorMain.java:113) at fr.inria.main.evolution.AstorMain.run(AstorMain.java:173) at fr.inria.main.evolution.AstorMain.execute(AstorMain.java:233) at fr.inria.main.evolution.AstorMain.main(AstorMain.java:204) spoon.compiler.ModelBuildingException: The import org.joda.convert cannot be resolved at /home/kwangho/workspace/astor/examples/time_2/src/main/java/org/joda/time/base/AbstractPeriod.java:18 at spoon.support.compiler.jdt.JDTBasedSpoonCompiler.report(JDTBasedSpoonCompiler.java:635) at spoon.support.compiler.jdt.JDTBasedSpoonCompiler.reportProblems(JDTBasedSpoonCompiler.java:617) at spoon.support.compiler.jdt.JDTBasedSpoonCompiler.build(JDTBasedSpoonCompiler.java:116) at spoon.support.compiler.jdt.JDTBasedSpoonCompiler.build(JDTBasedSpoonCompiler.java:97) at fr.inria.astor.core.manipulation.MutationSupporter.buildModel(MutationSupporter.java:85) at fr.inria.astor.core.manipulation.MutationSupporter.buildSpoonModel(MutationSupporter.java:253) at fr.inria.astor.core.solutionsearch.AstorCoreEngine.initModel(AstorCoreEngine.java:776) at fr.inria.main.evolution.AstorMain.createEngine(AstorMain.java:113) at fr.inria.main.evolution.AstorMain.run(AstorMain.java:173) at fr.inria.main.evolution.AstorMain.execute(AstorMain.java:233) at fr.inria.main.evolution.AstorMain.main(AstorMain.java:204) 16:57:37.596 [main] ERROR MutationSupporter - Error compiling: The import org.joda.convert cannot be resolved at /home/kwangho/workspace/astor/examples/time_2/src/main/java/org/joda/time/base/AbstractPeriod.java:18 16:57:37.705 [main] ERROR MutationSupporter - Astor continues when model build fails. Classes created: 157