Opening build.gradle as a project fails with "Gradle JVM option is incorrect"

Answered

I'm using 

IntelliJ IDEA 2018.2.7 (Community Edition)
Build #IC-182.5107.41, built on November 26, 2018
JRE: 1.8.0_152-release-1248-b22 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

I'm getting this error message when I try to open my build.gradle file as a project

Gradle JVM option is incorrect:
Path:C:/Program Files/Java/jdk-11

I'm going nuts! 

I have JAVA_HOME defined to be "c:\Program Files\Java\jdk1.8.0_161" and "java -version" seems to work fine.

 

Here is my gradle file:

//
// Begin commands to start server for executing this file using gradle with bash
// #./gradlew clean hbm2java bootRun
// echo SPRING_PROFILES_ACTIVE=initialize ./gradlew bootRun
// SPRING_PROFILES_ACTIVE=initialize ./gradlew bootRun
// End commands to start server for executing this file using gradle with bash
//
// Begin commands to execute this file using gradle with bash
// CHROME=$(perl -e '$_=$ARGV[0]; $_= $ENV{$_}; s/\\/\//g; $_=lcfirst; s/^(.):/\/cygdrive\/$1/; print $_' CHROME)
// sleep=400
// export port=8080
// attempt=0
// while [ "`perl -e 'use IO::Socket::INET;
// my $port = $ARGV[0]; $| = 1;
// my $socket = new IO::Socket::INET ( PeerHost => "localhost", PeerPort => $port, Proto => "tcp");
// if ($socket) { $socket->close(); print "connected to the server"; }
// ' $port`" != "connected to the server" ]
// do
// echo trying to connect attempt $attempt
// attempt=$(expr $attempt + 1)
// sleep 1
// done
// curl localhost:8080/topics?searchString=food
// if [ "`curl localhost:8080/topics?searchString=food`" = '[{"id":1,"name":"Food","description":"\nTopic containing words related to food\n","textField1":"\nHamburger\n","textField2":"\nPasta\n","created":"2019-01-08T04:06:21.000+0000"}]' ]
// then
// echo test passed!
// else
// echo failure!
// fi
// $(perl -e 'my $i = 0;foreach (`netstat -ano | grep \$port `){ print "taskkill /F /PID $4\n" if m/TCP *([0-9\.]+):([0-9]+) *([0-9\.:]+) *LISTENING *([0-9]+)/ ; $i++; }; ')
// End commands to execute this file using gradle with bash
//
//
// Show Tests Part 1 https://stackoverflow.com/questions/3963708/gradle-how-to-display-test-results-in-the-console-in-real-time
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent

tasks.withType(Test) {
testLogging {
// set options for log level LIFECYCLE
events TestLogEvent.FAILED,
TestLogEvent.PASSED,
TestLogEvent.SKIPPED,
TestLogEvent.STANDARD_OUT
exceptionFormat TestExceptionFormat.FULL
showExceptions true
showCauses true
showStackTraces true

// set options for log level DEBUG and INFO
debug {
events TestLogEvent.STARTED,
TestLogEvent.FAILED,
TestLogEvent.PASSED,
TestLogEvent.SKIPPED,
TestLogEvent.STANDARD_ERROR,
TestLogEvent.STANDARD_OUT
exceptionFormat TestExceptionFormat.FULL
}
info.events = debug.events
info.exceptionFormat = debug.exceptionFormat

afterSuite { desc, result ->
if (!desc.parent) { // will match the outermost suite
def output = "Results: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)"
def startItem = '| ', endItem = ' |'
def repeatLength = startItem.length() + output.length() + endItem.length()
println('\n' + ('-' * repeatLength) + '\n' + startItem + output + endItem + '\n' + ('-' * repeatLength))
}
}
}
}
buildscript {
ext {
springBootVersion = '2.0.0.RC1'
//springBootVersion = '2.1.0.RELEASE'
}
repositories {
mavenCentral()
mavenLocal()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath group: 'org.hibernate.gradle.tools',
name: 'hibernatetools-gradle-plugin',
version: '1.2.5-CUSTOM'
}
}


/* use only when upstream plugin gets fixed
plugins {
id "org.hibernate.gradle.tools" version "1.2.5"
}
*/

apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: "org.hibernate.gradle.tools"

group = 'com.packt.sb5be.searchapp'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8

repositories {
mavenCentral()
mavenLocal()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
}


dependencies {
compile('org.springframework.boot:spring-boot-starter-web')
testCompile('org.springframework.boot:spring-boot-starter-test')
compile 'org.springframework.boot:spring-boot-starter-data-jpa'
compile 'org.hibernate:hibernate-core'
compile 'org.apache.httpcomponents:httpclient'
runtime 'mysql:mysql-connector-java'
runtime 'org.springframework.boot:spring-boot-devtools'
//compile 'org.projectlombok:lombok'
//compile 'org.springframework.boot:spring-boot-starter-log4j2'
implementation('org.projectlombok:lombok')
testImplementation('org.springframework.boot:spring-boot-starter-test')
//testImplementation('org.springframework.restdocs:spring-restdocs-mockmvc')

}

import org.hibernate.gradle.tools.Schema

database{
basePackage = "com.packt.sb5be.searchapp.dataservice.dbmodel.orm"
url = "jdbc:mysql://localhost"
dialect = "org.hibernate.dialect.MySQL5Dialect"
catalog = ["searchapp" : new Schema("searchapp",".*")]
user = "searchapp_user"
password = "dbuser123"
}

