java.lang.reflect.InvocationTargetException

SpringSource Issue Tracker | John Burbridge | 5 years ago
  1. 0

    Gradle 1.0-milstone-6 integration with STS times out. What steps will reproduce the problem? 1. Install a fresh copy of STS 2.0.0 2. Set the gradle distribution URI to: http://repo.gradle.org/gradle/distributions/gradle-1.0-milestone-6-bin.zip 3. When trying to import a multi-project build, the build times out with a "Timeout waiting to connecto Gradle daemon" Notes: The same build runs successfully from command line. I have attempted to run with and without the gradle daemon already running (gradle --daemon, and gradle --stop). Also, the exact same project works fine under the same version of STS under linux (Ubuntu 10.04) so it seems to suggest the issue is platform specific. The multi-project build in question can be found here: https://github.com/johnburbridge/johnburbridge.com Thanks, JB -- Error Details -- Date: Mon Nov 21 19:03:17 PST 2011 Message: Timeout waiting to connect to Gradle daemon. Severity: Error Product: SpringSource Tool Suite 2.8.0.201110171000-RELEASE (com.springsource.sts.ide) Plugin: com.springsource.sts.gradle.core Session Data: eclipse.buildId=2.8.0.201110171000-RELEASE java.version=1.6.0_26 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Framework arguments: -product com.springsource.sts.ide Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.springsource.sts.ide Exception Stack Trace: java.lang.reflect.InvocationTargetException at com.springsource.sts.gradle.core.util.GradleRunnable.run(GradleRunnable.java:85) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by: org.eclipse.core.runtime.CoreException: Timeout waiting to connect to Gradle daemon. at com.springsource.sts.gradle.core.util.ExceptionUtil.coreException(ExceptionUtil.java:34) at com.springsource.sts.gradle.core.util.ExceptionUtil.coreException(ExceptionUtil.java:45) at com.springsource.sts.gradle.core.GradleModelProvider.buildModel(GradleModelProvider.java:363) at com.springsource.sts.gradle.core.GradleModelProvider$GroupedModelProvider.ensureModels(GradleModelProvider.java:258) at com.springsource.sts.gradle.core.GradleProject.getModelProvider(GradleProject.java:480) at com.springsource.sts.gradle.core.GradleProject.getGradleModel(GradleProject.java:540) at com.springsource.sts.gradle.core.GradleProject.getSkeletalGradleModel(GradleProject.java:565) at com.springsource.sts.gradle.ui.wizards.GradleImportWizardPageOne$9.doit(GradleImportWizardPageOne.java:471) at com.springsource.sts.gradle.core.util.GradleRunnable.run(GradleRunnable.java:77) ... 1 more Caused by: org.gradle.tooling.GradleConnectionException: Could not fetch model of type 'HierarchicalEclipseProject' using Gradle distribution 'http://repo.gradle.org/gradle/distributions/gradle-1.0-milestone-6-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$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.gradle.api.GradleException: Timeout waiting to connect to Gradle daemon. at org.gradle.launcher.daemon.client.DefaultDaemonConnector.connect(DefaultDaemonConnector.java:108) at org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:90) at org.gradle.tooling.internal.provider.DaemonGradleLauncherActionExecuter.execute(DaemonGradleLauncherActionExecuter.java:41) at org.gradle.tooling.internal.provider.DaemonGradleLauncherActionExecuter.execute(DaemonGradleLauncherActionExecuter.java:30) at org.gradle.tooling.internal.provider.LoggingBridgingGradleLauncherActionExecuter.execute(LoggingBridgingGradleLauncherActionExecuter.java:56) at org.gradle.tooling.internal.provider.LoggingBridgingGradleLauncherActionExecuter.execute(LoggingBridgingGradleLauncherActionExecuter.java:30) at org.gradle.tooling.internal.provider.DefaultConnection.run(DefaultConnection.java:76) at org.gradle.tooling.internal.provider.DefaultConnection.getModel(DefaultConnection.java:70) at org.gradle.tooling.internal.consumer.LazyConnection$3.run(LazyConnection.java:90) at org.gradle.tooling.internal.consumer.LazyConnection$3.run(LazyConnection.java:88) at org.gradle.tooling.internal.consumer.LazyConnection.withConnection(LazyConnection.java:98) at org.gradle.tooling.internal.consumer.LazyConnection.getModel(LazyConnection.java:88) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection$2.run(ProgressLoggingConnection.java:61) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection$2.run(ProgressLoggingConnection.java:59) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection.run(ProgressLoggingConnection.java:74) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection.getModel(ProgressLoggingConnection.java:59) 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

    SpringSource Issue Tracker | 5 years ago | John Burbridge
    java.lang.reflect.InvocationTargetException
  2. 0

    Gradle 1.0-milstone-6 integration with STS times out. What steps will reproduce the problem? 1. Install a fresh copy of STS 2.0.0 2. Set the gradle distribution URI to: http://repo.gradle.org/gradle/distributions/gradle-1.0-milestone-6-bin.zip 3. When trying to import a multi-project build, the build times out with a "Timeout waiting to connecto Gradle daemon" Notes: The same build runs successfully from command line. I have attempted to run with and without the gradle daemon already running (gradle --daemon, and gradle --stop). Also, the exact same project works fine under the same version of STS under linux (Ubuntu 10.04) so it seems to suggest the issue is platform specific. The multi-project build in question can be found here: https://github.com/johnburbridge/johnburbridge.com Thanks, JB -- Error Details -- Date: Mon Nov 21 19:03:17 PST 2011 Message: Timeout waiting to connect to Gradle daemon. Severity: Error Product: SpringSource Tool Suite 2.8.0.201110171000-RELEASE (com.springsource.sts.ide) Plugin: com.springsource.sts.gradle.core Session Data: eclipse.buildId=2.8.0.201110171000-RELEASE java.version=1.6.0_26 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Framework arguments: -product com.springsource.sts.ide Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.springsource.sts.ide Exception Stack Trace: java.lang.reflect.InvocationTargetException at com.springsource.sts.gradle.core.util.GradleRunnable.run(GradleRunnable.java:85) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by: org.eclipse.core.runtime.CoreException: Timeout waiting to connect to Gradle daemon. at com.springsource.sts.gradle.core.util.ExceptionUtil.coreException(ExceptionUtil.java:34) at com.springsource.sts.gradle.core.util.ExceptionUtil.coreException(ExceptionUtil.java:45) at com.springsource.sts.gradle.core.GradleModelProvider.buildModel(GradleModelProvider.java:363) at com.springsource.sts.gradle.core.GradleModelProvider$GroupedModelProvider.ensureModels(GradleModelProvider.java:258) at com.springsource.sts.gradle.core.GradleProject.getModelProvider(GradleProject.java:480) at com.springsource.sts.gradle.core.GradleProject.getGradleModel(GradleProject.java:540) at com.springsource.sts.gradle.core.GradleProject.getSkeletalGradleModel(GradleProject.java:565) at com.springsource.sts.gradle.ui.wizards.GradleImportWizardPageOne$9.doit(GradleImportWizardPageOne.java:471) at com.springsource.sts.gradle.core.util.GradleRunnable.run(GradleRunnable.java:77) ... 1 more Caused by: org.gradle.tooling.GradleConnectionException: Could not fetch model of type 'HierarchicalEclipseProject' using Gradle distribution 'http://repo.gradle.org/gradle/distributions/gradle-1.0-milestone-6-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$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.gradle.api.GradleException: Timeout waiting to connect to Gradle daemon. at org.gradle.launcher.daemon.client.DefaultDaemonConnector.connect(DefaultDaemonConnector.java:108) at org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:90) at org.gradle.tooling.internal.provider.DaemonGradleLauncherActionExecuter.execute(DaemonGradleLauncherActionExecuter.java:41) at org.gradle.tooling.internal.provider.DaemonGradleLauncherActionExecuter.execute(DaemonGradleLauncherActionExecuter.java:30) at org.gradle.tooling.internal.provider.LoggingBridgingGradleLauncherActionExecuter.execute(LoggingBridgingGradleLauncherActionExecuter.java:56) at org.gradle.tooling.internal.provider.LoggingBridgingGradleLauncherActionExecuter.execute(LoggingBridgingGradleLauncherActionExecuter.java:30) at org.gradle.tooling.internal.provider.DefaultConnection.run(DefaultConnection.java:76) at org.gradle.tooling.internal.provider.DefaultConnection.getModel(DefaultConnection.java:70) at org.gradle.tooling.internal.consumer.LazyConnection$3.run(LazyConnection.java:90) at org.gradle.tooling.internal.consumer.LazyConnection$3.run(LazyConnection.java:88) at org.gradle.tooling.internal.consumer.LazyConnection.withConnection(LazyConnection.java:98) at org.gradle.tooling.internal.consumer.LazyConnection.getModel(LazyConnection.java:88) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection$2.run(ProgressLoggingConnection.java:61) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection$2.run(ProgressLoggingConnection.java:59) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection.run(ProgressLoggingConnection.java:74) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection.getModel(ProgressLoggingConnection.java:59) 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

    SpringSource Issue Tracker | 5 years ago | John Burbridge
    java.lang.reflect.InvocationTargetException
  3. 0

    My windows box is behind a proxy firewall. I was able to install STS and the Gradle extensions by setting up the proxies by doing the following: 1) Add -Dhttp.proxyHost -Dhttp.proxyPort -Dhttps.proxyHost -Dhttps.proxyPort to my STS.ini file right after -vmargs 2) In Eclipse preferences "General >> Network Connections" switch to "manual" and configure the same proxy settings here as well. After doing that I tried importing the simple "Java quickstart" sample project. Proxy settings seem to get to Gradle ok... at least the API was able to download milestone 3 zip. However, it seems to have trouble creating a connection to the Gradle Daemon running on localhost. I get the following exception: {noformat} java.lang.reflect.InvocationTargetException at com.springsource.sts.gradle.core.util.GradleRunnable.run(GradleRunnable.java:80) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by: org.eclipse.core.runtime.CoreException: Could not fetch model of type 'HierarchicalEclipseProject' using Gradle distribution 'http://repo.gradle.org/gradle/distributions/gradle-1.0-milestone-3-bin.zip'. at com.springsource.sts.gradle.core.util.ExceptionUtil.coreException(ExceptionUtil.java:59) at com.springsource.sts.gradle.core.GradleModelProvider$PrefetchingModelProvider.requestModel(GradleModelProvider.java:93) at com.springsource.sts.gradle.core.GradleProject.getGradleModel(GradleProject.java:328) at com.springsource.sts.gradle.core.GradleProject.getSkeletalGradleModel(GradleProject.java:341) at com.springsource.sts.gradle.ui.wizards.GradleImportWizardPageOne$9.doit(GradleImportWizardPageOne.java:422) at com.springsource.sts.gradle.core.util.GradleRunnable.run(GradleRunnable.java:72) ... 1 more Caused by: org.gradle.tooling.GradleConnectionException: Could not fetch model of type 'HierarchicalEclipseProject' using Gradle distribution 'http://repo.gradle.org/gradle/distributions/gradle-1.0-milestone-3-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:63) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: org.gradle.api.GradleException: Timeout waiting to connect to Gradle daemon. at org.gradle.launcher.DaemonConnector.connect(DaemonConnector.java:122) at org.gradle.launcher.DaemonClient.execute(DaemonClient.java:78) at org.gradle.tooling.internal.provider.DaemonGradleLauncherActionExecuter.execute(DaemonGradleLauncherActionExecuter.java:34) at org.gradle.tooling.internal.provider.DaemonGradleLauncherActionExecuter.execute(DaemonGradleLauncherActionExecuter.java:24) at org.gradle.tooling.internal.provider.LoggingBridgingGradleLauncherActionExecuter.execute(LoggingBridgingGradleLauncherActionExecuter.java:56) at org.gradle.tooling.internal.provider.LoggingBridgingGradleLauncherActionExecuter.execute(LoggingBridgingGradleLauncherActionExecuter.java:30) at org.gradle.tooling.internal.provider.DefaultConnection.run(DefaultConnection.java:78) at org.gradle.tooling.internal.provider.DefaultConnection.getModel(DefaultConnection.java:72) at org.gradle.tooling.internal.consumer.LazyConnection$3.run(LazyConnection.java:90) at org.gradle.tooling.internal.consumer.LazyConnection$3.run(LazyConnection.java:88) at org.gradle.tooling.internal.consumer.LazyConnection.withConnection(LazyConnection.java:98) at org.gradle.tooling.internal.consumer.LazyConnection.getModel(LazyConnection.java:88) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection$2.run(ProgressLoggingConnection.java:61) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection$2.run(ProgressLoggingConnection.java:59) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection.run(ProgressLoggingConnection.java:74) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection.getModel(ProgressLoggingConnection.java:59) 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 Root exception: org.eclipse.core.runtime.CoreException: Could not fetch model of type 'HierarchicalEclipseProject' using Gradle distribution 'http://repo.gradle.org/gradle/distributions/gradle-1.0-milestone-3-bin.zip'. at com.springsource.sts.gradle.core.util.ExceptionUtil.coreException(ExceptionUtil.java:59) at com.springsource.sts.gradle.core.GradleModelProvider$PrefetchingModelProvider.requestModel(GradleModelProvider.java:93) at com.springsource.sts.gradle.core.GradleProject.getGradleModel(GradleProject.java:328) at com.springsource.sts.gradle.core.GradleProject.getSkeletalGradleModel(GradleProject.java:341) at com.springsource.sts.gradle.ui.wizards.GradleImportWizardPageOne$9.doit(GradleImportWizardPageOne.java:422) at com.springsource.sts.gradle.core.util.GradleRunnable.run(GradleRunnable.java:72) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by: org.gradle.tooling.GradleConnectionException: Could not fetch model of type 'HierarchicalEclipseProject' using Gradle distribution 'http://repo.gradle.org/gradle/distributions/gradle-1.0-milestone-3-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:63) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: org.gradle.api.GradleException: Timeout waiting to connect to Gradle daemon. at org.gradle.launcher.DaemonConnector.connect(DaemonConnector.java:122) at org.gradle.launcher.DaemonClient.execute(DaemonClient.java:78) at org.gradle.tooling.internal.provider.DaemonGradleLauncherActionExecuter.execute(DaemonGradleLauncherActionExecuter.java:34) at org.gradle.tooling.internal.provider.DaemonGradleLauncherActionExecuter.execute(DaemonGradleLauncherActionExecuter.java:24) at org.gradle.tooling.internal.provider.LoggingBridgingGradleLauncherActionExecuter.execute(LoggingBridgingGradleLauncherActionExecuter.java:56) at org.gradle.tooling.internal.provider.LoggingBridgingGradleLauncherActionExecuter.execute(LoggingBridgingGradleLauncherActionExecuter.java:30) at org.gradle.tooling.internal.provider.DefaultConnection.run(DefaultConnection.java:78) at org.gradle.tooling.internal.provider.DefaultConnection.getModel(DefaultConnection.java:72) at org.gradle.tooling.internal.consumer.LazyConnection$3.run(LazyConnection.java:90) at org.gradle.tooling.internal.consumer.LazyConnection$3.run(LazyConnection.java:88) at org.gradle.tooling.internal.consumer.LazyConnection.withConnection(LazyConnection.java:98) at org.gradle.tooling.internal.consumer.LazyConnection.getModel(LazyConnection.java:88) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection$2.run(ProgressLoggingConnection.java:61) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection$2.run(ProgressLoggingConnection.java:59) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection.run(ProgressLoggingConnection.java:74) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection.getModel(ProgressLoggingConnection.java:59) 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 {noformat}

    Gradle Issues | 6 years ago | Kris De Volder
    java.lang.reflect.InvocationTargetException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Gradle in NetBeans IDE 7.1 (Geertjan's Blog)

    oracle.com | 7 months ago
    org.gradle.api.GradleException: Could not start Gradle daemon.
  6. 0

    My windows box is behind a proxy firewall. I was able to install STS and the Gradle extensions by setting up the proxies by doing the following: 1) Add -Dhttp.proxyHost -Dhttp.proxyPort -Dhttps.proxyHost -Dhttps.proxyPort to my STS.ini file right after -vmargs 2) In Eclipse preferences "General >> Network Connections" switch to "manual" and configure the same proxy settings here as well. After doing that I tried importing the simple "Java quickstart" sample project. Proxy settings seem to get to Gradle ok... at least the API was able to download milestone 3 zip. However, it seems to have trouble creating a connection to the Gradle Daemon running on localhost. I get the following exception: {noformat} java.lang.reflect.InvocationTargetException at com.springsource.sts.gradle.core.util.GradleRunnable.run(GradleRunnable.java:80) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by: org.eclipse.core.runtime.CoreException: Could not fetch model of type 'HierarchicalEclipseProject' using Gradle distribution 'http://repo.gradle.org/gradle/distributions/gradle-1.0-milestone-3-bin.zip'. at com.springsource.sts.gradle.core.util.ExceptionUtil.coreException(ExceptionUtil.java:59) at com.springsource.sts.gradle.core.GradleModelProvider$PrefetchingModelProvider.requestModel(GradleModelProvider.java:93) at com.springsource.sts.gradle.core.GradleProject.getGradleModel(GradleProject.java:328) at com.springsource.sts.gradle.core.GradleProject.getSkeletalGradleModel(GradleProject.java:341) at com.springsource.sts.gradle.ui.wizards.GradleImportWizardPageOne$9.doit(GradleImportWizardPageOne.java:422) at com.springsource.sts.gradle.core.util.GradleRunnable.run(GradleRunnable.java:72) ... 1 more Caused by: org.gradle.tooling.GradleConnectionException: Could not fetch model of type 'HierarchicalEclipseProject' using Gradle distribution 'http://repo.gradle.org/gradle/distributions/gradle-1.0-milestone-3-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:63) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: org.gradle.api.GradleException: Timeout waiting to connect to Gradle daemon. at org.gradle.launcher.DaemonConnector.connect(DaemonConnector.java:122) at org.gradle.launcher.DaemonClient.execute(DaemonClient.java:78) at org.gradle.tooling.internal.provider.DaemonGradleLauncherActionExecuter.execute(DaemonGradleLauncherActionExecuter.java:34) at org.gradle.tooling.internal.provider.DaemonGradleLauncherActionExecuter.execute(DaemonGradleLauncherActionExecuter.java:24) at org.gradle.tooling.internal.provider.LoggingBridgingGradleLauncherActionExecuter.execute(LoggingBridgingGradleLauncherActionExecuter.java:56) at org.gradle.tooling.internal.provider.LoggingBridgingGradleLauncherActionExecuter.execute(LoggingBridgingGradleLauncherActionExecuter.java:30) at org.gradle.tooling.internal.provider.DefaultConnection.run(DefaultConnection.java:78) at org.gradle.tooling.internal.provider.DefaultConnection.getModel(DefaultConnection.java:72) at org.gradle.tooling.internal.consumer.LazyConnection$3.run(LazyConnection.java:90) at org.gradle.tooling.internal.consumer.LazyConnection$3.run(LazyConnection.java:88) at org.gradle.tooling.internal.consumer.LazyConnection.withConnection(LazyConnection.java:98) at org.gradle.tooling.internal.consumer.LazyConnection.getModel(LazyConnection.java:88) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection$2.run(ProgressLoggingConnection.java:61) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection$2.run(ProgressLoggingConnection.java:59) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection.run(ProgressLoggingConnection.java:74) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection.getModel(ProgressLoggingConnection.java:59) 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 Root exception: org.eclipse.core.runtime.CoreException: Could not fetch model of type 'HierarchicalEclipseProject' using Gradle distribution 'http://repo.gradle.org/gradle/distributions/gradle-1.0-milestone-3-bin.zip'. at com.springsource.sts.gradle.core.util.ExceptionUtil.coreException(ExceptionUtil.java:59) at com.springsource.sts.gradle.core.GradleModelProvider$PrefetchingModelProvider.requestModel(GradleModelProvider.java:93) at com.springsource.sts.gradle.core.GradleProject.getGradleModel(GradleProject.java:328) at com.springsource.sts.gradle.core.GradleProject.getSkeletalGradleModel(GradleProject.java:341) at com.springsource.sts.gradle.ui.wizards.GradleImportWizardPageOne$9.doit(GradleImportWizardPageOne.java:422) at com.springsource.sts.gradle.core.util.GradleRunnable.run(GradleRunnable.java:72) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by: org.gradle.tooling.GradleConnectionException: Could not fetch model of type 'HierarchicalEclipseProject' using Gradle distribution 'http://repo.gradle.org/gradle/distributions/gradle-1.0-milestone-3-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:63) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: org.gradle.api.GradleException: Timeout waiting to connect to Gradle daemon. at org.gradle.launcher.DaemonConnector.connect(DaemonConnector.java:122) at org.gradle.launcher.DaemonClient.execute(DaemonClient.java:78) at org.gradle.tooling.internal.provider.DaemonGradleLauncherActionExecuter.execute(DaemonGradleLauncherActionExecuter.java:34) at org.gradle.tooling.internal.provider.DaemonGradleLauncherActionExecuter.execute(DaemonGradleLauncherActionExecuter.java:24) at org.gradle.tooling.internal.provider.LoggingBridgingGradleLauncherActionExecuter.execute(LoggingBridgingGradleLauncherActionExecuter.java:56) at org.gradle.tooling.internal.provider.LoggingBridgingGradleLauncherActionExecuter.execute(LoggingBridgingGradleLauncherActionExecuter.java:30) at org.gradle.tooling.internal.provider.DefaultConnection.run(DefaultConnection.java:78) at org.gradle.tooling.internal.provider.DefaultConnection.getModel(DefaultConnection.java:72) at org.gradle.tooling.internal.consumer.LazyConnection$3.run(LazyConnection.java:90) at org.gradle.tooling.internal.consumer.LazyConnection$3.run(LazyConnection.java:88) at org.gradle.tooling.internal.consumer.LazyConnection.withConnection(LazyConnection.java:98) at org.gradle.tooling.internal.consumer.LazyConnection.getModel(LazyConnection.java:88) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection$2.run(ProgressLoggingConnection.java:61) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection$2.run(ProgressLoggingConnection.java:59) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection.run(ProgressLoggingConnection.java:74) at org.gradle.tooling.internal.consumer.ProgressLoggingConnection.getModel(ProgressLoggingConnection.java:59) 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 {noformat}

    Gradle Issues | 6 years ago | Kris De Volder
    org.gradle.api.GradleException: Timeout waiting to connect to Gradle daemon.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.gradle.api.GradleException

      Timeout waiting to connect to Gradle daemon.

      at org.gradle.launcher.daemon.client.DefaultDaemonConnector.connect()
    2. Gradle Launcher
      DefaultConnection.getModel
      1. org.gradle.launcher.daemon.client.DefaultDaemonConnector.connect(DefaultDaemonConnector.java:108)
      2. org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:90)
      3. org.gradle.tooling.internal.provider.DaemonGradleLauncherActionExecuter.execute(DaemonGradleLauncherActionExecuter.java:41)
      4. org.gradle.tooling.internal.provider.DaemonGradleLauncherActionExecuter.execute(DaemonGradleLauncherActionExecuter.java:30)
      5. org.gradle.tooling.internal.provider.LoggingBridgingGradleLauncherActionExecuter.execute(LoggingBridgingGradleLauncherActionExecuter.java:56)
      6. org.gradle.tooling.internal.provider.LoggingBridgingGradleLauncherActionExecuter.execute(LoggingBridgingGradleLauncherActionExecuter.java:30)
      7. org.gradle.tooling.internal.provider.DefaultConnection.run(DefaultConnection.java:76)
      8. org.gradle.tooling.internal.provider.DefaultConnection.getModel(DefaultConnection.java:70)
      8 frames
    3. org.gradle.tooling
      DefaultAsyncConnection$3.run
      1. org.gradle.tooling.internal.consumer.LazyConnection$3.run(LazyConnection.java:90)
      2. org.gradle.tooling.internal.consumer.LazyConnection$3.run(LazyConnection.java:88)
      3. org.gradle.tooling.internal.consumer.LazyConnection.withConnection(LazyConnection.java:98)
      4. org.gradle.tooling.internal.consumer.LazyConnection.getModel(LazyConnection.java:88)
      5. org.gradle.tooling.internal.consumer.ProgressLoggingConnection$2.run(ProgressLoggingConnection.java:61)
      6. org.gradle.tooling.internal.consumer.ProgressLoggingConnection$2.run(ProgressLoggingConnection.java:59)
      7. org.gradle.tooling.internal.consumer.ProgressLoggingConnection.run(ProgressLoggingConnection.java:74)
      8. org.gradle.tooling.internal.consumer.ProgressLoggingConnection.getModel(ProgressLoggingConnection.java:59)
      9. org.gradle.tooling.internal.consumer.DefaultAsyncConnection$2.run(DefaultAsyncConnection.java:53)
      10. org.gradle.tooling.internal.consumer.DefaultAsyncConnection$2.run(DefaultAsyncConnection.java:51)
      11. org.gradle.tooling.internal.consumer.DefaultAsyncConnection$3.run(DefaultAsyncConnection.java:71)
      11 frames
    4. Gradle Core
      DefaultExecutorFactory$StoppableExecutorImpl$1.run
      1. org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
      1 frame
    5. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      3. java.lang.Thread.run(Unknown Source)
      3 frames