[GRADLE-1537] Tooling API fails to build skeletal model for spring-data-mapping project Created: 12/May/11  Updated: 04/Jan/13  Resolved: 12/May/11

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-milestone-3
Fix Version/s: 1.0-milestone-4

Type: Bug
Reporter: Kris De Volder Assignee: Unassigned
Resolution: Duplicate Votes: 0


 Description   

This project builds ok on the commandline using milestone 3 wrapper (must update wrapper after checking out from git).

After verifying that it builds on the commandline, you should delete the .gradle .ivy2 and .m2 folders if you want
to reproduce the error in STS. (If you've already built the project on the commandline, I gather the 'missing' dependency
will be in the cache so the problem does not occur).

I tried to import the project and got the following error, making it impossible to import this project since no project
model is constructed.

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:102)
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.BuildException: 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:44)
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.LocationAwareException: Could not resolve all dependencies for configuration ':grails-datastore-gorm-gemfire:testRuntimeCopy':
- unresolved dependency: com.gemstone.gemfire#gemfire;6.5.1.4: not found

at org.gradle.initialization.DefaultExceptionAnalyser.transform(DefaultExceptionAnalyser.java:85)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:114)
at org.gradle.initialization.DefaultGradleLauncher.getBuildAnalysis(DefaultGradleLauncher.java:91)
at org.gradle.tooling.internal.provider.BuildModelAction.run(BuildModelAction.java:42)
at org.gradle.tooling.internal.provider.DelegatingBuildModelAction.run(DelegatingBuildModelAction.java:42)
at org.gradle.tooling.internal.provider.ConfiguringBuildAction.run(ConfiguringBuildAction.java:56)
at org.gradle.launcher.DefaultGradleLauncherActionExecuter.execute(DefaultGradleLauncherActionExecuter.java:49)
at org.gradle.launcher.DaemonMain.build(DaemonMain.java:143)
at org.gradle.launcher.DaemonMain.doRunWithExceptionHandling(DaemonMain.java:132)
at org.gradle.launcher.DaemonMain.doRunWithLogging(DaemonMain.java:114)
at org.gradle.launcher.DaemonMain.doRun(DaemonMain.java:94)
at org.gradle.launcher.DaemonMain.access$000(DaemonMain.java:45)
at org.gradle.launcher.DaemonMain$1.handle(DaemonMain.java:75)
at org.gradle.launcher.DaemonConnector$1.execute(DaemonConnector.java:165)
at org.gradle.launcher.DaemonConnector$1.execute(DaemonConnector.java:161)
at org.gradle.messaging.remote.internal.TcpIncomingConnector$Receiver.run(TcpIncomingConnector.java:102)
... 4 more
Caused by: org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':grails-datastore-gorm-gemfire:testRuntimeCopy':
- unresolved dependency: com.gemstone.gemfire#gemfire;6.5.1.4: not found