// Show Tests Part 2 https://stackoverflow.com/questions/29427020/how-to-run-gradle-test-when-all-tests-are-up-to-date
test.outputs.upToDateWhen {false}
// https://www.tutorialspoint.com/gradle/gradle_testing.htm
test {
// enable TestNG support (default is JUnit)
//useTestNG()

// set a system property for the test JVM(s)
systemProperty 'some.prop', 'value'

// explicitly include or exclude tests
//include 'heintze/**'
//exclude 'org/boo/**'

// show standard out and standard error of the test JVM(s) on the console
testLogging.showStandardStreams = true

// set heap size for the test JVM(s)
minHeapSize = "128m"
maxHeapSize = "512m"

// set JVM arguments for the test JVM(s)
//jvmArgs '-XX:MaxPermSize=256m'

// listen to events in the test execution lifecycle
beforeTest { descriptor -> logger.lifecycle("Running test: " + descriptor) }

// https://stackoverflow.com/questions/3963708/gradle-how-to-display-test-results-in-the-console-in-real-time
// testLogging { events "passed", "skipped", "failed", "standardOut", "standardError" }

// listen to standard out and standard error of the test JVM(s)
onOutput { descriptor, event ->
// logger.lifecycle ("Test: " + descriptor + " produced standard out/err: " + event.message )
}
}

 

15 comments

Hello,

 

Could you please attach screenshot form "Settings | Build, Execution, Deployment | Build Tools | Gradle"?

1


Oops, that is not what you asked for.... Is this what you want?

 


 

 

 

0

Will it help if you select "Use local gradle distribution" option? Could you please attach "gradle/wrapper/gradle-wrapper.properties" file?

0

Here it is:

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-bin.zip

0

Do you have "JAVA_HOME" environment variable configured on your OS? Have you tried to switch to "Use local gradle distribution"?

0

I'm defining JAVA_HOME with a cmd.exe SET command -- see above. I start idea from the command line after JAVA_HOME has been defined.

I need some help with your second suggestion.

I'm trying to following these directions (https://www.jetbrains.com/help/idea/gradle-settings.html) but I don't see any check box for the local gradle distribution (see below).

Thanks

Siegfried

 


0

Siegfried,

You could find that option in "Import Project from Gradle" dialog.

 

0

"Use local gradle distribution" gives me the same results.

0

There is a related bug at https://youtrack.jetbrains.com/issue/IDEA-198301 .

Does it help if you delete IDE folders (https://intellij-support.jetbrains.com/hc/articles/206544519) and start over?

It may also help if you just delete the invalid SDKs in IntelliJ IDEA Project Structure dialog (if any).

0

 Please elaborate on "just delete invalid SDKs in Intelij IDEA Project Structure dialog". How do I do this?

OK, I renamed my file %USERPROFILE%\.IdeaIC2018.2 and started up idea again.

Since I'm using Lombok, I reinstalled that plug-in and took all the other defaults.

Maybe this is progress? See below for the log file when I click "Show Log". How do I use JDK instead of JRE for Gradle importer? JAVA_HOME is set to c:\Program Files\Java\jdk1.8.0_161.


When I click on "Open Gradle Settings" I see this:


 

Looks like I have java and javac working fine:

java -version
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)

javac -version
javac 1.8.0_161

 

 

 

Here are the contents of the log file:

 

