question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.net.SocketException: Connection reset

See original GitHub issue

Summary

Often - but not always - I’m seeing this in the Stryker4S log:

04:09:27.238 [scala-execution-context-global-360] INFO  stryker4s.report.ConsoleReporter - Starting test-run 173...
04:09:44.310 [scala-execution-context-global-360] INFO  stryker4s.run.TestRunner$$anon$2 - TestRunner crashed for mutant 172. Starting a new one and retrying this mutant 2 more time(s)
[error] java.net.SocketException: Connection reset
[error] 	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:186)
[error] 	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
[error] 	at java.base/java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2824)
[error] 	at java.base/java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2840)
[error] 	at java.base/java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:3337)
[error] 	at java.base/java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:925)
[error] 	at java.base/java.io.ObjectInputStream.<init>(ObjectInputStream.java:368)
[error] 	at stryker4s.sbt.runner.TestRunnerConnection$.$anonfun$create$4(TestRunnerConnection.scala:44)

I don’t exactly understand what is happening here, and why I’m seeing this message. From the message, I don’t know what to do either.

You can check the full logs in GitHub actions.

Stryker4s config

stryker4s {
  base-dir = "app"
  mutate = [
    "src/main/scala/**/*.scala"
  ]
  reporters = [
    console,
    dashboard
  ]
}

Stryker4s environment

stryker4s 0.9.1+106-39ba27bd-SNAPSHOT

Your Environment

software version(s)
Scala version 2.13.1
Build tool & version SBT 1.3.13
Operating System Ubuntu Linux

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:22 (22 by maintainers)

github_iconTop GitHub Comments

1reaction
mthmulderscommented, Dec 19, 2020

It seems that the last run (with Stryker 0.10) re-introduced those mutants. Let’s close this case for now…

1reaction
mthmulderscommented, Dec 16, 2020

I’m now on 0.10.0-RC2, and the dashboard is updated nightly. Haven’t tried with 0.10.0-RC3 recently, somehow ScalaSteward didn’t offer a pull request just yet 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

java.net.SocketException: Connection reset
Connection reset simply means that a TCP RST was received. This happens when your peer receives data that it can' ...
Read more >
How to Fix with java.net.SocketException: Connection reset ...
The java.net.SocketException: Connection reset error usually comes when one of the parties in TCP connection like client or server is trying to read/write...
Read more >
How to resolve java.net.SocketException: Connection reset
This SocketException occurs on the server side when the client closed the socket connection before the response could be returned over the socket....
Read more >
How To Fix Internet Exception java.net.socketexception ...
Renew Your System IP Address · Go to your search window on your PC and type in “ cmd ” to open your...
Read more >
How does java net SocketException Connection reset ...
The java.net.SocketException: Connection reset error usually comes when one of the parties in TCP connection like client or server is trying to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found