at org.gradle.api.internal.artifacts.ivyservice.DefaultIvyDependencyResolver$ResolvedConfigurationImpl.rethrowFailure(DefaultIvyDependencyResolver.java:100)
at org.gradle.api.internal.artifacts.ivyservice.DefaultIvyDependencyResolver$ResolvedConfigurationImpl.getFirstLevelModuleDependencies(DefaultIvyDependencyResolver.java:132)
at org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyResolver$1.getFirstLevelModuleDependencies(SelfResolvingDependencyResolver.java:70)
at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService$ErrorHandlingResolvedConfiguration.getFirstLevelModuleDependencies(ErrorHandlingIvyService.java:104)
at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory.resolveDependencies(ClasspathFactory.groovy:135)
at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory.this$2$resolveDependencies(ClasspathFactory.groovy)
at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory$this$2$resolveDependencies.callCurrent(Unknown Source)
at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory.getLibraries(ClasspathFactory.groovy:78)
at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory.getEntriesFromConfigurations(ClasspathFactory.groovy:69)
at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory.this$2$getEntriesFromConfigurations(ClasspathFactory.groovy)
at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory$this$2$getEntriesFromConfigurations.callCurrent(Unknown Source)
at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory.createEntries(ClasspathFactory.groovy:35)
at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory$createEntries.call(Unknown Source)
at org.gradle.plugins.ide.eclipse.model.EclipseClasspath.resolveDependencies(EclipseClasspath.groovy:136)
at org.gradle.tooling.internal.provider.ModelBuilder.populate(ModelBuilder.java:76)
at org.gradle.tooling.internal.provider.ModelBuilder.populate(ModelBuilder.java:91)
at org.gradle.tooling.internal.provider.ModelBuilder.buildAll(ModelBuilder.java:57)
at org.gradle.tooling.internal.provider.ModelBuildingAdapter.projectsEvaluated(ModelBuildingAdapter.java:39)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.messaging.dispatch.BroadcastDispatch.dispatch(BroadcastDispatch.java:88)
at org.gradle.messaging.dispatch.BroadcastDispatch.dispatch(BroadcastDispatch.java:32)
at org.gradle.messaging.dispatch.BroadcastDispatch.dispatch(BroadcastDispatch.java:88)
at org.gradle.messaging.dispatch.BroadcastDispatch.dispatch(BroadcastDispatch.java:32)
at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:75)
at $Proxy6.projectsEvaluated(Unknown Source)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:142)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112)
at org.gradle.initialization.DefaultGradleLauncher.getBuildAnalysis(DefaultGradleLauncher.java:91)
at org.gradle.tooling.internal.provider.BuildModelAction.run(BuildModelAction.java:42)
at org.gradle.tooling.internal.provider.DelegatingBuildModelAction.run(DelegatingBuildModelAction.java:42)
at org.gradle.tooling.internal.provider.ConfiguringBuildAction.run(ConfiguringBuildAction.java:56)
at org.gradle.launcher.DefaultGradleLauncherActionExecuter.execute(DefaultGradleLauncherActionExecuter.java:49)
at org.gradle.launcher.DaemonMain.build(DaemonMain.java:143)
at org.gradle.launcher.DaemonMain.doRunWithExceptionHandling(DaemonMain.java:132)
at org.gradle.launcher.DaemonMain.doRunWithLogging(DaemonMain.java:114)
at org.gradle.launcher.DaemonMain.doRun(DaemonMain.java:94)
at org.gradle.launcher.DaemonMain.access$000(DaemonMain.java:45)
at org.gradle.launcher.DaemonMain$1.handle(DaemonMain.java:75)
at org.gradle.launcher.DaemonConnector$1.execute(DaemonConnector.java:165)
at org.gradle.launcher.DaemonConnector$1.execute(DaemonConnector.java:161)
at org.gradle.messaging.remote.internal.TcpIncomingConnector$Receiver.run(TcpIncomingConnector.java:102)
at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:63)
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:102)
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.BuildException: 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:44)
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.LocationAwareException: Could not resolve all dependencies for configuration ':grails-datastore-gorm-gemfire:testRuntimeCopy':
- unresolved dependency: com.gemstone.gemfire#gemfire;6.5.1.4: not found

at org.gradle.initialization.DefaultExceptionAnalyser.transform(DefaultExceptionAnalyser.java:85)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:114)
at org.gradle.initialization.DefaultGradleLauncher.getBuildAnalysis(DefaultGradleLauncher.java:91)
at org.gradle.tooling.internal.provider.BuildModelAction.run(BuildModelAction.java:42)
at org.gradle.tooling.internal.provider.DelegatingBuildModelAction.run(DelegatingBuildModelAction.java:42)
at org.gradle.tooling.internal.provider.ConfiguringBuildAction.run(ConfiguringBuildAction.java:56)
at org.gradle.launcher.DefaultGradleLauncherActionExecuter.execute(DefaultGradleLauncherActionExecuter.java:49)
at org.gradle.launcher.DaemonMain.build(DaemonMain.java:143)
at org.gradle.launcher.DaemonMain.doRunWithExceptionHandling(DaemonMain.java:132)
at org.gradle.launcher.DaemonMain.doRunWithLogging(DaemonMain.java:114)
at org.gradle.launcher.DaemonMain.doRun(DaemonMain.java:94)
at org.gradle.launcher.DaemonMain.access$000(DaemonMain.java:45)
at org.gradle.launcher.DaemonMain$1.handle(DaemonMain.java:75)
at org.gradle.launcher.DaemonConnector$1.execute(DaemonConnector.java:165)
at org.gradle.launcher.DaemonConnector$1.execute(DaemonConnector.java:161)
at org.gradle.messaging.remote.internal.TcpIncomingConnector$Receiver.run(TcpIncomingConnector.java:102)
... 4 more
Caused by: org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':grails-datastore-gorm-gemfire:testRuntimeCopy':
- unresolved dependency: com.gemstone.gemfire#gemfire;6.5.1.4: not found