2019-02-13 09:51:59,768 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2019-02-13 09:51:59,963 [ 195] INFO - #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IC-182.5107.41, 26 Nov 2018 11:59)
2019-02-13 09:51:59,963 [ 195] INFO - #com.intellij.idea.Main - OS: Windows 10 (10.0, amd64)
2019-02-13 09:51:59,963 [ 195] INFO - #com.intellij.idea.Main - JRE: 1.8.0_152-release-1248-b22 (JetBrains s.r.o)
2019-02-13 09:51:59,963 [ 195] INFO - #com.intellij.idea.Main - JVM: 25.152-b22 (OpenJDK 64-Bit Server VM)
2019-02-13 09:52:00,273 [ 505] 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 -Djdk.http.auth.tunneling.disabledSchemes="" -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djb.vmOptionsFile=c:\Users\shein\Documents\AppBin\Intellij\2018.2.6\bin\idea64.exe.vmoptions -Didea.platform.prefix=Idea -Didea.jre.check=true -Dide.native.launcher=true -Didea.paths.selector=IdeaIC2018.2 -XX:ErrorFile=C:\Users\shein\java_error_in_idea_%p.log -XX:HeapDumpPath=C:\Users\shein\java_error_in_idea.hprof
2019-02-13 09:52:00,274 [ 506] INFO - #com.intellij.idea.Main - ext: c:\Users\shein\Documents\AppBin\Intellij\2018.2.6\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]
2019-02-13 09:52:00,275 [ 507] INFO - #com.intellij.idea.Main - charsets: JNU=Cp1252 file=Cp1252
2019-02-13 09:52:00,579 [ 811] INFO - #com.intellij.idea.Main - JNA library (64-bit) loaded in 304 ms
2019-02-13 09:52:00,866 [ 1098] INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational
2019-02-13 09:52:03,028 [ 3260] INFO - #com.intellij.util.ui.JBUI - User scale factor: 1.0
2019-02-13 09:52:05,394 [ 5626] INFO - #com.intellij.util.ui.JBUI - System scale factor: 1.0 (JRE-managed HiDPI)
2019-02-13 09:52:21,238 [ 21470] INFO - tellij.openapi.util.IconLoader - replace '/nodes/newFolder.png' with 'AllIcons.Nodes.Folder'
2019-02-13 09:52:23,267 [ 23499] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor duplicates-groovy.xml
2019-02-13 09:52:26,297 [ 26529] INFO - m.intellij.ui.mac.touchbar.NST - OS doesn't support touchbar, skip nst loading
2019-02-13 09:54:07,373 [ 127605] INFO - .intellij.util.io.HttpRequests - Application is not initialized yet; Using default SSL configuration to connect to https://plugins.jetbrains.com/pluginManager/?action=download&id=org.intellij.scala&build=IC-182.5107.41&uuid=1165b0e9-e127-4bef-8d78-077cc9434bb1
2019-02-13 09:54:23,932 [ 144164] INFO - .intellij.util.io.HttpRequests - Application is not initialized yet; Using default SSL configuration to connect to https://plugins.jetbrains.com/pluginManager/?action=download&id=training&build=IC-182.5107.41&uuid=1165b0e9-e127-4bef-8d78-077cc9434bb1
2019-02-13 09:54:34,065 [ 154297] INFO - .intellij.idea.IdeaApplication - CPU cores: 4; ForkJoinPool.commonPool: java.util.concurrent.ForkJoinPool@636371ea[Running, parallelism = 3, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]; factory: com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory@3c30623a
2019-02-13 09:54:35,563 [ 155795] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor duplicates-groovy.xml
2019-02-13 09:54:36,037 [ 156269] INFO - llij.ide.plugins.PluginManager - 36 plugins initialized in 682 ms
2019-02-13 09:54:36,037 [ 156269] INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: Android Support (10.3.1.2), Ant Support (1.0), Bytecode Viewer (0.1), CVS Integration (11), Copyright (8.1), Coverage (182.5107.41), Eclipse Integration (3.0), EditorConfig (182.5107.41), Git Integration (8.1), GitHub (182.5107.41), Gradle (182.5107.41), Groovy (9.0), I18n for Java (182.5107.41), IDEA CORE (182.5107.41), IntelliLang (8.0), JUnit (1.0), Java Bytecode Decompiler (182.5107.41), Java Stream Debugger (182.5107.41), JavaFX (1.0), Kotlin (1.2.51-release-IJ2018.2-1), Maven Integration (182.5107.41), Mercurial Integration (10.0), Plugin DevKit (1.0), Properties Support (182.5107.41), Settings Repository (182.5107.41), Smali Support (1.0), Subversion Integration (1.1), Task Management (1.0), Terminal (0.1), TestNG-J (8.0), UI Designer (182.5107.41), XPathView + XSLT Support (4), XSLT-Debugger (1.4), YAML (182.5107.41)
2019-02-13 09:54:36,038 [ 156270] INFO - llij.ide.plugins.PluginManager - Loaded custom plugins: IDE Features Trainer (0.8.67), Scala (2018.2.11)
2019-02-13 09:54:53,090 [ 173322] INFO - ellij.vfs.persistent.FSRecords - Marking VFS as corrupted: 'C:\Users\shein\.IdeaIC2018.2\system\caches\names.dat' does not exist
2019-02-13 09:54:53,093 [ 173325] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=705
2019-02-13 09:54:53,197 [ 173429] INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: C:\Users\shein\Documents\AppBin\Intellij\2018.2.6\bin\fsnotifier64.exe
2019-02-13 09:54:53,300 [ 173532] INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational.
2019-02-13 09:54:56,551 [ 176783] INFO - .history.utils.LocalHistoryLog - local history version mismatch (was: 0, expected: 6), rebuilding...
2019-02-13 09:54:56,551 [ 176783] INFO - .history.utils.LocalHistoryLog - FS has been rebuild, rebuilding local history...
2019-02-13 09:54:56,724 [ 176956] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=1.0; restored: fontSize=12, fontScale=1.0
2019-02-13 09:54:57,067 [ 177299] INFO - til.net.ssl.CertificateManager - Default SSL context initialized
2019-02-13 09:54:57,470 [ 177702] INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342
2019-02-13 09:54:57,740 [ 177972] INFO - gs.impl.UpdateCheckerComponent - channel: release
2019-02-13 09:54:58,843 [ 179075] INFO - j.ide.ui.OptionsTopHitProvider - 1873 ms spent to cache options in application
2019-02-13 09:54:58,843 [ 179075] INFO - .openapi.application.Preloader - com.intellij.ide.ui.OptionsTopHitProvider$Activity took 1873 ms
2019-02-13 09:55:00,142 [ 180374] INFO - il.indexing.FileBasedIndexImpl - Index exts enumerated:2146, number of extensions:47
2019-02-13 09:55:01,874 [ 182106] INFO - il.indexing.FileBasedIndexImpl - Index scheduled:1731
2019-02-13 09:55:02,142 [ 182374] INFO - tellij.psi.stubs.StubIndexImpl - All stub exts enumerated:249, number of extensions:69
2019-02-13 09:55:02,167 [ 182399] INFO - tellij.psi.stubs.StubIndexImpl - stub exts update scheduled:24
2019-02-13 09:55:08,367 [ 188599] INFO - pi.util.registry.RegistryValue - Registry value 'SBT.system.in.process' has changed to 'true"
2019-02-13 09:55:11,074 [ 191306] INFO - ij.psi.stubs.StubUpdatingIndex - Following new file types will be indexed:kotlin_builtins,CLASS,Properties,Scala,XML,Groovy,JAVA,sbt,KJSM,Kotlin,HTML
2019-02-13 09:55:12,535 [ 192767] INFO - plication.impl.ApplicationImpl - 96 application components initialized in 37187ms
2019-02-13 09:55:12,572 [ 192804] INFO - .intellij.idea.IdeaApplication - App initialization took 198678 ms
2019-02-13 09:55:24,785 [ 205017] INFO - ellij.project.impl.ProjectImpl - 23 project components initialized in 10536 ms
2019-02-13 09:55:25,354 [ 205586] INFO - j.ide.ui.OptionsTopHitProvider - 6800 ms spent on EDT to cache options in application
2019-02-13 09:55:26,323 [ 206555] INFO - pl$FileIndexDataInitialization - Initialization done:24447
2019-02-13 09:55:26,373 [ 206605] INFO - dea.updater.SdkComponentSource - File C:\Users\shein\.android\repositories.cfg could not be loaded.
2019-02-13 09:55:26,385 [ 206617] INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/repository2-1.xml
2019-02-13 09:55:27,256 [ 207488] INFO - exImpl$StubIndexInitialization - Initialization done:932
2019-02-13 09:55:30,559 [ 210791] INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/addons_list-3.xml
2019-02-13 09:55:30,713 [ 210945] INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/sys-img/android/sys-img2-1.xml
2019-02-13 09:55:30,980 [ 211212] INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/sys-img/android-wear/sys-img2-1.xml
2019-02-13 09:55:31,119 [ 211351] INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/sys-img/android-wear-cn/sys-img2-1.xml
2019-02-13 09:55:31,261 [ 211493] INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/sys-img/android-tv/sys-img2-1.xml
2019-02-13 09:55:31,429 [ 211661] INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/sys-img/google_apis/sys-img2-1.xml
2019-02-13 09:55:31,627 [ 211859] INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/sys-img/google_apis_playstore/sys-img2-1.xml
2019-02-13 09:55:31,775 [ 212007] INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/addon2-1.xml
2019-02-13 09:55:32,243 [ 212475] INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/glass/addon2-1.xml
2019-02-13 09:55:32,368 [ 212600] INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/extras/intel/addon2-1.xml
2019-02-13 09:55:34,750 [ 214982] INFO - .openapi.application.Preloader - com.intellij.openapi.actionSystem.impl.ActionPreloader took 35906 ms
2019-02-13 09:55:37,575 [ 217807] INFO - .openapi.application.Preloader - com.intellij.ide.ui.search.SearchableOptionPreloader took 2824 ms
2019-02-13 09:55:39,162 [ 219394] INFO - .openapi.application.Preloader - com.intellij.codeInsight.completion.CompletionPreloader took 1587 ms
2019-02-13 09:55:39,220 [ 219452] INFO - .openapi.application.Preloader - com.intellij.ide.actions.GotoClassPresentationUpdater took 57 ms
2019-02-13 09:57:09,593 [ 309825] INFO - stubs.SerializationManagerImpl - START StubSerializationManager SHUTDOWN
2019-02-13 09:57:09,595 [ 309827] INFO - stubs.SerializationManagerImpl - END StubSerializationManager SHUTDOWN
2019-02-13 09:57:09,595 [ 309827] INFO - il.indexing.FileBasedIndexImpl - START INDEX SHUTDOWN
2019-02-13 09:57:09,618 [ 309850] INFO - il.indexing.FileBasedIndexImpl - END INDEX SHUTDOWN
2019-02-13 09:57:09,624 [ 309856] INFO - org.jetbrains.io.BuiltInServer - web server stopped
2019-02-13 09:57:09,629 [ 309861] INFO - Types.impl.FileTypeManagerImpl - FileTypeManager: 0 auto-detected files
Elapsed time on auto-detect: 0 ms
2019-02-13 09:57:09,655 [ 309887] INFO - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 0
2019-02-13 09:57:09,711 [ 309943] INFO - newvfs.persistent.PersistentFS - VFS dispose started
2019-02-13 09:57:09,713 [ 309945] INFO - newvfs.persistent.PersistentFS - VFS dispose completed
2019-02-13 09:57:09,714 [ 309946] INFO - #com.intellij.util.Restarter - restart: []
2019-02-13 09:57:10,323 [ 310555] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE SHUTDOWN ------------------------------------------------------
2019-02-13 09:57:10,327 [ 310559] INFO - org.jetbrains.io.BuiltInServer - web server stopped
2019-02-13 09:57:13,799 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2019-02-13 09:57:13,850 [ 51] INFO - #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IC-182.5107.41, 26 Nov 2018 11:13)
2019-02-13 09:57:13,850 [ 51] INFO - #com.intellij.idea.Main - OS: Windows 10 (10.0, amd64)
2019-02-13 09:57:13,851 [ 52] INFO - #com.intellij.idea.Main - JRE: 1.8.0_152-release-1248-b22 (JetBrains s.r.o)
2019-02-13 09:57:13,851 [ 52] INFO - #com.intellij.idea.Main - JVM: 25.152-b22 (OpenJDK 64-Bit Server VM)
2019-02-13 09:57:13,856 [ 57] 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 -Djdk.http.auth.tunneling.disabledSchemes="" -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djb.vmOptionsFile=c:\Users\shein\Documents\AppBin\Intellij\2018.2.6\bin\idea64.exe.vmoptions -Didea.platform.prefix=Idea -Didea.jre.check=true -Dide.native.launcher=true -Didea.paths.selector=IdeaIC2018.2 -XX:ErrorFile=C:\Users\shein\java_error_in_idea_%p.log -XX:HeapDumpPath=C:\Users\shein\java_error_in_idea.hprof
2019-02-13 09:57:13,856 [ 57] INFO - #com.intellij.idea.Main - ext: c:\Users\shein\Documents\AppBin\Intellij\2018.2.6\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]
2019-02-13 09:57:13,857 [ 58] INFO - #com.intellij.idea.Main - charsets: JNU=Cp1252 file=Cp1252
2019-02-13 09:57:13,979 [ 180] INFO - #com.intellij.idea.Main - JNA library (64-bit) loaded in 122 ms
2019-02-13 09:57:13,985 [ 186] INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational
2019-02-13 09:57:14,239 [ 440] INFO - #com.intellij.util.ui.JBUI - User scale factor: 1.0
2019-02-13 09:57:15,695 [ 1896] INFO - .intellij.idea.IdeaApplication - CPU cores: 4; ForkJoinPool.commonPool: java.util.concurrent.ForkJoinPool@fd949db[Running, parallelism = 3, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]; factory: com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory@2e4ec69
2019-02-13 09:57:15,822 [ 2023] INFO - #com.intellij.util.ui.JBUI - System scale factor: 1.0 (JRE-managed HiDPI)
2019-02-13 09:57:18,402 [ 4603] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor duplicates-groovy.xml
2019-02-13 09:57:19,804 [ 6005] INFO - llij.ide.plugins.PluginManager - 38 plugins initialized in 2400 ms
2019-02-13 09:57:19,805 [ 6006] INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: Android Support (10.3.1.2), Ant Support (1.0), Bytecode Viewer (0.1), CVS Integration (11), Copyright (8.1), Coverage (182.5107.41), Eclipse Integration (3.0), EditorConfig (182.5107.41), Git Integration (8.1), GitHub (182.5107.41), Gradle (182.5107.41), Groovy (9.0), I18n for Java (182.5107.41), IDEA CORE (182.5107.41), IntelliLang (8.0), JUnit (1.0), Java Bytecode Decompiler (182.5107.41), Java Stream Debugger (182.5107.41), JavaFX (1.0), Kotlin (1.2.51-release-IJ2018.2-1), Maven Integration (182.5107.41), Mercurial Integration (10.0), Plugin DevKit (1.0), Properties Support (182.5107.41), Settings Repository (182.5107.41), Smali Support (1.0), Subversion Integration (1.1), Task Management (1.0), Terminal (0.1), TestNG-J (8.0), UI Designer (182.5107.41), XPathView + XSLT Support (4), XSLT-Debugger (1.4), YAML (182.5107.41)
2019-02-13 09:57:19,807 [ 6008] INFO - llij.ide.plugins.PluginManager - Loaded custom plugins: IDE Features Trainer (0.8.67), Json2Pojo with Lombok (1.0), Lombok Plugin (0.23-2018.2), Scala (2018.2.11)
2019-02-13 09:57:26,280 [ 12481] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=705
2019-02-13 09:57:26,375 [ 12576] INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: C:\Users\shein\Documents\AppBin\Intellij\2018.2.6\bin\fsnotifier64.exe
2019-02-13 09:57:26,405 [ 12606] INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational.
2019-02-13 09:57:27,999 [ 14200] INFO - pi.util.registry.RegistryState - Registry values changed by user:
2019-02-13 09:57:27,999 [ 14200] INFO - pi.util.registry.RegistryState - SBT.system.in.process = true
2019-02-13 09:57:28,018 [ 14219] INFO - pi.util.registry.RegistryState - Experimental features enabled for user: inline.browse.button
2019-02-13 09:57:28,163 [ 14364] INFO - tellij.openapi.util.IconLoader - replace '/nodes/newFolder.png' with 'AllIcons.Nodes.Folder'
2019-02-13 09:57:30,334 [ 16535] INFO - til.net.ssl.CertificateManager - Default SSL context initialized
2019-02-13 09:57:30,450 [ 16651] INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342
2019-02-13 09:57:30,484 [ 16685] INFO - gs.impl.UpdateCheckerComponent - channel: release
2019-02-13 09:57:30,908 [ 17109] INFO - il.indexing.FileBasedIndexImpl - Index exts enumerated:325, number of extensions:48
2019-02-13 09:57:30,997 [ 17198] INFO - j.ide.ui.OptionsTopHitProvider - 895 ms spent to cache options in application
2019-02-13 09:57:30,997 [ 17198] INFO - .openapi.application.Preloader - com.intellij.ide.ui.OptionsTopHitProvider$Activity took 894 ms
2019-02-13 09:57:31,230 [ 17431] INFO - il.indexing.FileBasedIndexImpl - Index scheduled:322
2019-02-13 09:57:31,343 [ 17544] INFO - tellij.psi.stubs.StubIndexImpl - All stub exts enumerated:79, number of extensions:69
2019-02-13 09:57:31,345 [ 17546] INFO - tellij.psi.stubs.StubIndexImpl - stub exts update scheduled:1
2019-02-13 09:57:31,623 [ 17824] INFO - il.indexing.FileBasedIndexImpl - Version has changed for index filetypes. The index will be rebuilt.
2019-02-13 09:57:31,872 [ 18073] INFO - pi.util.registry.RegistryValue - Registry value 'SBT.system.in.process' has changed to 'true"
2019-02-13 09:57:31,971 [ 18172] INFO - plication.impl.ApplicationImpl - 96 application components initialized in 14575ms
2019-02-13 09:57:31,996 [ 18197] INFO - .intellij.idea.IdeaApplication - App initialization took 20094 ms
2019-02-13 09:57:33,338 [ 19539] INFO - m.intellij.ui.mac.touchbar.NST - OS doesn't support touchbar, skip nst loading
2019-02-13 09:57:33,880 [ 20081] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=1.0; restored: fontSize=12, fontScale=1.0
2019-02-13 09:57:34,366 [ 20567] INFO - il.indexing.FileBasedIndexImpl - Version has changed for index IdIndex. The index will be rebuilt.
2019-02-13 09:57:34,757 [ 20958] INFO - j.ide.ui.OptionsTopHitProvider - 1259 ms spent on EDT to cache options in application
2019-02-13 09:57:36,052 [ 22253] INFO - pl$FileIndexDataInitialization - Initialization done:4813
2019-02-13 09:57:36,701 [ 22902] INFO - exImpl$StubIndexInitialization - Initialization done:649
2019-02-13 09:57:37,213 [ 23414] INFO - .openapi.application.Preloader - com.intellij.openapi.actionSystem.impl.ActionPreloader took 6207 ms
2019-02-13 09:57:37,966 [ 24167] INFO - ellij.project.impl.ProjectImpl - 23 project components initialized in 346 ms
2019-02-13 09:57:41,965 [ 28166] INFO - .openapi.application.Preloader - com.intellij.ide.ui.search.SearchableOptionPreloader took 4752 ms
2019-02-13 09:57:42,479 [ 28680] INFO - .openapi.application.Preloader - com.intellij.codeInsight.completion.CompletionPreloader took 512 ms
2019-02-13 09:57:42,488 [ 28689] INFO - .openapi.application.Preloader - com.intellij.ide.actions.GotoClassPresentationUpdater took 9 ms
2019-02-13 09:59:05,530 [ 111731] INFO - CompilerWorkspaceConfiguration - Available processors: 4
2019-02-13 09:59:07,034 [ 113235] INFO - ellij.project.impl.ProjectImpl - 199 project components initialized in 3849 ms
2019-02-13 09:59:07,722 [ 113923] INFO - le.impl.ModuleManagerComponent - 1 module(s) loaded in 686 ms
2019-02-13 09:59:08,404 [ 114605] INFO - j.ide.script.IdeStartupScripts - 0 startup script(s) found
2019-02-13 09:59:25,237 [ 131438] INFO - rojectCodeStyleSettingsManager - Initialized from default code style settings.
2019-02-13 09:59:25,405 [ 131606] INFO - ing.migration.MigrationManager - Adding lesson states from previous version (0.7.49) of trainingPlugin / IDE Features Trainer from xml file: trainingPlugin
2019-02-13 09:59:27,787 [ 133988] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 461ms; general responsiveness: ok; EDT responsiveness: ok
2019-02-13 09:59:28,238 [ 134439] INFO - tartup.impl.StartupManagerImpl - EditorHistoryManagerStartUpActivity run in 788ms under project opening modal progress
2019-02-13 09:59:33,165 [ 139366] INFO - tartup.impl.StartupManagerImpl - OpenFilesActivity run in 4905ms under project opening modal progress
2019-02-13 09:59:33,437 [ 139638] INFO - ge.ExternalProjectsDataStorage - Loaded external projects data in 36 millis
2019-02-13 09:59:33,441 [ 139642] INFO - tartup.impl.StartupManagerImpl - ExternalSystemStartupActivity run in 236ms under project opening modal progress
2019-02-13 09:59:33,554 [ 139755] INFO - tartup.impl.StartupManagerImpl - ReprocessContentRootDataActivity run in 110ms under project opening modal progress
2019-02-13 09:59:33,668 [ 139869] INFO - .diagnostic.PerformanceWatcher - Post-startup activities under progress took 6866ms; general responsiveness: ok; EDT responsiveness: 1/6 sluggish, 2/6 very slow
2019-02-13 09:59:38,499 [ 144700] INFO - tartup.impl.StartupManagerImpl - C:/Users/shein/Documents/Books/2018/java/spring/AppDevSpring5Angular6/code/ch03-Mongo-CRUD/pet-store/pet-store.ipr case-sensitivity: expected=false actual=false
2019-02-13 09:59:38,526 [ 144727] INFO - pl.projectlevelman.NewMappings - VCS Root: [] - [<Project>]
2019-02-13 09:59:40,402 [ 146603] INFO - tor.impl.FileEditorManagerImpl - Project opening took 37245 ms
2019-02-13 09:59:42,464 [ 148665] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 14673ms; general responsiveness: ok; EDT responsiveness: 3/15 sluggish, 8/15 very slow
2019-02-13 09:59:42,487 [ 148688] INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 36313 files to update
2019-02-13 10:00:56,944 [ 223145] INFO - .diagnostic.PerformanceWatcher - Unindexed files update took 74457ms; general responsiveness: 0/73 sluggish, 1/73 very slow; EDT responsiveness: 1/73 sluggish, 1/73 very slow
2019-02-13 10:01:01,074 [ 227275] INFO - j.ide.ui.OptionsTopHitProvider - 4079 ms spent to cache options in project
2019-02-13 10:01:01,074 [ 227275] INFO - tartup.impl.StartupManagerImpl - Some post-startup activities freeze UI for noticeable time. Please consider making them DumbAware to do them in background under modal progress, or just making them faster to speed up project opening.
2019-02-13 10:01:01,074 [ 227275] INFO - tartup.impl.StartupManagerImpl - Activity run in 4079ms on UI thread
2019-02-13 10:01:01,277 [ 227478] INFO - tartup.impl.StartupManagerImpl - ProjectInspectionProfileStartUpActivity run in 201ms on UI thread
2019-02-13 10:01:01,366 [ 227567] INFO - j.ide.plugins.RepositoryHelper - using cached plugin list (updated at 2/13/2019 9:56 AM)
2019-02-13 10:01:01,763 [ 227964] INFO - tartup.impl.StartupManagerImpl - GradleJvmStartupActivity run in 316ms on UI thread
2019-02-13 10:01:01,909 [ 228110] INFO - tartup.impl.StartupManagerImpl - GradleProjectStartupActivity run in 145ms on UI thread
2019-02-13 10:01:02,060 [ 228261] INFO - tartup.impl.StartupManagerImpl - MaintenanceActivity run in 149ms on UI thread
2019-02-13 10:01:05,278 [ 231479] INFO - j.ide.ui.OptionsTopHitProvider - 673 ms spent on EDT to cache options in project
2019-02-13 10:01:09,919 [ 236120] INFO - ScriptTemplatesProviders - [kts] loading script definitions [] using cp:
2019-02-13 10:02:10,992 [ 297193] WARN - nal.AbstractExternalSystemTask - Please, use JDK instead of JRE for Gradle importer. <a href='#open_external_system_settings'>Open Gradle Settings</a>

