java.lang.reflect.InvocationTargetException

Gradle Issues | Daz DeBoer | 5 years ago
  1. 0

    Here are the steps in eclipse: 1. cleaned gradle cache 2. import -> Gradle Project -> 3. Enter location of samples/java/quickstart folder in "root folder" field 4. press "Build Model" Here are the details of the Eclipse error log. It looks like the deamon was not able to start. eclipse.buildId=3.7.0b java.version=1.6.0_21 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86_64 Error Tue Mar 20 09:33:48 EDT 2012 java.lang.reflect.InvocationTargetException at com.springsource.sts.gradle.core.util.GradleRunnable.run(GradleRunnable.java:87) 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://services.gradle.org/distributions/gradle-1.0-milestone-9-bin.zip'. at com.springsource.sts.gradle.core.GradleModelProvider$GroupedModelProvider.ensureModels(GradleModelProvider.java:277) at com.springsource.sts.gradle.core.GradleProject.getGradleModel(GradleProject.java:576) at com.springsource.sts.gradle.core.GradleProject.getSkeletalGradleModel(GradleProject.java:597) at com.springsource.sts.gradle.ui.wizards.GradleImportWizardPageOne$9.doit(GradleImportWizardPageOne.java:471) at com.springsource.sts.gradle.core.util.GradleRunnable.run(GradleRunnable.java:78) ... 1 more Caused by: org.gradle.tooling.GradleConnectionException: Could not fetch model of type 'HierarchicalEclipseProject' 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$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) 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

    Gradle Issues | 5 years ago | Daz DeBoer
    java.lang.reflect.InvocationTargetException
  2. 0

    Here are the steps in eclipse: 1. cleaned gradle cache 2. import -> Gradle Project -> 3. Enter location of samples/java/quickstart folder in "root folder" field 4. press "Build Model" Here are the details of the Eclipse error log. It looks like the deamon was not able to start. eclipse.buildId=3.7.0b java.version=1.6.0_21 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86_64 Error Tue Mar 20 09:33:48 EDT 2012 java.lang.reflect.InvocationTargetException at com.springsource.sts.gradle.core.util.GradleRunnable.run(GradleRunnable.java:87) 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://services.gradle.org/distributions/gradle-1.0-milestone-9-bin.zip'. at com.springsource.sts.gradle.core.GradleModelProvider$GroupedModelProvider.ensureModels(GradleModelProvider.java:277) at com.springsource.sts.gradle.core.GradleProject.getGradleModel(GradleProject.java:576) at com.springsource.sts.gradle.core.GradleProject.getSkeletalGradleModel(GradleProject.java:597) at com.springsource.sts.gradle.ui.wizards.GradleImportWizardPageOne$9.doit(GradleImportWizardPageOne.java:471) at com.springsource.sts.gradle.core.util.GradleRunnable.run(GradleRunnable.java:78) ... 1 more Caused by: org.gradle.tooling.GradleConnectionException: Could not fetch model of type 'HierarchicalEclipseProject' 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$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) 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

    Gradle Issues | 5 years ago | Daz DeBoer
    java.lang.reflect.InvocationTargetException
  3. 0

    Gradle in NetBeans IDE 7.1 (Geertjan's Blog)

    oracle.com | 7 months ago
    org.gradle.internal.nativeplatform.jna.WindowsProcessInitializer$ProcessInitializationException: Failed to configure the standard stream handles to be 'uninheritable'.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    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. java.lang.NullPointerException

      No message provided

      at org.gradle.internal.nativeplatform.jna.WindowsProcessInitializer.makeUninheritable()
    2. org.gradle.internal
      WindowsProcessInitializer.initialize
      1. org.gradle.internal.nativeplatform.jna.WindowsProcessInitializer.makeUninheritable(WindowsProcessInitializer.java:54)
      2. org.gradle.internal.nativeplatform.jna.WindowsProcessInitializer.initialize(WindowsProcessInitializer.java:41)
      2 frames
    3. Gradle Launcher
      DefaultConnection.getModel
      1. org.gradle.launcher.daemon.client.DefaultDaemonStarter.startProcess(DefaultDaemonStarter.java:92)
      2. org.gradle.launcher.daemon.client.DefaultDaemonStarter.startDaemon(DefaultDaemonStarter.java:82)
      3. org.gradle.launcher.daemon.client.DefaultDaemonConnector.createConnection(DefaultDaemonConnector.java:100)
      4. org.gradle.launcher.daemon.client.DefaultDaemonConnector.connect(DefaultDaemonConnector.java:70)
      5. org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:104)
      6. org.gradle.tooling.internal.provider.DaemonGradleLauncherActionExecuter.execute(DaemonGradleLauncherActionExecuter.java:44)
      7. org.gradle.tooling.internal.provider.DaemonGradleLauncherActionExecuter.execute(DaemonGradleLauncherActionExecuter.java:31)
      8. org.gradle.tooling.internal.provider.LoggingBridgingGradleLauncherActionExecuter.execute(LoggingBridgingGradleLauncherActionExecuter.java:53)
      9. org.gradle.tooling.internal.provider.LoggingBridgingGradleLauncherActionExecuter.execute(LoggingBridgingGradleLauncherActionExecuter.java:30)
      10. org.gradle.tooling.internal.provider.DefaultConnection.run(DefaultConnection.java:105)
      11. org.gradle.tooling.internal.provider.DefaultConnection.getTheModel(DefaultConnection.java:98)
      12. org.gradle.tooling.internal.provider.DefaultConnection.getModel(DefaultConnection.java:80)
      12 frames
    4. org.gradle.tooling
      DefaultAsyncConnection$3.run
      1. org.gradle.tooling.internal.consumer.LazyConnection$3.run(LazyConnection.java:93)
      2. org.gradle.tooling.internal.consumer.LazyConnection$3.run(LazyConnection.java:91)
      3. org.gradle.tooling.internal.consumer.LazyConnection.withConnection(LazyConnection.java:101)
      4. org.gradle.tooling.internal.consumer.LazyConnection.getModel(LazyConnection.java:91)
      5. org.gradle.tooling.internal.consumer.ProgressLoggingConnection$2.run(ProgressLoggingConnection.java:58)
      6. org.gradle.tooling.internal.consumer.ProgressLoggingConnection$2.run(ProgressLoggingConnection.java:56)
      7. org.gradle.tooling.internal.consumer.ProgressLoggingConnection.run(ProgressLoggingConnection.java:72)
      8. org.gradle.tooling.internal.consumer.ProgressLoggingConnection.getModel(ProgressLoggingConnection.java:56)
      9. org.gradle.tooling.internal.consumer.LoggingInitializerConnection.getModel(LoggingInitializerConnection.java:46)
      10. org.gradle.tooling.internal.consumer.DefaultAsyncConnection$2.run(DefaultAsyncConnection.java:53)
      11. org.gradle.tooling.internal.consumer.DefaultAsyncConnection$2.run(DefaultAsyncConnection.java:51)
      12. org.gradle.tooling.internal.consumer.DefaultAsyncConnection$3.run(DefaultAsyncConnection.java:71)
      12 frames
    5. Gradle Core
      DefaultExecutorFactory$StoppableExecutorImpl$1.run
      1. org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
      1 frame
    6. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      3. java.lang.Thread.run(Thread.java:619)
      3 frames