at org.gradle.api.internal.artifacts.ivyservice.DefaultIvyDependencyResolver$ResolvedConfigurationImpl.rethrowFailure(DefaultIvyDependencyResolver.java:100)
at org.gradle.api.internal.artifacts.ivyservice.DefaultIvyDependencyResolver$ResolvedConfigurationImpl.getFirstLevelModuleDependencies(DefaultIvyDependencyResolver.java:132)
at org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyResolver$1.getFirstLevelModuleDependencies(SelfResolvingDependencyResolver.java:70)
at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService$ErrorHandlingResolvedConfiguration.getFirstLevelModuleDependencies(ErrorHandlingIvyService.java:104)
at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory.resolveDependencies(ClasspathFactory.groovy:135)
at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory.this$2$resolveDependencies(ClasspathFactory.groovy)
at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory$this$2$resolveDependencies.callCurrent(Unknown Source)
at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory.getLibraries(ClasspathFactory.groovy:78)
at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory.getEntriesFromConfigurations(ClasspathFactory.groovy:69)
at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory.this$2$getEntriesFromConfigurations(ClasspathFactory.groovy)
at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory$this$2$getEntriesFromConfigurations.callCurrent(Unknown Source)
at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory.createEntries(ClasspathFactory.groovy:35)
at org.gradle.plugins.ide.eclipse.model.internal.ClasspathFactory$createEntries.call(Unknown Source)
at org.gradle.plugins.ide.eclipse.model.EclipseClasspath.resolveDependencies(EclipseClasspath.groovy:136)
at org.gradle.tooling.internal.provider.ModelBuilder.populate(ModelBuilder.java:76)
at org.gradle.tooling.internal.provider.ModelBuilder.populate(ModelBuilder.java:91)
at org.gradle.tooling.internal.provider.ModelBuilder.buildAll(ModelBuilder.java:57)
at org.gradle.tooling.internal.provider.ModelBuildingAdapter.projectsEvaluated(ModelBuildingAdapter.java:39)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.messaging.dispatch.BroadcastDispatch.dispatch(BroadcastDispatch.java:88)
at org.gradle.messaging.dispatch.BroadcastDispatch.dispatch(BroadcastDispatch.java:32)
at org.gradle.messaging.dispatch.BroadcastDispatch.dispatch(BroadcastDispatch.java:88)
at org.gradle.messaging.dispatch.BroadcastDispatch.dispatch(BroadcastDispatch.java:32)
at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:75)
at $Proxy6.projectsEvaluated(Unknown Source)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:142)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112)
at org.gradle.initialization.DefaultGradleLauncher.getBuildAnalysis(DefaultGradleLauncher.java:91)
at org.gradle.tooling.internal.provider.BuildModelAction.run(BuildModelAction.java:42)
at org.gradle.tooling.internal.provider.DelegatingBuildModelAction.run(DelegatingBuildModelAction.java:42)
at org.gradle.tooling.internal.provider.ConfiguringBuildAction.run(ConfiguringBuildAction.java:56)
at org.gradle.launcher.DefaultGradleLauncherActionExecuter.execute(DefaultGradleLauncherActionExecuter.java:49)
at org.gradle.launcher.DaemonMain.build(DaemonMain.java:143)
at org.gradle.launcher.DaemonMain.doRunWithExceptionHandling(DaemonMain.java:132)
at org.gradle.launcher.DaemonMain.doRunWithLogging(DaemonMain.java:114)
at org.gradle.launcher.DaemonMain.doRun(DaemonMain.java:94)
at org.gradle.launcher.DaemonMain.access$000(DaemonMain.java:45)
at org.gradle.launcher.DaemonMain$1.handle(DaemonMain.java:75)
at org.gradle.launcher.DaemonConnector$1.execute(DaemonConnector.java:165)
at org.gradle.launcher.DaemonConnector$1.execute(DaemonConnector.java:161)
at org.gradle.messaging.remote.internal.TcpIncomingConnector$Receiver.run(TcpIncomingConnector.java:102)
at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:63)


 Comments   
Comment by Szczepan Faber [ 12/May/11 ]

Duplicate of GRADLE-1494

Comment by Kris De Volder [ 12/May/11 ]

I tried with the snapshot URL from the other issue and can confirm that it solved the problem for building the skeletal model for the spring-data-project.

Comment by Szczepan Faber [ 13/May/11 ]

Cool, thanks for info. I'll try to resolve the problem with long building of the full model.

Generated at Wed Jun 30 11:58:01 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.