com.intellij.openapi.externalSystem.service.execution.ExternalSystemJdkException: Please, use JDK instead of JRE for Gradle importer. <a href='#open_external_system_settings'>Open Gradle Settings</a>

at org.jetbrains.plugins.gradle.service.GradleInstallationManager.doGetGradleJdk(GradleInstallationManager.java:173)
at org.jetbrains.plugins.gradle.service.GradleInstallationManager.getGradleJdk(GradleInstallationManager.java:139)
at org.jetbrains.plugins.gradle.GradleManager.lambda$getExecutionSettingsProvider$2(GradleManager.java:213)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil.getExecutionSettings(ExternalSystemApiUtil.java:735)
at com.intellij.openapi.externalSystem.service.ExternalSystemFacadeManager.doCreateFacade(ExternalSystemFacadeManager.java:201)
at com.intellij.openapi.externalSystem.service.ExternalSystemFacadeManager.doGetFacade(ExternalSystemFacadeManager.java:177)
at com.intellij.openapi.externalSystem.service.ExternalSystemFacadeManager.doInvoke(ExternalSystemFacadeManager.java:132)
at com.intellij.openapi.externalSystem.service.ExternalSystemFacadeManager$MyHandler.invoke(ExternalSystemFacadeManager.java:269)
at com.sun.proxy.$Proxy130.getResolver(Unknown Source)
at com.intellij.openapi.externalSystem.service.internal.ExternalSystemResolveProjectTask.doExecute(ExternalSystemResolveProjectTask.java:84)
at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:163)
at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:149)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$3.execute(ExternalSystemUtil.java:569)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$4.run(ExternalSystemUtil.java:665)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:736)
at com.intellij.openapi.progress.impl.CoreProgressManager$5.run(CoreProgressManager.java:434)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:580)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$null$10(ApplicationImpl.java:574)
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-02-13 10:02:11,011 [ 297212] INFO - System.util.ExternalSystemUtil - External project [C:/Users/shein/Documents/Books/2018/java/spring/AppDevSpring5Angular6/code/ch02-hbm2java/searchapp-dataservice] resolution task executed in 2666 ms.
2019-02-13 10:03:37,599 [ 383800] WARN - nal.AbstractExternalSystemTask - Please, use JDK instead of JRE for Gradle importer. <a href='#open_external_system_settings'>Open Gradle Settings</a>

