Running Main.main() with idea fails. Am I missing something?


(David Edery) #1

Hi,
I’m trying to execute org.gradle.launcher.Main.main() using idea (after setting the project with “./gradlew idea” and opening the .ipr file) and it consistently (both on OSX and on Ubuntu) fails on the following:

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not create service of type ClassLoaderRegistry using GlobalScopeServices.createClassLoaderRegistry().

  • Try:
    Run with --info or --debug option to get more log output.

  • Exception is:
    org.gradle.internal.service.ServiceCreationException: Could not create service of type ClassLoaderRegistry using GlobalScopeServices.createClassLoaderRegistry().
    at org.gradle.internal.service.DefaultServiceRegistry$FactoryMethodService.invokeMethod(DefaultServiceRegistry.java:821)

    Caused by: org.gradle.api.internal.classpath.UnknownModuleException: Cannot locate manifest for module ‘gradle-version-info’ in classpath: [/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/charsets.jar, /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/compilefontconfig.jar, /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/dnsns.jar, /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/icedtea-sound.jar, /usr/share/java/java-atk-wrapper.jar, /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/localedata.jar, /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/sunjce_provider.jar, /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/sunpkcs11.jar, /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/zipfs.jar, /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/javazic.jar, /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jce.jar, /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jsse.jar, /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/management-agent.jar, /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/resources.jar, /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rhino.jar, /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar, /home/dedery/gradle/out/production/launcher, /home/dedery/gradle/subprojects/launcher/build/generated-resources/main, /home/dedery/gradle/out/production/baseServices, /home/dedery/gradle/subprojects/base-services/build/generated-resources/main, /home/dedery/.gradle/caches/modules-2/files-2.1/com.google.guava/guava-jdk5/17.0/463f8378feba44df7ba7cd9272d01837dad62b36/guava-jdk5-17.0.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-api/1.7.10/5b338f206827d88acd890739f400a9b7664e5984/slf4j-api-1.7.10.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/commons-lang/commons-lang/2.6/ce1edb914c94ebc388f086c6827e8bdeec71ac2/commons-lang-2.6.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/net.jcip/jcip-annotations/1.0/afba4942caaeaf46aab0b976afd57cc7c181467e/jcip-annotations-1.0.jar, /home/dedery/gradle/out/production/jvmServices, /home/dedery/gradle/subprojects/jvm-services/build/generated-resources/main, /home/dedery/gradle/out/production/processServices, /home/dedery/gradle/subprojects/process-services/build/generated-resources/main, /home/dedery/gradle/out/production/messaging, /home/dedery/gradle/subprojects/messaging/build/generated-resources/main, /home/dedery/.gradle/caches/modules-2/files-2.1/com.esotericsoftware.kryo/kryo/2.20/b596abed147c5c5b985c996094c5c1d6622dcb9f/kryo-2.20.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/com.esotericsoftware.reflectasm/reflectasm/1.07/76f11c94a53ee975a0d9154b325c408b210155bd/reflectasm-1.07-shaded.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/com.esotericsoftware.minlog/minlog/1.2/59bfcd171d82f9981a5e242b9e840191f650e209/minlog-1.2.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/org.objenesis/objenesis/1.2/bfcb0539a071a4c5a30690388903ac48c0667f2a/objenesis-1.2.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-all/5.1/ae8be205e00013dce1e31420aee506a0333d21ad/asm-all-5.1.jar, /home/dedery/gradle/out/production/native, /home/dedery/gradle/subprojects/native/build/generated-resources/main, /home/dedery/.gradle/caches/modules-2/files-2.1/net.rubygrapefruit/native-platform/0.14/48341d68b4456bea76ca952b6d38b877881350f7/native-platform-0.14.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/commons-io/commons-io/2.2/83b5b8a7ba1c08f9e8c8ff2373724e33d3c1e22a/commons-io-2.2.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/org.fusesource.jansi/jansi/1.14/38ce7f9fb0171cd20f9acfd13858751d0fb0d3e2/jansi-1.14.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/net.rubygrapefruit/native-platform-freebsd-amd64-libcpp/0.14/b45561900830d676e9e0040561e68abe86fbc10e/native-platform-freebsd-amd64-libcpp-0.14.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/net.rubygrapefruit/native-platform-freebsd-amd64-libstdcpp/0.14/bcc4e58ef4db56052fe9512d2d1265f11dc9242f/native-platform-freebsd-amd64-libstdcpp-0.14.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/net.rubygrapefruit/native-platform-freebsd-i386-libcpp/0.14/50b15724c82808c2b7fefd9b0b7c6dd977623f35/native-platform-freebsd-i386-libcpp-0.14.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/net.rubygrapefruit/native-platform-freebsd-i386-libstdcpp/0.14/d98be0a75890523a6a70dc93795101145828a5da/native-platform-freebsd-i386-libstdcpp-0.14.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/net.rubygrapefruit/native-platform-linux-amd64/0.14/d0ac539a32015e91e309c20e493d220aae88811b/native-platform-linux-amd64-0.14.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/net.rubygrapefruit/native-platform-linux-i386/0.14/6576c08a9a514a6ae5623e6f8da04502cac23bde/native-platform-linux-i386-0.14.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/net.rubygrapefruit/native-platform-osx-amd64/0.14/5e5c113c32c0bac5cf2dcd3a59e4b021023d86a1/native-platform-osx-amd64-0.14.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/net.rubygrapefruit/native-platform-osx-i386/0.14/fd86b7eedbf5a0df003cf946f0b0c80c06c103ee/native-platform-osx-i386-0.14.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/net.rubygrapefruit/native-platform-windows-amd64/0.14/bdf519fab10700fadc9953526a07e8104fad1d07/native-platform-windows-amd64-0.14.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/net.rubygrapefruit/native-platform-windows-i386/0.14/65b00e123554f42ecd0da054a747033be5da608d/native-platform-windows-i386-0.14.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/net.rubygrapefruit/native-platform-linux-amd64-ncurses5/0.14/6dece223855317a75c371fb72d826582893351c6/native-platform-linux-amd64-ncurses5-0.14.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/net.rubygrapefruit/native-platform-linux-amd64-ncurses6/0.14/8effac668ad781893fc33fd86f993c5de559d355/native-platform-linux-amd64-ncurses6-0.14.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/net.rubygrapefruit/native-platform-linux-i386-ncurses5/0.14/80ec77af683abeaa58ed11b9c2cad2d02837e55f/native-platform-linux-i386-ncurses5-0.14.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/net.rubygrapefruit/native-platform-linux-i386-ncurses6/0.14/615dea7e75ca704bba1de9b671652283a9743894/native-platform-linux-i386-ncurses6-0.14.jar, /home/dedery/gradle/out/production/core, /home/dedery/gradle/subprojects/core/build/generated-resources/main, /home/dedery/gradle/out/production/baseServicesGroovy, /home/dedery/gradle/subprojects/base-services-groovy/build/generated-resources/main, /home/dedery/.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy-all/2.4.11/444a64af79c540aad257e49d95050e7c189f1309/groovy-all-2.4.11.jar, /home/dedery/gradle/out/production/logging, /home/dedery/gradle/subprojects/logging/build/generated-resources/main, /home/dedery/gradle/out/production/cli, /home/dedery/gradle/subprojects/cli/build/generated-resources/main, /home/dedery/.gradle/caches/modules-2/files-2.1/org.slf4j/jul-to-slf4j/1.7.10/35dd785e5e36c957da395091c837dd2ed57b7fa3/jul-to-slf4j-1.7.10.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/org.apache.ant/ant/1.9.6/80e2063b01bab3c79c2d84e4ed5e73868394c85a/ant-1.9.6.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/org.slf4j/log4j-over-slf4j/1.7.10/e62ea5dcb382aff512c18e40fed01a30e0480cd3/log4j-over-slf4j-1.7.10.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/org.slf4j/jcl-over-slf4j/1.7.10/ce49a188721bc39cb9710b346ae9b7ec27b0f36b/jcl-over-slf4j-1.7.10.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/org.apache.ant/ant-launcher/1.9.6/d75dd4c39ba06401f20e7afffb861d268baec6bc/ant-launcher-1.9.6.jar, /home/dedery/gradle/out/production/resources, /home/dedery/gradle/subprojects/resources/build/generated-resources/main, /home/dedery/gradle/out/production/modelCore, /home/dedery/gradle/subprojects/model-core/build/generated-resources/main, /home/dedery/gradle/out/production/modelGroovy, /home/dedery/gradle/subprojects/model-groovy/build/generated-resources/main, /home/dedery/gradle/subprojects/docs/build/generated-resources/main, /home/dedery/.gradle/caches/modules-2/files-2.1/javax.inject/javax.inject/1/6975da39a7040257bd51d21a231b76c915872d38/javax.inject-1.jar, /home/dedery/.gradle/caches/modules-2/files-2.1/commons-collections/commons-collections/3.2.2/8ad72fe39fa8c91eaaf12aadb21e0c3661fe26d5/commons-collections-3.2.2.jar, /home/dedery/gradle/out/production/toolingApi, /home/dedery/gradle/subprojects/tooling-api/build/generated-resources/main, /home/dedery/gradle/out/production/wrapper, /home/dedery/gradle/subprojects/wrapper/build/generated-resources/main, /opt/idea-IC-171.4249.39/lib/idea_rt.jar, /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/charsets.jar, /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/compilefontconfig.jar, /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/ext/dnsns.jar, /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/ext/icedtea-sound.jar, /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/ext/java-atk-wrapper.jar, /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/ext/localedata.jar, /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/ext/sunjce_provider.jar, /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/ext/sunpkcs11.jar, /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/ext/zipfs.jar, /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/javazic.jar, /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/jce.jar, /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/jsse.jar, /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/management-agent.jar, /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/resources.jar, /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/rhino.jar, /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/rt.jar].

Am I missing something here?

Thanks!


(David Edery) #2

ping :slight_smile:
still happens…