I would like to run my play framework tests in parallel in many forked JVMs so I've got:
fork in test := true
When I add that setting running the tests ends up with:
[error] Could not accept connection from test agent: class java.net.SocketException: Socket closed
[trace] Stack trace suppressed: run last test:test for the full output.
[trace] Stack trace suppressed: run last test:executeTests for the full output.
[error] (test:executeTests) java.lang.NullPointerException
And the details:
$ last test:testOnly
[debug] Forking tests - parallelism = false
[error] Could not accept connection from test agent: class java.net.SocketException: Socket closed
java.net.SocketException: Socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398)
at java.net.ServerSocket.implAccept(ServerSocket.java:530)
at java.net.ServerSocket.accept(ServerSocket.java:498)
at sbt.ForkTests$$anonfun$mainTestTask$1$Acceptor$2$.run(ForkTests.scala:48)
at java.lang.Thread.run(Thread.java:745)
java.lang.NullPointerException
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1010)
at sbt.SimpleProcessBuilder.run(ProcessImpl.scala:388)
at sbt.AbstractProcessBuilder.run(ProcessImpl.scala:138)
at sbt.Fork.fork(Fork.scala:97)
at sbt.Fork.apply(Fork.scala:75)
at sbt.ForkTests$$anonfun$mainTestTask$1.apply(ForkTests.scala:90)
at sbt.ForkTests$$anonfun$mainTestTask$1.apply(ForkTests.scala:34)
at sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:45)
at sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:45)
at sbt.std.Transform$$anon$4.work(System.scala:64)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:244)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Is that an Sbt problem or I am doing something wrong. There is nothing about it when I search the web.
Many thanks,
Lucho
--
You received this message because you are subscribed to the Google Groups "sbt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sbt-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sbt-dev/0be0949c-9fc2-4581-a236-e59b1766282d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "sbt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sbt-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sbt-dev/6bef2716-018d-47c1-a045-b3c982a27686%40googlegroups.com.
Not really. If you can get the cli we call and try the command yourself, that may give better insight.
Unfortunately forking on the jvm is a dark art with lots of issues regarding grtting good error mesages.
--
You received this message because you are subscribed to the Google Groups "sbt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sbt-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sbt-dev/0a08b1c4-0d7e-4b1c-8016-463d9487ffd6%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sbt-dev/ae8b283f-5e40-4933-a9d6-948e58b77c1a%40googlegroups.com.