org.gradle.api.GradleException: Could not generate a proxy class for > class org.gradle.api.internal.project.DefaultProject. > at org.gradle.api.internal.AbstractClassGenerator. > generateUnderLock(AbstractClassGenerator.java:201) > at org.gradle.api.internal.AbstractClassGenerator.generate( > AbstractClassGenerator.java:64) > at org.gradle.api.internal.ClassGeneratorBackedInstantiat > or.newInstance(ClassGeneratorBackedInstantiator.java:36) > at org.gradle.api.internal.project.ProjectFactory. > createProject(ProjectFactory.java:40) > at org.gradle.api.internal.project.ProjectFactory. > createProject(ProjectFactory.java:28) > at org.gradle.initialization.InstantiatingBuildLoader. > createProjects(InstantiatingBuildLoader.java:45) > at org.gradle.initialization.InstantiatingBuildLoader.load( > InstantiatingBuildLoader.java:36) > at org.gradle.initialization.ProjectPropertySettingBuildLoa > der.load(ProjectPropertySettingBuildLoader.java:48) > at org.gradle.initialization.NotifyingSettingsLoader. > findAndLoadSettings(NotifyingSettingsLoader.java:35) > at org.gradle.initialization.DefaultGradleLauncher.doBuildStages( > DefaultGradleLauncher.java:119) > at org.gradle.initialization.DefaultGradleLauncher.access$ > 200(DefaultGradleLauncher.java:32) > at org.gradle.initialization.DefaultGradleLauncher$1. > create(DefaultGradleLauncher.java:99) > at org.gradle.initialization.DefaultGradleLauncher$1. > create(DefaultGradleLauncher.java:93) > at org.gradle.internal.progress.DefaultBuildOperationExecutor.run( > DefaultBuildOperationExecutor.java:90) > at org.gradle.internal.progress.DefaultBuildOperationExecutor.run( > DefaultBuildOperationExecutor.java:62) > at org.gradle.initialization.DefaultGradleLauncher.doBuild( > DefaultGradleLauncher.java:93) > at org.gradle.initialization.DefaultGradleLauncher.run( > DefaultGradleLauncher.java:82) > at org.gradle.launcher.exec.InProcessBuildActionExecuter$ > DefaultBuildController.run(InProcessBuildActionExecuter.java:94) > at org.gradle.tooling.internal.provider. > ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28) > at org.gradle.launcher.exec.ChainingBuildActionRunner.run( > ChainingBuildActionRunner.java:35) > at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute( > InProcessBuildActionExecuter.java:43) > at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute( > InProcessBuildActionExecuter.java:28) > at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute( > ContinuousBuildActionExecuter.java:81) > at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute( > ContinuousBuildActionExecuter.java:46) > at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActi > onExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51) > at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActi > onExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28) > at org.gradle.launcher.cli.RunBuildAction.run( > RunBuildAction.java:43) > at org.gradle.internal.Actions$RunnableActionAdapter.execute( > Actions.java:173) > at org.gradle.launcher.cli.CommandLineActionFactory$ > ParseAndBuildAction.execute(CommandLineActionFactory.java:241) > at org.gradle.launcher.cli.CommandLineActionFactory$ > ParseAndBuildAction.execute(CommandLineActionFactory.java:214) > at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute( > JavaRuntimeValidationAction.java:35) > at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute( > JavaRuntimeValidationAction.java:24) > at org.gradle.launcher.cli.CommandLineActionFactory$ > WithLogging.execute(CommandLineActionFactory.java:207) > at org.gradle.launcher.cli.CommandLineActionFactory$ > WithLogging.execute(CommandLineActionFactory.java:169) > at org.gradle.launcher.cli.ExceptionReportingAction.execute( > ExceptionReportingAction.java:33) > at org.gradle.launcher.cli.ExceptionReportingAction.execute( > ExceptionReportingAction.java:22) > at org.gradle.launcher.Main.doAction(Main.java:33)