com.intellij.openapi.externalSystem.service.execution.ExternalSystemJdkException: Please, use JDK instead of JRE for Gradle importer. <a href='#open_external_system_settings'>Open Gradle Settings</a>

at org.jetbrains.plugins.gradle.service.GradleInstallationManager.doGetGradleJdk(GradleInstallationManager.java:173)
at org.jetbrains.plugins.gradle.service.GradleInstallationManager.getGradleJdk(GradleInstallationManager.java:139)
at org.jetbrains.plugins.gradle.GradleManager.lambda$getExecutionSettingsProvider$2(GradleManager.java:213)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil.getExecutionSettings(ExternalSystemApiUtil.java:735)
at com.intellij.openapi.externalSystem.service.ExternalSystemFacadeManager.doCreateFacade(ExternalSystemFacadeManager.java:201)
at com.intellij.openapi.externalSystem.service.ExternalSystemFacadeManager.doGetFacade(ExternalSystemFacadeManager.java:177)
at com.intellij.openapi.externalSystem.service.ExternalSystemFacadeManager.doInvoke(ExternalSystemFacadeManager.java:132)
at com.intellij.openapi.externalSystem.service.ExternalSystemFacadeManager$MyHandler.invoke(ExternalSystemFacadeManager.java:269)
at com.sun.proxy.$Proxy130.getResolver(Unknown Source)
at com.intellij.openapi.externalSystem.service.internal.ExternalSystemResolveProjectTask.doExecute(ExternalSystemResolveProjectTask.java:84)
at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:163)
at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:149)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$3.execute(ExternalSystemUtil.java:569)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$4.run(ExternalSystemUtil.java:665)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:736)
at com.intellij.openapi.progress.impl.CoreProgressManager$5.run(CoreProgressManager.java:434)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:580)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$null$10(ApplicationImpl.java:574)
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-02-13 10:03:37,600 [ 383801] INFO - System.util.ExternalSystemUtil - External project [C:/Users/shein/Documents/Books/2018/java/spring/AppDevSpring5Angular6/code/ch02-hbm2java/searchapp-dataservice] resolution task executed in 21 ms.
2019-02-13 10:03:47,382 [ 393583] WARN - rowsers.BrowserLauncherAppless - Error while using Desktop API, fallback to CLI
java.io.IOException: Failed to open file:///c:%5CUsers%5Cshein%5CDocuments%5CBooks%5C2018%5Cjava%5Cspring%5CAppDevSpring5Angular6%5Ccode%5Cch04-follow-along%5Cpet-store%5Csrc%5Cmain%5Cjava%5Ccom%5Cpackt%5Cpetstore%5Ccontroller%5C#open_external_system_settings. Error message: The system cannot find the file specified.

