I'm using Intelij Community Edition.
I want to get hot code replace using spring-loaded as described here :
http://mindthegab.com/2014/08/07/rapid-development-and-hot-reloading-for-your-maven-project-in-eclipse-and-idea-for-free-yes-with-spring-loaded-and-tomcat7-virtualwebapp/
To do this with Intellij, when I change code in a java file, I need to have an up-to-date .class file, so I need to recompile it (Ctrl+Shild+F9). If I do so, everything works fine.
What I don't understand is that recompile on the java file (Ctrl+Shift+F9) is taking a lot of time (~10s) while Eclipse is able to generate the class file in less than 1 second. Is there a reason why IntelliJ can't do as good as Eclipse?
build.log:
2019-01-24 17:36:27,568 [ 0] INFO - etbrains.jps.cmdline.BuildMain - ==================================================
2019-01-24 17:36:27,569 [ 1] INFO - etbrains.jps.cmdline.BuildMain - Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2018.3.3/lib/jps-launcher.jar;D:/projets/products/java/v1.8.0_73-x64/lib/tools.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2018.3.3/lib/optimizedFileManager.jar
2019-01-24 17:36:27,926 [ 358] INFO - etbrains.jps.cmdline.BuildMain - Connection to IDE established in 319 ms
2019-01-24 17:36:28,122 [ 554] INFO - jps.cmdline.JpsModelLoaderImpl - Loading model: project path = XXX
2019-01-24 17:36:28,495 [ 927] INFO - serialization.JpsProjectLoader - External project config dir is used: XXX
2019-01-24 17:36:28,519 [ 951] INFO - serialization.JpsProjectLoader - External project config dir is used for modules: XXX
2019-01-24 17:36:29,299 [ 1731] INFO - jps.cmdline.JpsModelLoaderImpl - Model loaded in 1177 ms
2019-01-24 17:36:29,300 [ 1732] INFO - jps.cmdline.JpsModelLoaderImpl - Project has 144 modules, 529 libraries
2019-01-24 17:36:29,732 [ 2164] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=602
2019-01-24 17:36:29,897 [ 2329] INFO - .incremental.IncProjectBuilder - Building project; isRebuild:false; isMake:false parallel compilation:false
2019-01-24 17:36:29,899 [ 2331] INFO - kotlin.jps.build.KotlinBuilder - is Kotlin incremental compilation enabled for JVM: true
2019-01-24 17:36:29,899 [ 2331] INFO - kotlin.jps.build.KotlinBuilder - is Kotlin incremental compilation enabled for JS: false
2019-01-24 17:36:29,907 [ 2339] INFO - kotlin.jps.build.KotlinBuilder - is Kotlin compiler daemon enabled: true
2019-01-24 17:36:29,907 [ 2339] INFO - kotlin.jps.build.KotlinBuilder - Label in local history: build started a31f9eb8
2019-01-24 17:36:30,495 [ 2927] INFO - .incremental.IncProjectBuilder - Cleaned output directories in 98 ms
2019-01-24 17:36:34,532 [ 6964] INFO - kotlin.jps.build.KotlinBuilder - KotlinTargetsIndex created in 3368 ms
2019-01-24 17:36:34,555 [ 6987] INFO - kotlin.jps.build.KotlinBuilder - Total Kotlin global compile context initialization time: 3394 ms
2019-01-24 17:36:34,630 [ 7062] INFO - s.incremental.java.JavaBuilder - Compiling 1 java files; module: <MODULE_NAME>
2019-01-24 17:36:36,784 [ 9216] INFO - brains.jps.incremental.Builder - Dependency analysis found 0 affected files
2019-01-24 17:36:36,962 [ 9394] INFO - rains.jps.cmdline.BuildSession - Build duration: Builder 'Maven Resources Compiler' took 144 ms; 0 sources processed
2019-01-24 17:36:36,962 [ 9394] INFO - rains.jps.cmdline.BuildSession - Build duration: Builder 'Java' took 2 s 129 ms; 1 sources processed (2129 ms per file)
2019-01-24 17:36:36,964 [ 9396] INFO - s.incremental.java.JavaBuilder - javac 1.8.0_73 was used to compile [<MODULE_NAME>]
2019-01-24 17:36:38,487 [ 0] INFO - etbrains.jps.cmdline.BuildMain - ==================================================
2019-01-24 17:36:38,488 [ 1] INFO - etbrains.jps.cmdline.BuildMain - Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2018.3.3/lib/jps-launcher.jar;D:/projets/products/java/v1.8.0_73-x64/lib/tools.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2018.3.3/lib/optimizedFileManager.jar
2019-01-24 17:36:38,911 [ 424] INFO - etbrains.jps.cmdline.BuildMain - Connection to IDE established in 380 ms
2019-01-24 17:36:38,953 [ 466] INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational
2019-01-24 17:36:38,992 [ 505] INFO - jps.cmdline.JpsModelLoaderImpl - Loading model: project path = XXX, global options path = XXX
2019-01-24 17:36:39,404 [ 917] INFO - serialization.JpsProjectLoader - External project config dir is used: XXX
2019-01-24 17:36:39,433 [ 946] INFO - serialization.JpsProjectLoader - External project config dir is used for modules: XXX
2019-01-24 17:36:40,132 [ 1645] INFO - jps.cmdline.JpsModelLoaderImpl - Model loaded in 1140 ms
2019-01-24 17:36:40,132 [ 1645] INFO - jps.cmdline.JpsModelLoaderImpl - Project has 144 modules, 529 libraries
2019-01-24 17:36:40,669 [ 2182] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=602
2019-01-24 17:36:44,092 [ 5605] INFO - etbrains.jps.cmdline.BuildMain - Pre-loaded process ready in 5607 ms
Related
I'm asking for help in building a project for Android (my knowledge in this tends to 0).
There is a rather old project. I'm trying to build it in AndroidStudio, I get the following error:
Build command failed.
Error while executing process C:\Users\User\AppData\Local\Android\Sdk\cmake\3.18.1\bin\ninja.exe with arguments {-C C:\Users\User\IdeaProjects\1\stouch-task-hardware-upgrade-investigation\app.cxx\RelWithDebInfo\2a9512e2\armeabi-v7a stouch}
ninja: Entering directory `C:\Users\User\IdeaProjects\1\stouch-task-hardware-upgrade-investigation\app.cxx\RelWithDebInfo\2a9512e2\armeabi-v7a'
[1/1] Linking CXX shared library ........\build\intermediates\cxx\RelWithDebInfo\2a9512e2\obj\armeabi-v7a\libstouch.so
I tried different versions of studio, java, gradle but the result is always the same.
How do I fix it?
Update:
2023-01-12 23:41:37,079 [e-1136-b06] WARN -
ea.gradle.project.sync.SdkSync - Replacing invalid NDK path
C:\Users\User\AppData\Local\Android\Sdk\ndk-bundle with
C:\Users\User\AppData\Local\Android\Sdk\ndk-bundle 2023-01-12
23:41:37,079 [e-1136-b06] INFO - e.project.sync.GradleSyncState -
Started sync with Gradle for project 'stouch'. 2023-01-12
23:41:37,080 [e-1136-b06] INFO - idea.project.IndexingSuspender -
Consuming IndexingSuspender activation event: SYNC_STARTED 2023-01-12
23:41:37,080 [e-1136-b06] INFO - idea.project.IndexingSuspender -
Starting batch update for project: Project
'C:\Users\User\IdeaProjects\AS\9\stouch' stouch 2023-01-12
23:41:37,087 [thread 116] INFO - s.plugins.gradle.GradleManager -
Instructing gradle to use java from C:/Program Files/Android/Android
Studio/jre 2023-01-12 23:41:37,088 [thread 116] INFO -
s.plugins.gradle.GradleManager - Instructing gradle to use java from
C:/Program Files/Android/Android Studio/jre 2023-01-12 23:41:37,101
[thread 116] INFO - xecution.GradleExecutionHelper - Passing
command-line args to Gradle Tooling API: -Didea.version=3.2
-Djava.awt.headless=true -Pandroid.injected.build.model.only=true -Pandroid.injected.build.model.only.advanced=true -Pandroid.injected.invoked.from.ide=true -Pandroid.injected.build.model.only.versioned=3 -Pandroid.injected.studio.version=3.2.1.0 -Pandroid.builder.sdkDownload=false --init-script C:\Users\User\AppData\Local\Temp\ijinit17.gradle 2023-01-12
23:41:37,770 [thread 116] INFO - .project.GradleProjectResolver -
Gradle project resolve error org.gradle.tooling.BuildException: Could
not run build action using Gradle distribution
'https://services.gradle.org/distributions/gradle-4.2-all.zip'. at
org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:51)
at
org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:29)
at
org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:41)
I have just downloaded android studio 3.4.2 onto this computer (Macbook Pro running OS X) and whenever I create a new project the gradle wont sync. and i get this error
ERROR: Could not create an instance of Tooling API implementation using the
specified Gradle distribution
https://services.gradle.org/distributions/gradle-5.1.1-all.zip'
After reviewing the log, I have narrowed the problem down to this (I think):
Caused by: java.lang.ClassCastException: org.slf4j.impl.Log4jLoggerAdapter
cannot be cast to org.gradle.api.logging.Logger
at org.gradle.api.logging.Logging.getLogger(Logging.java:38)
All of the fixes I have found online also include a line in the log saying that there are multiple SLF4j bindings, yet my log doesn't say this and those solutions haven't worked for me. Please help
here is the log:
2019-07-29 19:43:59,511 [entQueue-0] INFO - rd.FirstRunWizardFrameProvider - Overriding welcome frame to be resizable
2019-07-29 19:44:05,113 [rImpl Pool] WARN - ess.util.ProgressIndicatorBase - This progress indicator is indeterminate, this may lead to visual inconsistency. Please call setIndeterminate(false) before you start progress.
com.intellij.util.download.impl.FileDownloaderImpl$ConcurrentTasksProgressManager.updateFraction(FileDownloaderImpl.java:339)
2019-07-29 19:44:09,987 [entQueue-0] INFO - ellij.project.impl.ProjectImpl - 159 project components initialized in 366 ms
2019-07-29 19:44:09,987 [entQueue-0] INFO - le.impl.ModuleManagerComponent - 0 module(s) loaded in 0 ms
2019-07-29 19:44:10,231 [entQueue-0] INFO - idea.project.IndexingSuspender - Subscribing project 'Project '/Applications/MyApplication' My Application' to indexing suspender events (com.android.tools.idea.project.IndexingSuspender#74c57e4b)
2019-07-29 19:44:10,232 [entQueue-0] INFO - idea.project.IndexingSuspender - Consuming IndexingSuspender activation event: TEMPLATE_RENDERING_STARTED
2019-07-29 19:44:10,232 [entQueue-0] INFO - a.gradle.util.BatchUpdatesUtil - Starting batch update for project: Project '/Applications/MyApplication' My Application
2019-07-29 19:44:10,801 [cessToken]] WARN - BasedStripTrailingSpacesFilter - No current project is given, trailing spaces will be stripped later (postponed). File: /Applications/MyApplication/build.gradle
2019-07-29 19:44:10,812 [cessToken]] WARN - BasedStripTrailingSpacesFilter - No current project is given, trailing spaces will be stripped later (postponed). File: /Applications/MyApplication/gradle.properties
2019-07-29 19:44:10,859 [cessToken]] WARN - BasedStripTrailingSpacesFilter - No current project is given, trailing spaces will be stripped later (postponed). File: /Applications/MyApplication/local.properties
2019-07-29 19:44:10,903 [cessToken]] WARN - BasedStripTrailingSpacesFilter - No current project is given, trailing spaces will be stripped later (postponed). File: /Applications/MyApplication/settings.gradle
2019-07-29 19:44:10,917 [cessToken]] WARN - BasedStripTrailingSpacesFilter - No current project is given, trailing spaces will be stripped later (postponed). File: /Applications/MyApplication/app/build.gradle
2019-07-29 19:44:11,288 [cessToken]] WARN - BasedStripTrailingSpacesFilter - No current project is given, trailing spaces will be stripped later (postponed). File: /Applications/MyApplication/app/build.gradle
2019-07-29 19:44:11,534 [cessToken]] WARN - BasedStripTrailingSpacesFilter - No current project is given, trailing spaces will be stripped later (postponed). File: /Applications/MyApplication/app/build.gradle
2019-07-29 19:44:11,538 [entQueue-0] INFO - idea.project.IndexingSuspender - Consuming IndexingSuspender deactivation event: TEMPLATE_RENDERING_FINISHED
2019-07-29 19:44:11,538 [entQueue-0] INFO - a.gradle.util.BatchUpdatesUtil - Finishing batch update for project: Project '/Applications/MyApplication' My Application
2019-07-29 19:44:11,581 [entQueue-0] INFO - util.EmbeddedDistributionPaths - Looking for embedded Gradle distribution at '/Applications/Android Studio.app/Contents/gradle/gradle-5.1.1'
2019-07-29 19:44:11,581 [entQueue-0] INFO - util.EmbeddedDistributionPaths - Found embedded Gradle 5.1.1
2019-07-29 19:44:11,765 [ thread 74] INFO - ge.ExternalProjectsDataStorage - Loaded external projects data in 0 millis
2019-07-29 19:44:11,780 [ thread 75] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 5ms; general responsiveness: ok; EDT responsiveness: ok
2019-07-29 19:44:11,913 [ thread 74] INFO - tartup.impl.StartupManagerImpl - CreateKotlinSdkActivity run in 147ms under project opening modal progress
2019-07-29 19:44:11,932 [ thread 74] INFO - .diagnostic.PerformanceWatcher - Post-startup activities under progress took 171ms; general responsiveness: ok; EDT responsiveness: ok
2019-07-29 19:44:12,075 [ thread 75] INFO - indexing.UnindexedFilesUpdater - Unindexed files update canceled
2019-07-29 19:44:12,076 [entQueue-0] INFO - pl.ProjectRootManagerComponent - project roots have changed
2019-07-29 19:44:12,085 [entQueue-0] INFO - pl.ProjectRootManagerComponent - project roots have changed
2019-07-29 19:44:12,090 [entQueue-0] INFO - pl.ProjectRootManagerComponent - project roots have changed
2019-07-29 19:44:12,095 [entQueue-0] INFO - pl.ProjectRootManagerComponent - project roots have changed
2019-07-29 19:44:12,098 [entQueue-0] INFO - idea.project.IndexingSuspender - Consuming IndexingSuspender activation event: SYNC_TASK_CREATED
2019-07-29 19:44:12,184 [entQueue-0] INFO - tartup.impl.StartupManagerImpl - /Applications/MyApplication/.idea case-sensitivity: expected=false actual=false
2019-07-29 19:44:12,184 [ thread 73] INFO - pl.projectlevelman.NewMappings - VCS Root: [] - [<Project>]
2019-07-29 19:44:12,200 [entQueue-0] INFO - e.project.sync.GradleSyncState - Started sync with Gradle for project 'My Application'.
2019-07-29 19:44:12,201 [entQueue-0] INFO - idea.project.IndexingSuspender - Consuming IndexingSuspender activation event: SYNC_STARTED
2019-07-29 19:44:12,201 [entQueue-0] INFO - a.gradle.util.BatchUpdatesUtil - Starting batch update for project: Project '/Applications/MyApplication' My Application
2019-07-29 19:44:12,248 [ thread 75] INFO - #com.jetbrains.cidr.lang - Clearing symbols finished in 59 ms
2019-07-29 19:44:12,296 [cessToken]] INFO - pl.ProjectRootManagerComponent - project roots have changed
2019-07-29 19:44:12,302 [entQueue-0] INFO - tor.impl.FileEditorManagerImpl - Project opening took 3490 ms
2019-07-29 19:44:12,303 [ thread 70] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home
2019-07-29 19:44:12,304 [ thread 70] INFO - oject.common.GradleInitScripts - init script file sync.java.lib contents "initscript {\n dependencies {\n classpath files(['/Applications/Android Studio.app/Contents/plugins/android/lib/sdk-tools.jar', '/Applications/Android Studio.app/Contents/plugins/android/lib/sdk-tools.jar', '/Applications/Android Studio.app/Contents/lib/kotlin-stdlib.jar'])\n }\n}\nallprojects {\n apply plugin: com.android.java.model.builder.JavaLibraryPlugin\n}\n"
2019-07-29 19:44:12,306 [ thread 70] INFO - oject.common.GradleInitScripts - init script file sync.ng.build.script.classpath contents "import javax.inject.Inject\nimport org.gradle.tooling.provider.model.ToolingModelBuilderRegistry\nimport org.gradle.tooling.provider.model.ToolingModelBuilder\ninitscript {\n dependencies {\n classpath files(['/Applications/Android Studio.app/Contents/plugins/gradle/lib/gradle-tooling-extension-impl.jar', '/Applications/Android Studio.app/Contents/plugins/gradle/lib/gradle-tooling-extension-api.jar', '/Applications/Android Studio.app/Contents/plugins/gradle/lib/gradle-api-impldep-4.10.jar'])\n }\n}\nallprojects {\n apply plugin: BuildScriptClasspathModelBuilderPlugin\n}\nclass BuildScriptClasspathModelBuilder implements ToolingModelBuilder {\n public org.jetbrains.plugins.gradle.tooling.builder.ModelBuildScriptClasspathBuilderImpl builder;\n public BuildScriptClasspathModelBuilder() {\n builder = new org.jetbrains.plugins.gradle.tooling.builder.ModelBuildScriptClasspathBuilderImpl();\n }\n public boolean canBuild(String modelName) {\n return builder.canBuild(modelName);\n }\n public Object buildAll(String modelName, Project project) {\n return builder.buildAll(modelName, project);\n }\n}\nclass BuildScriptClasspathModelBuilderPlugin implements Plugin<Project>{ \n ToolingModelBuilderRegistry registry\n #Inject BuildScriptClasspathModelBuilderPlugin(ToolingModelBuilderRegistry registry) {\n this.registry = registry }\n\n\n void apply(Project project) {\n registry.register(new BuildScriptClasspathModelBuilder())\n }\n}"
2019-07-29 19:44:12,755 [ thread 70] INFO - e.project.sync.GradleSyncState - Gradle sync failed: org.slf4j.impl.Log4jLoggerAdapter cannot be cast to org.gradle.api.logging.Logger (555 ms)
2019-07-29 19:44:12,756 [ thread 70] WARN - ject.sync.ng.SyncResultHandler - Gradle sync failed
org.gradle.tooling.GradleConnectionException: Could not create an instance of Tooling API implementation using the specified Gradle distribution 'https://services.gradle.org/distributions/gradle-5.1.1-all.zip'.
at org.gradle.tooling.internal.consumer.loader.DefaultToolingImplementationLoader.create(DefaultToolingImplementationLoader.java:114)
at org.gradle.tooling.internal.consumer.loader.CachingToolingImplementationLoader.create(CachingToolingImplementationLoader.java:44)
at org.gradle.tooling.internal.consumer.loader.SynchronizedToolingImplementationLoader.create(SynchronizedToolingImplementationLoader.java:43)
at org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.onStartAction(LazyConsumerActionExecutor.java:101)
at org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.run(LazyConsumerActionExecutor.java:83)
at org.gradle.tooling.internal.consumer.connection.CancellableConsumerActionExecutor.run(CancellableConsumerActionExecutor.java:45)
at org.gradle.tooling.internal.consumer.connection.ProgressLoggingConsumerActionExecutor.run(ProgressLoggingConsumerActionExecutor.java:58)
at org.gradle.tooling.internal.consumer.connection.RethrowingErrorsConsumerActionExecutor.run(RethrowingErrorsConsumerActionExecutor.java:38)
at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:55)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
at java.lang.Thread.run(Thread.java:745)
at org.gradle.tooling.internal.consumer.BlockingResultHandler.getResult(BlockingResultHandler.java:46)
at org.gradle.tooling.internal.consumer.DefaultModelBuilder.get(DefaultModelBuilder.java:50)
at org.jetbrains.plugins.gradle.service.execution.GradleExecutionHelper.getBuildEnvironment(GradleExecutionHelper.java:567)
at org.jetbrains.plugins.gradle.service.execution.GradleExecutionHelper.prepare(GradleExecutionHelper.java:105)
at org.jetbrains.plugins.gradle.service.execution.GradleExecutionHelper.prepare(GradleExecutionHelper.java:94)
at com.android.tools.idea.gradle.project.sync.ng.SyncExecutor.executeFullSyncAndGenerateSources(SyncExecutor.java:281)
at com.android.tools.idea.gradle.project.sync.ng.SyncExecutor.syncProject(SyncExecutor.java:197)
at com.android.tools.idea.gradle.project.sync.ng.SyncExecutor.lambda$syncProject$1(SyncExecutor.java:137)
at org.jetbrains.plugins.gradle.service.execution.GradleExecutionHelper.execute(GradleExecutionHelper.java:217)
at com.android.tools.idea.gradle.project.sync.ng.SyncExecutor.syncProject(SyncExecutor.java:142)
at com.android.tools.idea.gradle.project.sync.ng.NewGradleSync.sync(NewGradleSync.java:197)
at com.android.tools.idea.gradle.project.sync.ng.NewGradleSync.access$000(NewGradleSync.java:70)
at com.android.tools.idea.gradle.project.sync.ng.NewGradleSync$2.run(NewGradleSync.java:163)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:727)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:582)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:87)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151)
at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:403)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ExceptionInInitializerError
at org.gradle.launcher.daemon.registry.DaemonRegistryServices$1.create(DaemonRegistryServices.java:59)
at org.gradle.launcher.daemon.registry.DaemonRegistryServices$1.create(DaemonRegistryServices.java:57)
at org.gradle.cache.internal.CacheSupport.get(CacheSupport.java:25)
at org.gradle.cache.internal.CacheAccessSerializer$1.create(CacheAccessSerializer.java:33)
at org.gradle.internal.concurrent.Synchronizer.synchronize(Synchronizer.java:31)
at org.gradle.cache.internal.CacheAccessSerializer.get(CacheAccessSerializer.java:31)
at org.gradle.launcher.daemon.registry.DaemonRegistryServices.createDaemonRegistry(DaemonRegistryServices.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
at org.gradle.internal.service.ReflectionBasedServiceMethod.invoke(ReflectionBasedServiceMethod.java:35)
at org.gradle.internal.service.DefaultServiceRegistry$FactoryMethodService.invokeMethod(DefaultServiceRegistry.java:821)
at org.gradle.internal.service.DefaultServiceRegistry$FactoryService.create(DefaultServiceRegistry.java:774)
at org.gradle.internal.service.DefaultServiceRegistry$ManagedObjectServiceProvider.getInstance(DefaultServiceRegistry.java:568)
at org.gradle.internal.service.DefaultServiceRegistry$SingletonService.get(DefaultServiceRegistry.java:625)
at org.gradle.internal.service.DefaultServiceRegistry$FactoryService.assembleParameters(DefaultServiceRegistry.java:787)
at org.gradle.internal.service.DefaultServiceRegistry$FactoryService.create(DefaultServiceRegistry.java:773)
at org.gradle.internal.service.DefaultServiceRegistry$ManagedObjectServiceProvider.getInstance(DefaultServiceRegistry.java:568)
at org.gradle.internal.service.DefaultServiceRegistry$SingletonService.get(DefaultServiceRegistry.java:625)
at org.gradle.internal.service.DefaultServiceRegistry$FactoryService.assembleParameters(DefaultServiceRegistry.java:787)
at org.gradle.internal.service.DefaultServiceRegistry$FactoryService.create(DefaultServiceRegistry.java:773)
at org.gradle.internal.service.DefaultServiceRegistry$ManagedObjectServiceProvider.getInstance(DefaultServiceRegistry.java:568)
at org.gradle.internal.service.DefaultServiceRegistry$SingletonService.get(DefaultServiceRegistry.java:625)
at org.gradle.internal.service.DefaultServiceRegistry.find(DefaultServiceRegistry.java:292)
at org.gradle.internal.service.DefaultServiceRegistry.get(DefaultServiceRegistry.java:281)
at org.gradle.internal.service.DefaultServiceRegistry.get(DefaultServiceRegistry.java:276)
at org.gradle.tooling.internal.provider.ConnectionScopeServices.createShutdownCoordinator(ConnectionScopeServices.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
at org.gradle.internal.service.ReflectionBasedServiceMethod.invoke(ReflectionBasedServiceMethod.java:35)
at org.gradle.internal.service.DefaultServiceRegistry$FactoryMethodService.invokeMethod(DefaultServiceRegistry.java:821)
at org.gradle.internal.service.DefaultServiceRegistry$FactoryService.create(DefaultServiceRegistry.java:774)
at org.gradle.internal.service.DefaultServiceRegistry$ManagedObjectServiceProvider.getInstance(DefaultServiceRegistry.java:568)
at org.gradle.internal.service.DefaultServiceRegistry$SingletonService.get(DefaultServiceRegistry.java:625)
at org.gradle.internal.service.DefaultServiceRegistry$FactoryService.assembleParameters(DefaultServiceRegistry.java:787)
at org.gradle.internal.service.DefaultServiceRegistry$FactoryService.create(DefaultServiceRegistry.java:773)
at org.gradle.internal.service.DefaultServiceRegistry$ManagedObjectServiceProvider.getInstance(DefaultServiceRegistry.java:568)
at org.gradle.internal.service.DefaultServiceRegistry$SingletonService.get(DefaultServiceRegistry.java:625)
at org.gradle.internal.service.DefaultServiceRegistry.find(DefaultServiceRegistry.java:292)
at org.gradle.internal.service.DefaultServiceRegistry.get(DefaultServiceRegistry.java:281)
at org.gradle.internal.service.DefaultServiceRegistry.get(DefaultServiceRegistry.java:276)
at org.gradle.tooling.internal.provider.DefaultConnection.initializeServices(DefaultConnection.java:123)
at org.gradle.tooling.internal.provider.DefaultConnection.configure(DefaultConnection.java:101)
at org.gradle.tooling.internal.consumer.connection.AbstractPost12ConsumerConnection.configure(AbstractPost12ConsumerConnection.java:37)
at org.gradle.tooling.internal.consumer.loader.DefaultToolingImplementationLoader.createConnection(DefaultToolingImplementationLoader.java:119)
at org.gradle.tooling.internal.consumer.loader.DefaultToolingImplementationLoader.create(DefaultToolingImplementationLoader.java:93)
at org.gradle.tooling.internal.consumer.loader.CachingToolingImplementationLoader.create(CachingToolingImplementationLoader.java:44)
at org.gradle.tooling.internal.consumer.loader.SynchronizedToolingImplementationLoader.create(SynchronizedToolingImplementationLoader.java:43)
at org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.onStartAction(LazyConsumerActionExecutor.java:101)
at org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.run(LazyConsumerActionExecutor.java:83)
at org.gradle.tooling.internal.consumer.connection.CancellableConsumerActionExecutor.run(CancellableConsumerActionExecutor.java:45)
at org.gradle.tooling.internal.consumer.connection.ProgressLoggingConsumerActionExecutor.run(ProgressLoggingConsumerActionExecutor.java:58)
at org.gradle.tooling.internal.consumer.connection.RethrowingErrorsConsumerActionExecutor.run(RethrowingErrorsConsumerActionExecutor.java:38)
at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:55)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
... 1 more
Caused by: java.lang.ClassCastException: org.slf4j.impl.Log4jLoggerAdapter cannot be cast to org.gradle.api.logging.Logger
at org.gradle.api.logging.Logging.getLogger(Logging.java:38)
at org.gradle.launcher.daemon.registry.PersistentDaemonRegistry.<clinit>(PersistentDaemonRegistry.java:50)
... 65 more
2019-07-29 19:44:12,787 [entQueue-0] INFO - idea.project.IndexingSuspender - Consuming IndexingSuspender deactivation event: SYNC_FINISHED
2019-07-29 19:44:12,788 [entQueue-0] INFO - a.gradle.util.BatchUpdatesUtil - Finishing batch update for project: Project '/Applications/MyApplication' My Application
2019-07-29 19:44:12,790 [ thread 75] INFO - #com.jetbrains.cidr.lang - Building symbols in FAST mode, 0 source files from total 0 project files
2019-07-29 19:44:12,790 [ thread 75] INFO - #com.jetbrains.cidr.lang - Loading symbols finished in 2 ms
2019-07-29 19:44:12,790 [ thread 75] INFO - #com.jetbrains.cidr.lang - Loading Header Maps finished in 0 ms
2019-07-29 19:44:12,796 [ thread 72] INFO - roid.tools.ndk.GradleWorkspace - Updating model took 0.001s
2019-07-29 19:44:12,802 [ thread 75] INFO - #com.jetbrains.cidr.lang - Loading Module Maps finished in 11 ms
2019-07-29 19:44:12,802 [ thread 75] INFO - #com.jetbrains.cidr.lang - Saving Module Maps finished in 0 ms
2019-07-29 19:44:12,802 [ thread 75] INFO - #com.jetbrains.cidr.lang - Loaded 0 tables for 0 files (0 project files)
2019-07-29 19:44:12,802 [ thread 75] INFO - #com.jetbrains.cidr.lang - Building symbols for 0 source files
2019-07-29 19:44:12,803 [ thread 75] INFO - #com.jetbrains.cidr.lang - Building symbols for 0 unused headers
2019-07-29 19:44:12,803 [ thread 75] INFO - #com.jetbrains.cidr.lang - Building symbols finished in 1 ms
2019-07-29 19:44:12,803 [ thread 75] INFO - #com.jetbrains.cidr.lang - Saving modified symbols for 0 files (0 tables of total 0)
2019-07-29 19:44:12,803 [ thread 75] INFO - #com.jetbrains.cidr.lang - Saving symbols finished in 0 ms
2019-07-29 19:44:12,860 [ thread 75] INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 47 to update, calculated in 2ms
2019-07-29 19:44:12,990 [ thread 75] INFO - .diagnostic.PerformanceWatcher - Reindexing refreshed files took 130ms; general responsiveness: ok; EDT responsiveness: ok
2019-07-29 19:44:12,991 [ thread 75] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 1ms; general responsiveness: ok; EDT responsiveness: ok
2019-07-29 19:44:13,736 [ thread 75] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 745ms; general responsiveness: ok; EDT responsiveness: ok
2019-07-29 19:44:13,737 [ thread 75] INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 19 files to update
2019-07-29 19:44:13,773 [ thread 75] INFO - .diagnostic.PerformanceWatcher - Unindexed files update took 37ms; general responsiveness: ok; EDT responsiveness: ok
2019-07-29 19:44:13,774 [ thread 75] INFO - #com.jetbrains.cidr.lang - Clearing symbols finished in 0 ms
2019-07-29 19:44:13,775 [ thread 75] INFO - #com.jetbrains.cidr.lang - Building symbols in FAST mode, 0 source files from total 0 project files
2019-07-29 19:44:13,775 [ thread 75] INFO - #com.jetbrains.cidr.lang - Loading symbols finished in 1 ms
2019-07-29 19:44:13,775 [ thread 75] INFO - #com.jetbrains.cidr.lang - Loading Header Maps finished in 0 ms
2019-07-29 19:44:13,776 [ thread 75] INFO - #com.jetbrains.cidr.lang - Loading Module Maps finished in 0 ms
2019-07-29 19:44:13,776 [ thread 75] INFO - #com.jetbrains.cidr.lang - Saving Module Maps finished in 0 ms
2019-07-29 19:44:13,776 [ thread 75] INFO - #com.jetbrains.cidr.lang - Loaded 0 tables for 0 files (0 project files)
2019-07-29 19:44:13,776 [ thread 75] INFO - #com.jetbrains.cidr.lang - Building symbols for 0 source files
2019-07-29 19:44:13,777 [ thread 75] INFO - #com.jetbrains.cidr.lang - Building symbols for 0 unused headers
2019-07-29 19:44:13,778 [ thread 75] INFO - #com.jetbrains.cidr.lang - Building symbols finished in 2 ms
2019-07-29 19:44:13,778 [ thread 75] INFO - #com.jetbrains.cidr.lang - Saving modified symbols for 0 files (0 tables of total 0)
2019-07-29 19:44:13,778 [ thread 75] INFO - #com.jetbrains.cidr.lang - Saving symbols finished in 0 ms
2019-07-29 19:44:13,837 [entQueue-0] INFO - j.ide.ui.OptionsTopHitProvider - 57 ms spent to cache options in project
2019-07-29 19:44:13,956 [entQueue-0] INFO - j.ide.ui.OptionsTopHitProvider - 96 ms spent on EDT to cache options in project
2019-07-29 19:44:14,324 [ thread 74] WARN - WhatsNewAssistantBundleCreator - https://developer.android.com/studio/releases/assistant/3.4.2.xml
java.io.FileNotFoundException: https://developer.android.com/studio/releases/assistant/3.4.2.xml
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1872)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
at com.android.tools.idea.whatsnew.assistant.WhatsNewAssistantBundleCreator.downloadConfig(WhatsNewAssistantBundleCreator.java:221)
at com.android.tools.idea.whatsnew.assistant.WhatsNewAssistantBundleCreator.updateConfig(WhatsNewAssistantBundleCreator.java:209)
at com.android.tools.idea.whatsnew.assistant.WhatsNewAssistantBundleCreator.isNewConfigVersion(WhatsNewAssistantBundleCreator.java:133)
at com.android.tools.idea.whatsnew.assistant.WhatsNewAssistantCheckVersionTask.run(WhatsNewAssistantCheckVersionTask.kt:34)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:727)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:582)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:87)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151)
at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:403)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2019-07-29 19:44:25,354 [entQueue-0] INFO - pl.ProjectRootManagerComponent - project roots have changed
2019-07-29 19:44:25,444 [ thread 72] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 1ms; general responsiveness: ok; EDT responsiveness: ok
2019-07-29 19:44:25,469 [ thread 72] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 24ms; general responsiveness: ok; EDT responsiveness: ok
2019-07-29 19:44:25,469 [ thread 72] INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 9 files to update
2019-07-29 19:44:25,491 [ thread 72] INFO - .diagnostic.PerformanceWatcher - Unindexed files update took 22ms; general responsiveness: ok; EDT responsiveness: ok
Check your project then edit your project gradle, your version gradle is old, or your android studio is missing file. Download your android studio once more. Install Android Studio and make sure your Android Build 28.0.0 or more than it already installed
I am using IntelliJ IDEA community edition and got the latest version around two months ago. I have this huge problem that whenever I try to import or make a maven project I get the unhelpful message "Unable to import maven project: See logs for details" from the editor.
What really stumps me and those I have asked for help so far is that this issue seems completely isolated to me and everyone else around me importing the same projects can do so with ease. The logs haven't been helpful to me at all either and when I tried following some other solutions for this on Stack Overflow nothing happened.
I have also tried re-installing IntelliJ it fixed it but only for that particular time i used IntelliJ.
I have the logs but the dump in it is far too long to put into a question.
So, do any of you have any idea what I should do?
Putting partial dump here in any case just to try. Just the first part.
2017-09-26 12:09:12,894 [ 47064] WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: Main.java
2017-09-26 12:09:12,894 [ 47064] WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: Vinir.json
2017-09-26 12:09:12,895 [ 47065] WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: Friends.java
2017-09-26 12:09:12,895 [ 47065] WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: Books.java
2017-09-26 12:09:12,895 [ 47065] WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: Borrowers.java
2017-09-26 12:09:12,895 [ 47065] WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: Bækur.json
2017-09-26 12:09:17,655 [ 51825] INFO - ellij.project.impl.ProjectImpl - 18 project components initialized in 52 ms
2017-09-26 12:55:48,767 [2842937] INFO - stubs.SerializationManagerImpl - START StubSerializationManager SHUTDOWN
2017-09-26 12:55:48,768 [2842938] INFO - stubs.SerializationManagerImpl - END StubSerializationManager SHUTDOWN
2017-09-26 12:55:48,768 [2842938] INFO - il.indexing.FileBasedIndexImpl - START INDEX SHUTDOWN
2017-09-26 12:55:48,788 [2842958] INFO - il.indexing.FileBasedIndexImpl - END INDEX SHUTDOWN
2017-09-26 12:55:48,789 [2842959] INFO - org.jetbrains.io.BuiltInServer - web server stopped
2017-09-26 12:55:48,801 [2842971] INFO - Types.impl.FileTypeManagerImpl - FileTypeManager: 0 auto-detected files
Elapsed time on auto-detect: 0 ms
2017-09-26 12:55:48,808 [2842978] INFO - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 0
2017-09-26 12:55:48,811 [2842981] INFO - newvfs.persistent.PersistentFS - VFS dispose started
2017-09-26 12:55:48,819 [2842989] INFO - newvfs.persistent.PersistentFS - VFS dispose completed
2017-09-26 12:55:48,822 [2842992] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE SHUTDOWN ------------------------------------------------------
2017-09-26 12:55:48,824 [2842994] INFO - org.jetbrains.io.BuiltInServer - web server stopped
2017-09-27 12:13:07,909 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2017-09-27 12:13:07,919 [ 10] INFO - #com.intellij.util.ui.JBUI - User scale factor: 1.25
2017-09-27 12:13:07,919 [ 10] INFO - #com.intellij.util.ui.JBUI - System scale factor: 1.25 (IDE-managed HiDPI)
2017-09-27 12:13:07,953 [ 44] INFO - #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IC-172.4155.36, 11 Sep 2017 19:07)
2017-09-27 12:13:07,953 [ 44] INFO - #com.intellij.idea.Main - OS: Windows 10 (10.0, amd64)
2017-09-27 12:13:07,953 [ 44] INFO - #com.intellij.idea.Main - JRE: 1.8.0_152-release-915-b11 (JetBrains s.r.o)
2017-09-27 12:13:07,953 [ 44] INFO - #com.intellij.idea.Main - JVM: 25.152-b11 (OpenJDK 64-Bit Server VM)
2017-09-27 12:13:07,975 [ 66] INFO - #com.intellij.idea.Main - JVM Args: -Xms128m -Xmx750m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djb.vmOptionsFile=D:\download\IntelliJ IDEA Community Edition 2017.2.4\bin\idea64.exe.vmoptions -Xbootclasspath/a:D:\download\IntelliJ IDEA Community Edition 2017.2.4\lib\boot.jar -Didea.platform.prefix=Idea -Didea.jre.check=true -Didea.paths.selector=IdeaIC2017.2 -XX:ErrorFile=C:\Users\Grimur\java_error_in_idea_%p.log -XX:HeapDumpPath=C:\Users\Grimur\java_error_in_idea.hprof
2017-09-27 12:13:07,975 [ 66] INFO - #com.intellij.idea.Main - ext: D:\download\IntelliJ IDEA Community Edition 2017.2.4\jre64\lib\ext: [access-bridge-64.jar, cldrdata.jar, dnsns.jar, jaccess.jar, jfxrt.jar, localedata.jar, meta-index, nashorn.jar, sunec.jar, sunjce_provider.jar, sunmscapi.jar, sunpkcs11.jar, zipfs.jar]
2017-09-27 12:13:07,975 [ 66] INFO - #com.intellij.idea.Main - JNU charset: Cp1252
2017-09-27 12:13:08,047 [ 138] INFO - #com.intellij.idea.Main - JNA library (64-bit) loaded in 71 ms
2017-09-27 12:13:08,070 [ 161] INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational
2017-09-27 12:13:08,071 [ 162] INFO - #com.intellij.idea.Main - Using "FocusKiller" library to prevent focus stealing.
2017-09-27 12:13:10,577 [ 2668] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor duplicates-groovy.xml
2017-09-27 12:13:11,447 [ 3538] INFO - llij.ide.plugins.PluginManager - 32 plugins initialized in 1383 ms
2017-09-27 12:13:11,452 [ 3543] INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: Android Support (10.2.3), Ant Support (1.0), Bytecode Viewer (0.1), CVS Integration (11), Copyright (8.1), Coverage (172.4155.36), Eclipse Integration (3.0), EditorConfig (172.4155.36), Git Integration (8.1), GitHub (172.4155.36), Gradle (172.4155.36), Groovy (9.0), I18n for Java (172.4155.36), IDEA CORE (172.4155.36), IntelliLang (8.0), JUnit (1.0), Java Bytecode Decompiler (172.4155.36), JavaFX (1.0), Kotlin (1.1.4-release-IJ2017.2-3), Maven Integration (172.4155.36), Plugin DevKit (1.0), Properties Support (172.4155.36), Settings Repository (172.4155.36), Subversion Integration (1.1), Task Management (1.0), Terminal (0.1), TestNG-J (8.0), UI Designer (172.4155.36), XPathView + XSLT Support (4), XSLT-Debugger (1.4), YAML (172.4155.36), hg4idea (10.0)
2017-09-27 12:13:18,972 [ 11063] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=705
2017-09-27 12:13:19,124 [ 11215] INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: D:\download\IntelliJ IDEA Community Edition 2017.2.4\bin\fsnotifier64.exe
2017-09-27 12:13:19,172 [ 11263] INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational.
2017-09-27 12:13:23,116 [ 15207] INFO - til.net.ssl.CertificateManager - Default SSL context initialized
2017-09-27 12:13:23,180 [ 15271] INFO - figurations.GeneralCommandLine - Cannot run program "D:\download\IntelliJ IDEA Community Edition 2017.2.4\jre64\bin\java.exe": CreateProcess error=2, The system cannot find the file specified
java.io.IOException: Cannot run program "D:\download\IntelliJ IDEA Community Edition 2017.2.4\jre64\bin\java.exe": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:420)
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:387)
at com.intellij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:45)
at com.intellij.execution.process.CapturingProcessHandler.<init>(CapturingProcessHandler.java:38)
at com.intellij.execution.util.ExecUtil.execAndGetOutput(ExecUtil.java:101)
at com.intellij.util.JdkBundle.getJDKNameArchVersionAndUpdate(JdkBundle.java:230)
at com.intellij.util.JdkBundle.createBundle(JdkBundle.java:103)
at com.intellij.util.JdkBundle.createBoot(JdkBundle.java:137)
at com.intellij.util.JdkBundle.createBoot(JdkBundle.java:124)
at com.intellij.ide.SystemHealthMonitor.checkRuntime(SystemHealthMonitor.java:101)
at com.intellij.ide.SystemHealthMonitor.initComponent(SystemHealthMonitor.java:79)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:492)
at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:118)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$createComponents$9(ApplicationImpl.java:474)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:170)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:548)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:493)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:157)
at com.intellij.openapi.application.impl.ApplicationImpl.createComponents(ApplicationImpl.java:481)
at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:102)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:433)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:419)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:203)
at com.intellij.idea.MainImpl$1.lambda$null$0(MainImpl.java:49)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:345)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 40 more
Thank you very much if you know what's going on. If this can't be resolved I might have to fail a course simply due to being unable to do the projects I need to do.
I have got the same problem with my IntelliJ Ultimate 17. The problem was that JDK for importer (maven in that case) was set to IntelliJ's internal.
Go to Settings (shortcut: CTRL+ALT+S)
Then, Build, Execution, Deployment -> Build Tools -> Maven -> Importing
Choose other JDK than the internal one for JDK for importer.
Check if works, eventually - restart IntelliJ.
Picture with settings:
Here are some of the messages from my IDEA log file. It appears that it is not able to connect to some maven service on localhost. This used to work just fine for me with 14.
classworlds-2.5.1.jar" org.jetbrains.idea.maven.server.RemoteMavenServer
2016-01-27 20:03:44,054 [ 318261] INFO - ution.rmi.RemoteProcessSupport - Port/ID: 44435/Maven32ServerImplaa933e0f
2016-01-27 20:04:59,912 [ 394119] WARN - ution.rmi.RemoteProcessSupport - The cook failed to start due to java.net.ConnectException: Operation timed out
2016-01-27 20:05:44,776 [ 438983] WARN - ution.rmi.RemoteProcessSupport - java.rmi.NotBoundException: _DEAD_HAND_
2016-01-27 20:05:44,776 [ 438983] WARN - ution.rmi.RemoteProcessSupport - at sun.rmi.registry.RegistryImpl.lookup(RegistryImpl.java:166)
2016-01-27 20:05:44,776 [ 438983] WARN - ution.rmi.RemoteProcessSupport - at com.intellij.execution.rmi.RemoteServer.start(RemoteServer.java:88)
2016-01-27 20:05:44,776 [ 438983] WARN - ution.rmi.RemoteProcessSupport - at org.jetbrains.idea.maven.server.RemoteMavenServer.main(RemoteMavenServer.java:22)
2016-01-27 20:06:15,111 [ 469318] WARN - #org.jetbrains.idea.maven - Cannot open index /Users/xxxxx/Library/Caches/IdeaIC15/Maven/Indices/Index0
org.jetbrains.idea.maven.indices.MavenIndexException: Cannot open index /Users/xxxxx/Library/Caches/IdeaIC15/Maven/Indices/Index0
Update - 1
Found this bug report -> https://youtrack.jetbrains.com/issue/IDEA-147234 which says we should upgrade maven to atleast 3.3.3 I did but I am still seeing the same problem
Looks like it's related with /etc/hosts as #MoizRaja mentioned. I suggest to try commenting everything in /etc/hosts and just leave
127.0.0.1 localhost
I'm trying to run a sonar analysis on my jave code. There are no files indexed.
INFO: Runner configuration file: C:\Program Files\Development\Tools\sonar-runner-2.4\conf\sonar-runner.properties
INFO: Project configuration file: C:\Program Files\Development\Tools\sonar-runner-2.4\Projects\sonar-project.properties
INFO: Default locale: "en_US", source code encoding: "UTF-8"
INFO: Work directory: C:\Program Files\Development\Tools\sonar-runner-2.4\bin\.\.sonar
INFO: SonarQube Server 4.3
09:41:48.340 INFO - Load batch settings
09:41:49.535 INFO - User cache: C:\Users\z003bw5a\.sonar\cache
09:41:49.580 INFO - Install plugins
09:41:55.230 INFO - Install JDBC driver
09:41:55.272 INFO - Create JDBC datasource for jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8
09:42:00.687 INFO - Initializing Hibernate
09:42:15.950 INFO - Load project settings
09:42:16.125 INFO - Apply project exclusions
09:42:16.812 INFO - ------------- Scan skuska 1
09:42:16.842 INFO - Load module settings
09:42:20.400 INFO - Language is forced to java
09:42:21.177 INFO - Loading technical debt model...
09:42:21.241 INFO - Loading technical debt model done: 64 ms
09:42:21.246 INFO - Loading rules...
09:42:22.359 INFO - Loading rules done: 1113 ms
09:42:22.430 INFO - Configure Maven plugins
09:42:22.730 INFO - Compare to previous analysis (2014-06-18)
09:42:22.767 INFO - Compare over 30 days (2014-05-19, analysis of 2014-06-18 09:12:14.0)
09:42:22.926 INFO - Loaded quality gate 'SonarQube way'
09:42:24.118 INFO - Base dir: C:\Program Files\Development\Tools\sonar-runner-2.4\bin\.
09:42:24.122 INFO - Working dir: C:\Program Files\Development\Tools\sonar-runner-2.4\bin\.\.sonar
09:42:24.126 INFO - Source encoding: UTF-8, default locale: en_US
09:42:24.137 INFO - Index files
09:42:24.228 INFO - 0 files indexed
09:42:24.238 INFO - Quality profile for java: Sonar way
09:42:24.254 INFO - JaCoCo report not found.
09:42:24.269 INFO - JaCoCo IT report not found.
09:42:24.274 INFO - JaCoCo reports not found.
09:42:24.328 INFO - Sensor QProfileSensor...
09:42:24.454 INFO - Sensor QProfileSensor done: 126 ms
09:42:24.458 INFO - Sensor InitialOpenIssuesSensor...
09:42:24.493 INFO - Sensor InitialOpenIssuesSensor done: 35 ms
09:42:24.498 INFO - Sensor ProfileEventsSensor...
09:42:24.581 INFO - Sensor ProfileEventsSensor done: 83 ms
09:42:24.585 INFO - Sensor ProjectLinksSensor...
09:42:24.612 INFO - Sensor ProjectLinksSensor done: 27 ms
09:42:24.615 INFO - Sensor VersionEventsSensor...
09:42:24.886 INFO - Sensor VersionEventsSensor done: 271 ms
09:42:24.890 INFO - Sensor FileHashSensor...
09:42:24.894 INFO - Sensor FileHashSensor done: 4 ms
09:42:24.905 INFO - Sensor CpdSensor...
09:42:24.908 INFO - SonarEngine is used for java
09:42:24.919 INFO - Sensor CpdSensor done: 14 ms
09:42:26.614 INFO - Execute decorators...
09:42:27.719 INFO - Store results in database
09:42:28.073 INFO - ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard/index/skuska
09:42:28.629 INFO - Executing post-job class org.sonar.plugins.dbcleaner.ProjectPurgePostJob
09:42:28.739 INFO - -> Keep one snapshot per day between 2014-05-21 and 2014-06-17
09:42:28.753 INFO - -> Keep one snapshot per week between 2013-06-19 and 2014-05-21
09:42:28.781 INFO - -> Keep one snapshot per month between 2009-06-24 and 2013-06-19
09:42:28.785 INFO - -> Delete data prior to: 2009-06-24
09:42:28.856 INFO - -> Clean skuska 1 [id=3]
09:42:28.905 INFO - <- Clean snapshot 19
09:42:29.430 INFO - Executing post-job class org.sonar.plugins.core.issue.notification.SendIssueNotificationsPostJob
09:42:29.435 INFO - Executing post-job class org.sonar.plugins.core.batch.IndexProjectPostJob
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
Total time: 56.892s
Final Memory: 11M/212M
INFO: ------------------------------------------------------------------------
My sonar settings look like this:
# Section 1: required metadata
sonar.projectKey=skuska
sonar.projectName=skuska 1
sonar.projectVersion=0.1
# Section 2: project directories
# path to source directories (required)
sonar.sources=C:\Program Files\Development\Tools\sonar-runner-2.4\Projects\skuska
# path to test source directories (optional)
#sonar.tests=
# path to project binaries (optional), for example directory of Java
# bytecode
#sonar.binaries=
# Section 3: Java and libraries settings
# optional comma-separated list of paths to libraries. Only path to JAR file
# and path to directory of classes are supported.
#libraries=path/to/library.jar
# Uncomment those lines if some features of java 5 or java 6 like
# annotations, enum, ...
# are used in the source code to be analysed
#sonar.java.source=1.5
#sonar.java.target=1.5
# Section 4: Advanced parameters
# Uncomment this line to analyse a project which is not a java project.
# The value of the property must be the key of the language.
sonar.language=java
# Advanced parameters
#sonar.my.property=value
sonar.sourceEncoding=UTF-8
Analysis is successful, but the web server is only the name of the project and no data about metrics and code coverage.
Please help me!
As you can read in the documentation, you should put the sonar-project.properties file at the root of your project and launch the analysis from this folder, and therefore replace the "sonar.sources" property with a relative path instead of an absolute one.