IntelliJ IDEA 15 not able to import maven projects - java

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

Related

"Could not create an instance of Tooling API implementation using the specified Gradle distribution" error on new project creation on android studio

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

IntelliJ : Compile one single java class is taking a lot of time

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

IntelliJ cannot import maven projects

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:

Printing Time in every log print

In java,is there any way i can Print the Time of execution of that log statement in Logger
3 [main] DEBUG Main.class -305
3 [main] DEBUG Main.class -307
3 [main] DEBUG Main.class -311
3[24-2-2016 12:00:00] [main] DEBUG Main.class -305 794
3[24-2-2016 12:00:01] [main] DEBUG Main.class -307
3[24-2-2016 12:00:02] [main] DEBUG Main.class -311
You can use log4j for implementing logging in your application.
You can go through this tutorial on log4j .
logs generated are like this :
2014-07-02 20:52:39 DEBUG HelloExample:19 - This is debug : mkyong
2014-07-02 20:52:39 INFO HelloExample:23 - This is info : mkyong
2014-07-02 20:52:39 WARN HelloExample:26 - This is warn : mkyong
2014-07-02 20:52:39 ERROR HelloExample:27 - This is error : mkyong
2014-07-02 20:52:39 FATAL HelloExample:28 - This is fatal : mkyong

Error while using JsonLoader from elephant-bird-pig

I'm trying to use JSonLoader form elephant-bird-pig package.
My script is simple:
register elephant-bird-pig-4.5.jar
register elephant-bird-hadoop-compat-4.5.jar
A = load '1_record_2.json' USING com.twitter.elephantbird.pig.load.JsonLoader('-nestedLoad');
DUMP A
And I get an error:
2014-09-30 16:15:32,439 [main] INFO org.apache.hadoop.conf.Configuration.deprecation - fs.default.name is deprecated. Instead, use fs.defaultFS
2014-09-30 16:15:32,447 [main] INFO org.apache.pig.tools.pigstats.ScriptState - Pig features used in the script: UNKNOWN
2014-09-30 16:15:32,448 [main] INFO org.apache.pig.newplan.logical.optimizer.LogicalPlanOptimizer - {RULES_ENABLED=[AddForEach, ColumnMapKeyPrune, GroupByConstParallelSetter, LimitOptimizer, LoadTypeCastInserter, MergeFilter, MergeForEach, NewPartitionFilterOptimizer, PartitionFilterOptimizer, PushDownForEachFlatten, PushUpFilter, SplitFilter, StreamTypeCastInserter], RULES_DISABLED=[FilterLogicExpressionSimplifier]}
2014-09-30 16:15:32,449 [main] INFO org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MRCompiler - File concatenation threshold: 100 optimistic? false
2014-09-30 16:15:32,450 [main] INFO org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MultiQueryOptimizer - MR plan size before optimization: 1
2014-09-30 16:15:32,450 [main] INFO org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MultiQueryOptimizer - MR plan size after optimization: 1
2014-09-30 16:15:32,464 [main] INFO org.apache.hadoop.yarn.client.RMProxy - Connecting to ResourceManager at hadoop1/10.242.8.131:8050
2014-09-30 16:15:32,466 [main] INFO org.apache.pig.tools.pigstats.ScriptState - Pig script settings are added to the job
2014-09-30 16:15:32,466 [main] INFO org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler - mapred.job.reduce.markreset.buffer.percent is not set, set to default 0.3
2014-09-30 16:15:32,467 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2998: Unhandled internal error. com/twitter/elephantbird/util/HadoopCompat
Details at logfile: pig_1412081068149.log
I don't know what is missing. Can you please suggest something?
File pig_1412081068149.log contains:
Pig Stack Trace
---------------
ERROR 2998: Unhandled internal error. com/twitter/elephantbird/util/HadoopCompat
java.lang.NoClassDefFoundError: com/twitter/elephantbird/util/HadoopCompat
at com.twitter.elephantbird.pig.load.LzoBaseLoadFunc.setLocation(LzoBaseLoadFunc.java:93)
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.getJob(JobControlCompiler.java:477)
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.compile(JobControlCompiler.java:298)
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:191)
at org.apache.pig.PigServer.launchPlan(PigServer.java:1324)
at org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:1309)
at org.apache.pig.PigServer.storeEx(PigServer.java:980)
at org.apache.pig.PigServer.store(PigServer.java:944)
at org.apache.pig.PigServer.openIterator(PigServer.java:857)
at org.apache.pig.tools.grunt.GruntParser.processDump(GruntParser.java:774) etc...
What class is missing (java.lang.NoClassDefFoundError) ? What libraries should I add more?
Thanks
pawel
I've checked if registered libraries exist and classes are inside the libraries.
Everythig looked fine, but I was still getting this error.
So I left pig shell, and opened it once again - the same script works fine.
You missed two important jars to register.
register elephant-bird-core-4.5.jar
register json-simple-1.1.1.jar
Add these two to your pig script and everything should work fine.

Categories