Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: time example #331

Open
KwanghoKim opened this issue Aug 18, 2021 · 0 comments
Open

ERROR: time example #331

KwanghoKim opened this issue Aug 18, 2021 · 0 comments

Comments

@KwanghoKim
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant