-
Type:
Bug
-
Status: Resolved
-
Resolution: Fixed
-
Affects Version/s: 0.9
-
Fix Version/s: 0.9-rc-1
My tests in buildSrc, using Groovy and TestNG, always fail to run with this exception:
:buildSrc:testorg.gradle.api.GradleException: java.net.SocketException: Network is unreachable at org.gradle.messaging.dispatch.TcpOutgoingConnector.connect(TcpOutgoingConnector.java:45) at org.gradle.messaging.dispatch.DefaultMultiChannelConnector.connect(DefaultMultiChannelConnector.java:82) at org.gradle.messaging.DefaultMessagingClient.<init>(DefaultMessagingClient.java:28) at org.gradle.messaging.TcpMessagingClient.<init>(TcpMessagingClient.java:32) at org.gradle.process.child.ActionExecutionWorker.createClient(ActionExecutionWorker.java:85) at org.gradle.process.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:49) at org.gradle.process.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:34) at org.gradle.process.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:75) at org.gradle.process.child.ImplementationClassLoaderWorker.execute(ImplementationClassLoaderWorker.java:32) at org.gradle.process.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:45) at org.gradle.process.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:29) at org.gradle.process.launcher.BootstrapClassLoaderWorker.call(BootstrapClassLoaderWorker.java:63) at org.gradle.process.launcher.BootstrapClassLoaderWorker.call(BootstrapClassLoaderWorker.java:46) at org.gradle.process.launcher.GradleWorkerMain.run(GradleWorkerMain.java:30) at org.gradle.process.launcher.GradleWorkerMain.main(GradleWorkerMain.java:35) Caused by: java.net.SocketException: Network is unreachable at sun.nio.ch.Net.connect(Native Method) at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:525) at java.nio.channels.SocketChannel.open(SocketChannel.java:164) at org.gradle.messaging.dispatch.TcpOutgoingConnector.connect(TcpOutgoingConnector.java:40) ... 14 more Could not send message, as connection is stopping. Could not send message, as connection is stopping. Could not send message, as connection is stopping. Could not send message, as connection is stopping. Could not send message, as connection is stopping. Could not send message, as connection is stopping.
The buildSrc/build.gradle is simple:
apply plugin: 'groovy' repositories { mavenCentral() } dependencies { groovy group: 'org.codehaus.groovy', name: 'groovy-all', version: '1.7.2' testCompile group: 'net.sourceforge.nekohtml', name: 'nekohtml', version: '1.9.12' testCompile group: 'xerces', name: 'xercesImpl', version: '2.8.1' testCompile group: 'org.testng', name: 'testng', version: '5.12.1' } test { useTestNG() }
There are two test classes in buildSrc/src/test/groovy. They compile correctly but do not seem to run (I think) before the failure.