at sun.awt.windows.WDesktopPeer.ShellExecute(WDesktopPeer.java:90)
at sun.awt.windows.WDesktopPeer.browse(WDesktopPeer.java:76)
at java.awt.Desktop.browse(Desktop.java:386)
at com.intellij.ide.browsers.BrowserLauncherAppless.openOrBrowse(BrowserLauncherAppless.kt:147)
at com.intellij.ide.browsers.BrowserLauncherAppless.openOrBrowse$default(BrowserLauncherAppless.kt:101)
at com.intellij.ide.browsers.BrowserLauncherAppless.browse(BrowserLauncherAppless.kt:94)
at com.intellij.ide.browsers.BrowserLauncherAppless.openOrBrowse(BrowserLauncherAppless.kt:131)
at com.intellij.ide.browsers.BrowserLauncherAppless.browse(BrowserLauncherAppless.kt:175)
at com.intellij.ide.browsers.BrowserLauncher.browse(BrowserLauncher.kt:43)
at com.intellij.ide.BrowserUtil.browse(BrowserUtil.java:77)
at com.intellij.ui.BrowserHyperlinkListener.hyperlinkActivated(BrowserHyperlinkListener.java:30)
at com.intellij.ui.HyperlinkAdapter.hyperlinkUpdate(HyperlinkAdapter.java:28)
at javax.swing.JEditorPane.fireHyperlinkUpdate(JEditorPane.java:342)
at javax.swing.text.html.HTMLEditorKit$LinkController.activateLink(HTMLEditorKit.java:875)
at javax.swing.text.html.HTMLEditorKit$LinkController.mouseClicked(HTMLEditorKit.java:674)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
at java.awt.Component.processMouseEvent(Component.java:6551)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3325)
at java.awt.Component.processEvent(Component.java:6313)
at java.awt.Container.processEvent(Container.java:2237)
at java.awt.Component.dispatchEventImpl(Component.java:4903)
at java.awt.Container.dispatchEventImpl(Container.java:2295)
at java.awt.Component.dispatchEvent(Component.java:4725)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
at java.awt.Container.dispatchEventImpl(Container.java:2281)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4725)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
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.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.awt.EventQueue$4.run(EventQueue.java:735)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:781)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:718)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233)
at java.awt.Dialog.show(Dialog.java:1077)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:698)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:430)
at com.intellij.openapi.ui.DialogWrapper.invokeShow(DialogWrapper.java:1690)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1639)
at com.intellij.openapi.ui.messages.MessageDialog.show(MessageDialog.java:181)
at com.intellij.ui.messages.MessagesServiceImpl.showMessageDialog(MessagesServiceImpl.java:63)
at com.intellij.openapi.ui.Messages.showDialog(Messages.java:261)
at com.intellij.openapi.ui.Messages.showErrorDialog(Messages.java:809)
at com.intellij.ide.util.newProjectWizard.AbstractProjectWizard.commitStepData(AbstractProjectWizard.java:250)
at com.intellij.ide.util.newProjectWizard.AbstractProjectWizard.doFinishAction(AbstractProjectWizard.java:201)
at com.intellij.ide.util.newProjectWizard.AbstractProjectWizard.doOKAction(AbstractProjectWizard.java:183)
at com.intellij.ide.wizard.AbstractWizard.access$200(AbstractWizard.java:50)
at com.intellij.ide.wizard.AbstractWizard$5.actionPerformed(AbstractWizard.java:195)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6548)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3325)
at java.awt.Component.processEvent(Component.java:6313)
at java.awt.Container.processEvent(Container.java:2237)
at java.awt.Component.dispatchEventImpl(Component.java:4903)
at java.awt.Container.dispatchEventImpl(Container.java:2295)
at java.awt.Component.dispatchEvent(Component.java:4725)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
at java.awt.Container.dispatchEventImpl(Container.java:2281)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4725)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
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.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.awt.EventQueue$4.run(EventQueue.java:735)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:781)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:718)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233)
at java.awt.Dialog.show(Dialog.java:1077)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:698)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:430)
at com.intellij.openapi.ui.DialogWrapper.invokeShow(DialogWrapper.java:1690)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1639)
at com.intellij.openapi.ui.DialogWrapper.showAndGet(DialogWrapper.java:1654)
at org.jetbrains.plugins.gradle.service.project.wizard.GradleJavaProjectOpenProcessor.doQuickImport(GradleJavaProjectOpenProcessor.java:88)
at com.intellij.projectImport.ProjectOpenProcessorBase.doOpenProject(ProjectOpenProcessorBase.java:127)
at com.intellij.ide.impl.ProjectUtil.openOrImport(ProjectUtil.java:131)
at com.intellij.ide.actions.OpenFileAction.doOpenFile(OpenFileAction.java:111)
at com.intellij.ide.actions.OpenFileAction.lambda$prepareFileChooserAndOpen$1(OpenFileAction.java:66)
at com.intellij.openapi.fileChooser.ex.FileChooserDialogImpl.choose(FileChooserDialogImpl.java:145)
at com.intellij.openapi.fileChooser.FileChooser.chooseFiles(FileChooser.java:114)
at com.intellij.openapi.fileChooser.FileChooser.chooseFiles(FileChooser.java:91)
at com.intellij.ide.actions.OpenFileAction.prepareFileChooserAndOpen(OpenFileAction.java:58)
at com.intellij.ide.actions.OpenFileAction.lambda$actionPerformed$0(OpenFileAction.java:44)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:315)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:447)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:431)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:415)
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.defaultDispatchEvent(IdeEventQueue.java:781)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:722)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
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)

