I'm having the same issue. The STS Gradle Plugin seems to be having trouble launching the milestone 9 daemon. It wants to use milestone 7 and has no problems starting that daemon but then I get errors because I'm using things not available in 7. I can work around it by manually starting the daemon with the wrapper.
Message:
Could not fetch model of type 'EclipseProject' using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.0-milestone-9-bin.zip'.
Session Data:
eclipse.buildId=2.9.0.201203011000-RELEASE
java.version=1.7.0_03
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product com.springsource.sts.ide -showlocation
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.springsource.sts.ide -showlocation
Stack:
org.gradle.tooling.GradleConnectionException: Could not fetch model of type 'EclipseProject' using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.0-milestone-9-bin.zip'.
at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:46)
at org.gradle.tooling.internal.consumer.DefaultAsyncConnection$3.run(DefaultAsyncConnection.java:73)
at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.gradle.api.GradleException: Could not start Gradle daemon.
at org.gradle.launcher.daemon.client.DefaultDaemonStarter.startProcess(DefaultDaemonStarter.java:103)
at org.gradle.launcher.daemon.client.DefaultDaemonStarter.startDaemon(DefaultDaemonStarter.java:82)
at org.gradle.launcher.daemon.client.DefaultDaemonConnector.createConnection(DefaultDaemonConnector.java:100)
at org.gradle.launcher.daemon.client.DefaultDaemonConnector.connect(DefaultDaemonConnector.java:70)
at org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:104)
at org.gradle.tooling.internal.provider.DaemonGradleLauncherActionExecuter.execute(DaemonGradleLauncherActionExecuter.java:44)
at org.gradle.tooling.internal.provider.DaemonGradleLauncherActionExecuter.execute(DaemonGradleLauncherActionExecuter.java:31)
at org.gradle.tooling.internal.provider.LoggingBridgingGradleLauncherActionExecuter.execute(LoggingBridgingGradleLauncherActionExecuter.java:53)
at org.gradle.tooling.internal.provider.LoggingBridgingGradleLauncherActionExecuter.execute(LoggingBridgingGradleLauncherActionExecuter.java:30)
at org.gradle.tooling.internal.provider.DefaultConnection.run(DefaultConnection.java:105)
at org.gradle.tooling.internal.provider.DefaultConnection.getTheModel(DefaultConnection.java:98)
at org.gradle.tooling.internal.provider.DefaultConnection.getModel(DefaultConnection.java:80)
at org.gradle.tooling.internal.consumer.LazyConnection$3.run(LazyConnection.java:93)
at org.gradle.tooling.internal.consumer.LazyConnection$3.run(LazyConnection.java:91)
at org.gradle.tooling.internal.consumer.LazyConnection.withConnection(LazyConnection.java:101)
at org.gradle.tooling.internal.consumer.LazyConnection.getModel(LazyConnection.java:91)
at org.gradle.tooling.internal.consumer.ProgressLoggingConnection$2.run(ProgressLoggingConnection.java:58)
at org.gradle.tooling.internal.consumer.ProgressLoggingConnection$2.run(ProgressLoggingConnection.java:56)
at org.gradle.tooling.internal.consumer.ProgressLoggingConnection.run(ProgressLoggingConnection.java:72)
at org.gradle.tooling.internal.consumer.ProgressLoggingConnection.getModel(ProgressLoggingConnection.java:56)
at org.gradle.tooling.internal.consumer.LoggingInitializerConnection.getModel(LoggingInitializerConnection.java:46)
at org.gradle.tooling.internal.consumer.DefaultAsyncConnection$2.run(DefaultAsyncConnection.java:53)
at org.gradle.tooling.internal.consumer.DefaultAsyncConnection$2.run(DefaultAsyncConnection.java:51)
at org.gradle.tooling.internal.consumer.DefaultAsyncConnection$3.run(DefaultAsyncConnection.java:71)
... 4 more
Caused by: org.gradle.internal.nativeplatform.jna.WindowsProcessInitializer$ProcessInitializationException: Failed to configure the standard stream handles to be 'uninheritable'.
at org.gradle.internal.nativeplatform.jna.WindowsProcessInitializer.initialize(WindowsProcessInitializer.java:49)
at org.gradle.launcher.daemon.client.DefaultDaemonStarter.startProcess(DefaultDaemonStarter.java:92)
... 27 more
Caused by: java.lang.NullPointerException
at org.gradle.internal.nativeplatform.jna.WindowsProcessInitializer.makeUninheritable(WindowsProcessInitializer.java:54)
at org.gradle.internal.nativeplatform.jna.WindowsProcessInitializer.initialize(WindowsProcessInitializer.java:41)
... 28 more
|