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

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

Closed
dprabah opened this issue Apr 2, 2021 · 3 comments
Closed

Comments

@dprabah
Copy link

dprabah commented Apr 2, 2021

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.
#308 (comment)

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
Copy link
Owner

rjust commented Apr 8, 2021

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

Thanks,
René

@dprabah
Copy link
Author

dprabah commented Apr 9, 2021

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.

@rjust
Copy link
Owner

rjust commented Sep 21, 2024

The version 3 release fixed most of the mutation analysis issues in D4J.

Issue #615 tracks the remaining issues.

@rjust rjust closed this as completed Sep 21, 2024
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

2 participants