0

Please try to install the latest IDEA version (2018.3.4). Mentioned errors should be fixed there.

0

Please also try if the following workarounds help:

- try to set the JDK in Import project wizard explicitly as 1.8 JDK that you have added to IDE (do not select "Use Project JDK").

- try to remove all other JDKs that you have added in IDE and leave only 1.8 JDK (File | Project Structure | SDKs page)

- try starting IDE with default settings (rename/remove IDE config and plugins folder)

1

OK, problem was finally resolved.... 

That error message from IDEA was not very helpful. 

I had been curious about IDEA finding my JDK and assumed that it had looked at my JAVA_HOME because it was using some javac to compile my code when I used "./gradlew openIdea" and opened that directory in idea.

So eventually I clicked on something (can someone tell me where I clicked?) and specified (using the find file dialog box) the value already stored in JAVA_HOME.

Now when I open a gradle file as a project, I don't get that misleading error message. What a struggle! 

Thanks

Siegfried

0

Sieg,

There are two places where you could set JVM- "File | Settings | Build, Execution, Deployment | Build Tools | Gradle" and "Project Structure | Project"

 

0

I encountered this problem on a fresh machine with IDEA 2018.3.4; I had imported settings from another machine. Removing and re-adding the SDKs from "Project Structure | Project | Platform Settings | SDKs" fixed things for me, definitely some sort of UX bug here that needs looking at as that message makes no sense.

1

Please sign in to leave a comment.