rjust / defects4j

A Database of Real Faults and an Experimental Infrastructure to Enable Controlled Experiments in Software Engineering Research
MIT License
700 stars 298 forks source link

Mutation analysis throws exception for few bug id's in project Mockito #407

Open dprabah opened 3 years ago

dprabah commented 3 years ago

Dear Prof. Just,

When we execute the command "defects4j mutation", for the project = "Mockito" with Bug-id=[1-10, 18, 20, 21, 35] it fails.

Ms. LuisaLiu had already discussed in this thread. https://github.com/rjust/defects4j/issues/308#issuecomment-604411028

We saw two type of error:

1.
[exec] BUILD FAILED
[exec] /home/pepper/tmp/Mockito_21_fixed/build-ant.xml:26: Failed to build jar file:
[exec]
[exec] Total time: 0 seconds      [bnd] Errors
[exec]
[exec]       [bnd] Unresolved references to [major.mutation] by class(es) on the Bundle-Classpath[Jar:dot]: [org/mockito/internal/creation/instance/ConstructorInstantiator.class]
[exec]       [bnd] /home/pepper/tmp/Mockito_21_fixed/conf/mockito-core.bnd: bnd failed
[exec]       [bnd]  at aQute.bnd.ant.BndTask.executeBackwardCompatible(BndTask.java:128)
[exec]       [bnd]  at aQute.bnd.ant.BndTask.execute(BndTask.java:28)
[exec]       [bnd]  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[exec]       [bnd]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[exec]       [bnd]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[exec]       [bnd]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[exec]       [bnd]  at java.lang.reflect.Method.invoke(Method.java:606)
[exec]       [bnd]  at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[exec]       [bnd]  at org.apache.tools.ant.Task.perform(Task.java:348)
[exec]       [bnd]  at org.apache.tools.ant.Target.execute(Target.java:392)
[exec]       [bnd]  at org.apache.tools.ant.Target.performTasks(Target.java:413)
[exec]       [bnd]  at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[exec]       [bnd]  at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[exec]       [bnd]  at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[exec]       [bnd]  at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[exec]       [bnd]  at org.apache.tools.ant.Main.runBuild(Main.java:811)
[exec]       [bnd]  at org.apache.tools.ant.Main.startAnt(Main.java:217)
[exec]       [bnd]  at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[exec]       [bnd]  at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

2.
[exec] :buildSrc:test
[exec]
[exec] org.mockito.release.notes.improvements.GitHubTicketFetcherTest > fetches improvements from GitHub FAILED
[exec]     java.lang.RuntimeException: Problems fetching 4 from GitHub
[exec]         at org.mockito.release.notes.improvements.GitHubTicketFetcher.fetchTickets(GitHubTicketFetcher.java:47)
[exec]         at org.mockito.release.notes.improvements.GitHubTicketFetcherTest.fetches improvements from GitHub(GitHubTicketFetcherTest.groovy:17)
[exec]
[exec]         Caused by:
[exec]         javax.net.ssl.SSLException: Received fatal alert: protocol_version
[exec]             at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1676)
[exec]             at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1674)
[exec]             at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1672)
[exec]             at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1245)
[exec]             at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
[exec]             at org.mockito.release.notes.improvements.GitHubTicketFetcher$GitHubIssues.parseJsonFrom(GitHubTicketFetcher.java:149)
[exec]             at org.mockito.release.notes.improvements.GitHubTicketFetcher$GitHubIssues.nextPage(GitHubTicketFetcher.java:135)
[exec]             at org.mockito.release.notes.improvements.GitHubTicketFetcher.fetchTickets(GitHubTicketFetcher.java:40)
[exec]             ... 1 more
[exec]
[exec]             Caused by:
[exec]             javax.net.ssl.SSLException: Received fatal alert: protocol_version

Is there something we could do to fix this issue?

rjust commented 3 years ago

Can you please provide all commands necessary to reproduce this issue (presumably starting with defects4j checkout)?

Thanks, René

dprabah commented 3 years ago

Dear Prof. Just,

the below commands will reproduce the issue.

defects4j checkout -p Mockito -v 2f -w Mockito_2_fixed
defects4j mutation -w Mockito_2_fixed

Kind Regards, Prabah.