Google Groups | Jose Gutierrez de la Concha | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Bug#839847: ice-builder-gradle: FTBFS: Could not generate a proxy class for class org.gradle.api.internal.project.DefaultProject

    Google Groups | 6 months ago | Jose Gutierrez de la Concha
    org.gradle.api.GradleException: Could not generate a proxy class for > class org.gradle.api.internal.project.DefaultProject. > at org.gradle.api.internal.AbstractClassGenerator. > generateUnderLock(AbstractClassGenerator.java:201) > at org.gradle.api.internal.AbstractClassGenerator.generate( > AbstractClassGenerator.java:64) > at org.gradle.api.internal.ClassGeneratorBackedInstantiat > or.newInstance(ClassGeneratorBackedInstantiator.java:36) > at org.gradle.api.internal.project.ProjectFactory. > createProject(ProjectFactory.java:40) > at org.gradle.api.internal.project.ProjectFactory. > createProject(ProjectFactory.java:28) > at org.gradle.initialization.InstantiatingBuildLoader. > createProjects(InstantiatingBuildLoader.java:45) > at org.gradle.initialization.InstantiatingBuildLoader.load( > InstantiatingBuildLoader.java:36) > at org.gradle.initialization.ProjectPropertySettingBuildLoa > der.load(ProjectPropertySettingBuildLoader.java:48) > at org.gradle.initialization.NotifyingSettingsLoader. > findAndLoadSettings(NotifyingSettingsLoader.java:35) > at org.gradle.initialization.DefaultGradleLauncher.doBuildStages( > DefaultGradleLauncher.java:119) > at org.gradle.initialization.DefaultGradleLauncher.access$ > 200(DefaultGradleLauncher.java:32) > at org.gradle.initialization.DefaultGradleLauncher$1. > create(DefaultGradleLauncher.java:99) > at org.gradle.initialization.DefaultGradleLauncher$1. > create(DefaultGradleLauncher.java:93) > at org.gradle.internal.progress.DefaultBuildOperationExecutor.run( > DefaultBuildOperationExecutor.java:90) > at org.gradle.internal.progress.DefaultBuildOperationExecutor.run( > DefaultBuildOperationExecutor.java:62) > at org.gradle.initialization.DefaultGradleLauncher.doBuild( > DefaultGradleLauncher.java:93) > at org.gradle.initialization.DefaultGradleLauncher.run( > DefaultGradleLauncher.java:82) > at org.gradle.launcher.exec.InProcessBuildActionExecuter$ > DefaultBuildController.run(InProcessBuildActionExecuter.java:94) > at org.gradle.tooling.internal.provider. > ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28) > at org.gradle.launcher.exec.ChainingBuildActionRunner.run( > ChainingBuildActionRunner.java:35) > at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute( > InProcessBuildActionExecuter.java:43) > at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute( > InProcessBuildActionExecuter.java:28) > at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute( > ContinuousBuildActionExecuter.java:81) > at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute( > ContinuousBuildActionExecuter.java:46) > at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActi > onExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51) > at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActi > onExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28) > at org.gradle.launcher.cli.RunBuildAction.run( > RunBuildAction.java:43) > at org.gradle.internal.Actions$RunnableActionAdapter.execute( > Actions.java:173) > at org.gradle.launcher.cli.CommandLineActionFactory$ > ParseAndBuildAction.execute(CommandLineActionFactory.java:241) > at org.gradle.launcher.cli.CommandLineActionFactory$ > ParseAndBuildAction.execute(CommandLineActionFactory.java:214) > at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute( > JavaRuntimeValidationAction.java:35) > at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute( > JavaRuntimeValidationAction.java:24) > at org.gradle.launcher.cli.CommandLineActionFactory$ > WithLogging.execute(CommandLineActionFactory.java:207) > at org.gradle.launcher.cli.CommandLineActionFactory$ > WithLogging.execute(CommandLineActionFactory.java:169) > at org.gradle.launcher.cli.ExceptionReportingAction.execute( > ExceptionReportingAction.java:33) > at org.gradle.launcher.cli.ExceptionReportingAction.execute( > ExceptionReportingAction.java:22) > at org.gradle.launcher.Main.doAction(Main.java:33)
  2. 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.

    Root Cause Analysis

    1. org.gradle.api.GradleException

      Could not generate a proxy class for > class org.gradle.api.internal.project.DefaultProject. > at org.gradle.api.internal.AbstractClassGenerator. > generateUnderLock(AbstractClassGenerator.java:201) > at org.gradle.api.internal.AbstractClassGenerator.generate( > AbstractClassGenerator.java:64) > at org.gradle.api.internal.ClassGeneratorBackedInstantiat > or.newInstance(ClassGeneratorBackedInstantiator.java:36) > at org.gradle.api.internal.project.ProjectFactory. > createProject(ProjectFactory.java:40) > at org.gradle.api.internal.project.ProjectFactory. > createProject(ProjectFactory.java:28) > at org.gradle.initialization.InstantiatingBuildLoader. > createProjects(InstantiatingBuildLoader.java:45) > at org.gradle.initialization.InstantiatingBuildLoader.load( > InstantiatingBuildLoader.java:36) > at org.gradle.initialization.ProjectPropertySettingBuildLoa > der.load(ProjectPropertySettingBuildLoader.java:48) > at org.gradle.initialization.NotifyingSettingsLoader. > findAndLoadSettings(NotifyingSettingsLoader.java:35) > at org.gradle.initialization.DefaultGradleLauncher.doBuildStages( > DefaultGradleLauncher.java:119) > at org.gradle.initialization.DefaultGradleLauncher.access$ > 200(DefaultGradleLauncher.java:32) > at org.gradle.initialization.DefaultGradleLauncher$1. > create(DefaultGradleLauncher.java:99) > at org.gradle.initialization.DefaultGradleLauncher$1. > create(DefaultGradleLauncher.java:93) > at org.gradle.internal.progress.DefaultBuildOperationExecutor.run( > DefaultBuildOperationExecutor.java:90) > at org.gradle.internal.progress.DefaultBuildOperationExecutor.run( > DefaultBuildOperationExecutor.java:62) > at org.gradle.initialization.DefaultGradleLauncher.doBuild( > DefaultGradleLauncher.java:93) > at org.gradle.initialization.DefaultGradleLauncher.run( > DefaultGradleLauncher.java:82) > at org.gradle.launcher.exec.InProcessBuildActionExecuter$ > DefaultBuildController.run(InProcessBuildActionExecuter.java:94) > at org.gradle.tooling.internal.provider. > ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28) > at org.gradle.launcher.exec.ChainingBuildActionRunner.run( > ChainingBuildActionRunner.java:35) > at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute( > InProcessBuildActionExecuter.java:43) > at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute( > InProcessBuildActionExecuter.java:28) > at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute( > ContinuousBuildActionExecuter.java:81) > at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute( > ContinuousBuildActionExecuter.java:46) > at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActi > onExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51) > at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActi > onExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28) > at org.gradle.launcher.cli.RunBuildAction.run( > RunBuildAction.java:43) > at org.gradle.internal.Actions$RunnableActionAdapter.execute( > Actions.java:173) > at org.gradle.launcher.cli.CommandLineActionFactory$ > ParseAndBuildAction.execute(CommandLineActionFactory.java:241) > at org.gradle.launcher.cli.CommandLineActionFactory$ > ParseAndBuildAction.execute(CommandLineActionFactory.java:214) > at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute( > JavaRuntimeValidationAction.java:35) > at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute( > JavaRuntimeValidationAction.java:24) > at org.gradle.launcher.cli.CommandLineActionFactory$ > WithLogging.execute(CommandLineActionFactory.java:207) > at org.gradle.launcher.cli.CommandLineActionFactory$ > WithLogging.execute(CommandLineActionFactory.java:169) > at org.gradle.launcher.cli.ExceptionReportingAction.execute( > ExceptionReportingAction.java:33) > at org.gradle.launcher.cli.ExceptionReportingAction.execute( > ExceptionReportingAction.java:22) > at org.gradle.launcher.Main.doAction(Main.java:33)

      at org.gradle.launcher.GradleMain.main()
    2. Gradle Launcher
      GradleMain.main
      1. org.gradle.launcher.GradleMain.main(GradleMain.java:23)
      1 frame