Skip to content

Nopol Defects4j JUnit Jar missing #203

@NietroMiner00

Description

@NietroMiner00

Hello,

I tried to run the defects4j benchmark with the nopol repair tool on Bug ID 1. Cerberus runs without errors, but later in the logs of the container, it seems like JUnit binaries are missing. How could one resolve that?

To even come to this point, I had to checkout the master branch of defects4j, as the metadata was incompatible, like in #201 comment and change the groupid to 999 like in this comment.

This is the only combination of repair tool and benchmark I even got to work. Everything else is also running into incompatible metadata or undescriptive errors, when starting from a fresh git clone with ssh. HTTPs cloning did not work, like described in #38.

We would really appreciate your help. Thanks in advance! Let me know, if you need more information to resolve this bug.

Here are the logs:

TP1-nopol-Chart-1-output.log

Tue 19 Nov 2024 13:53:51 PM
java.lang.IllegalArgumentException: File does not exist in: '/experiment/defects4j/Chart/Chart-1/deps/lib/junit-4.11.jar'
	at xxl.java.library.FileLibrary.fail(FileLibrary.java:129)
	at xxl.java.library.FileLibrary.openFrom(FileLibrary.java:29)
	at xxl.java.library.FileLibrary.urlFrom(FileLibrary.java:100)
	at xxl.java.library.JavaLibrary.classpathFrom(JavaLibrary.java:84)
	at fr.inria.lille.repair.Main.main(Main.java:37)

Simulation:
-----------
	$ java -cp <nopol-jar-file> fr.inria.lille.repair.nopol.NoPolLauncher z3|cvc4 <solver-path>
	
NOTE: This simulation looks for a folder named "/misc" in the same location as the jar file. 


Loop analysis
-------------
	$ java -cp <nopol-jar-file> fr.inria.lille.repair.infinitel.InfinitelDiagnostician <source path> <class path>


Execution:
----------
	$ java -jar <nopol-jar-file> infinitel <source path> <class path> z3|cvc4 <solver-path> [iteration-limit]

	$ java -jar <nopol-jar-file> nopol <source path> <class path> z3|cvc4 <solver-path> [<test-class-name>...]


References:
-----------
-    <nopol-jar-file>   path to nopol *.jar file
-    <source path>      path to file/folder containing source code to be fixed
-    <class path>       path(s) to folder(s) with class files (separated by colon ':')
-    z3|cvc4            either one of these solvers
-    <solver-path>      path to chosen solver binary

Tue 19 Nov 2024 13:53:52 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions