Inspections (Intellij IDEA) - DefaultTeamCityJDK not found

I' trying to get the Inspections (Intellij IDEA) to run under Macos X Yosemite, but whatever I do, it fails with the error:

[12:28:18]W: [Inspection output] The JDK is not configured properly for this project. Inspection cannot proceed.
[12:28:18]W: [Inspection output] DefaultTeamCityJDK not found

The build step is configured as a maven project. If I select to run the build step as a Intellj Project I get a simular error but DefaultTeamCityJDK is replaced with 1.8.

Any ideas?

Full log output

[12:28:10]i: TeamCity server version is 9.0 (build 32060)
[12:28:10] : Checking for changes (running for 8s)
[12:28:10] : Collecting changes in 1 VCS root
[12:28:10] :  [Collecting changes in 1 VCS root] VCS Root details
[12:28:10] :  [VCS Root details] "andromeda" {instance id=3, parent internal id=1, parent id=Andromeda_Andromed, description: "/git/andromeda.git#refs/heads/sestemla"}
[12:28:10]i:  [Collecting changes in 1 VCS root] Waiting for completion of current operations for the VCS root 'andromeda'
[12:28:10]i:  [Collecting changes in 1 VCS root] Detecting changes in VCS root 'andromeda' (used in buildProject)
[12:28:10]i:  [Collecting changes in 1 VCS root] Will collect changes for 'andromeda' starting from revision d0eb42c05ca3a6344ae71f034a341efcd3bd5a48
[12:28:10]i: Agent time zone: Europe/Stockholm
[12:28:10]i: Agent is running under JRE: 1.8.0_25-b17
[12:28:10] : Publishing internal artifacts
[12:28:10] :  [Publishing internal artifacts] Sending using ArtifactsCachePublisher
[12:28:10] :  [Publishing internal artifacts] Sending using WebPublisher
[12:28:10] : Clearing temporary directory: /Applications/TeamCity/buildAgent/temp/buildTmp
[12:28:10] : Checkout directory: /Applications/TeamCity/buildAgent/work/b7f077d0b7807ad0
[12:28:10] : Updating sources: server side checkout
[12:28:10] :  [Updating sources] Using vcs information from agent file: b7f077d0b7807ad0.xml
[12:28:10] :  [Updating sources] Building incremental patch for VCS root: andromeda; checkout rules: =>; revision: d0eb42c05ca3a6344ae71f034a341efcd3bd5a48 --> d0eb42c05ca3a6344ae71f034a341efcd3bd5a48
[12:28:10] :  [Updating sources] Repository sources transferred
[12:28:10]i: ##teamcity[buildStatisticValue key='buildStageDuration:sourcesUpdate' value='29.0']
[12:28:10] : Build preparation done
[12:28:10]E: Step 1/1: Inspections (IntelliJ IDEA) (8s)
[12:28:10]i:  [Step 1/1] ##teamcity[buildStatisticValue key='buildStageDuration:firstStepPreparation' value='31.0']
[12:28:10]i:  [Step 1/1] ##teamcity[buildStatisticValue key='buildStageDuration:buildStepRUNNER_4' value='0.0']
[12:28:10] :  [Step 1/1] Initialization
[12:28:10] :  [Step 1/1] Starting: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java -Dagent.home.dir=/Applications/TeamCity/buildAgent -Dagent.name=Build Agent 1 -Dagent.ownPort=9090 -Dagent.work.dir=/Applications/TeamCity/buildAgent/work -Dbuild.number=32 -Dbuild.vcs.number=d0eb42c05ca3a6344ae71f034a341efcd3bd5a48 -Dbuild.vcs.number.1=d0eb42c05ca3a6344ae71f034a341efcd3bd5a48 -Dbuild.vcs.number.Andromeda_Andromed=d0eb42c05ca3a6344ae71f034a341efcd3bd5a48 -Didea.build.agent.port=9090 -Didea.config.path=/Applications/TeamCity/buildAgent/temp/buildTmp/config -Didea.home.path=/Applications/TeamCity/buildAgent/tools/idea -Didea.jars.nocopy=true -Didea.no.jdk.check=true -Didea.plugins.path=/Applications/TeamCity/buildAgent/tools/idea/plugins -Didea.system.path=/Applications/TeamCity/buildAgent/system/.intellij_idea/b7f077d0b7807ad0/system -Djava.awt.headless=true -Djava.io.tmpdir=/Applications/TeamCity/buildAgent/temp/buildTmp -Djava.library.path=/Applications/TeamCity/buildAgent/tools/idea/bin -Dnewlocalvcs.disabled=true -Dteamcity.agent.cpuBenchmark=684 -Dteamcity.agent.dotnet.agent_url=http://localhost:9090/RPC2 -Dteamcity.agent.dotnet.build_id=66 -Dteamcity.auth.password=oMZABBAxIIGS0y88MALeyz3bnBEOyHHY -Dteamcity.auth.userId=TeamCityBuildId=66 -Dteamcity.build.changedFiles.file=/Applications/TeamCity/buildAgent/temp/buildTmp/changedFiles2974743680788783527.txt -Dteamcity.build.checkoutDir=/Applications/TeamCity/buildAgent/work/b7f077d0b7807ad0 -Dteamcity.build.id=66 -Dteamcity.build.properties.file=/Applications/TeamCity/buildAgent/temp/buildTmp/teamcity.build9220145070376727739.properties -Dteamcity.build.tempDir=/Applications/TeamCity/buildAgent/temp/buildTmp -Dteamcity.build.workingDir=/Applications/TeamCity/buildAgent/work/b7f077d0b7807ad0 -Dteamcity.buildConfName=buildProject -Dteamcity.buildType.id=Andromeda_BuildProject -Dteamcity.configuration.properties.file=/Applications/TeamCity/buildAgent/temp/buildTmp/teamcity.config1287325969254618518.properties -Dteamcity.projectName=andromeda -Dteamcity.runner.properties.file=/Applications/TeamCity/buildAgent/temp/buildTmp/teamcity.runner3709250818762290860.properties -Dteamcity.tests.recentlyFailedTests.file=/Applications/TeamCity/buildAgent/temp/buildTmp/testsToRunFirst2861591760171394877.txt -Dteamcity.version=9.0 (build 32060) -Xmx512m -XX:MaxPermSize=150m -Xbootclasspath/p:/Applications/TeamCity/buildAgent/tools/idea/lib/boot.jar -classpath /Library/Java/Home/lib/tools.jar:/Applications/TeamCity/buildAgent/tools/idea/lib/bootstrap.jar:/Applications/TeamCity/buildAgent/tools/idea/lib/extensions.jar:/Applications/TeamCity/buildAgent/tools/idea/lib/openapi.jar:/Applications/TeamCity/buildAgent/tools/idea/lib/util.jar:/Applications/TeamCity/buildAgent/tools/idea/lib/jdom.jar:/Applications/TeamCity/buildAgent/tools/idea/lib/log4j.jar:/Applications/TeamCity/buildAgent/tools/idea/lib/trove4j.jar:/Applications/TeamCity/buildAgent/tools/idea/lib/jna.jar com.intellij.idea.Main inspect /Applications/TeamCity/buildAgent/work/b7f077d0b7807ad0/andromeda/pom.xml project /Applications/TeamCity/buildAgent/temp/buildTmp/inspection3425071558020388843result -e -v3
[12:28:10] :  [Step 1/1] in directory: /Applications/TeamCity/buildAgent/work/b7f077d0b7807ad0
[12:28:11]W:  [Step 1/1] Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=150m; support was removed in 8.0
[12:28:14] :  [Step 1/1] Starting up IntelliJ IDEA 14.0.2 ...done.
[12:28:18] :  [Step 1/1] Opening project...done.
[12:28:18]W:  [Step 1/1] Using default project profile
[12:28:18] :  [Step 1/1] Initializing project...done.
[12:28:18]W:  [Step 1/1] The JDK is not configured properly for this project. Inspection cannot proceed.
[12:28:18]W:  [Step 1/1] DefaultTeamCityJDK not found
[12:28:18]W:  [Step 1/1] Process exited with code 1
[12:28:18]W:  [Step 1/1] Inspection output
[12:28:18]W:  [Inspection output] Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=150m; support was removed in 8.0
[12:28:18]W:  [Inspection output] Starting up IntelliJ IDEA 14.0.2 ...done.
[12:28:18]W:  [Inspection output] Opening project...done.
[12:28:18]W:  [Inspection output] Using default project profile
[12:28:18]W:  [Inspection output] Initializing project...done.
[12:28:18]W:  [Inspection output] The JDK is not configured properly for this project. Inspection cannot proceed.
[12:28:18]W:  [Inspection output] DefaultTeamCityJDK not found
[12:28:18]i:  [Step 1/1] ##teamcity[buildStatisticValue key='buildStageDuration:buildStepRUNNER_4' value='7995.0']
[12:28:18]E:  [Step 1/1] Step Inspections (IntelliJ IDEA) failed
[12:28:18]i: ##teamcity[buildStatisticValue key='buildStageDuration:buildFinishing' value='3.0']
[12:28:18] : Publishing internal artifacts
[12:28:18] :  [Publishing internal artifacts] Sending using ArtifactsCachePublisher
[12:28:18] :  [Publishing internal artifacts] Sending using WebPublisher
[12:28:18]i: ##teamcity[buildStatisticValue key='buildStageDuration:artifactsPublishing' value='36.0']
[12:28:18] : Build finished

2 comments
Comment actions Permalink

Did you try clicking "Check/reparse" button on Inspections build step and customize JDK paths once the process finishes?

0
Comment actions Permalink

Well, this is a maven project and that button is not available when maven is selected as project file type.

But I have tried to run this build set as a Intellij IDEA project and clicked that button. But no luck - se log below. Instead I get "Please, specify sdk 'jdk1.8.0_25.jdk' for module 'andromeda'" and the value jdk1.8.0_25.jdk is the value I have specified for system.path.micro.idea.sdk.name. I'm not sure if jdk1.8.0_25.jdk is the correct value, a jdk with that name is located in /Library/Java/JavaVirtualMachines/.

For setup info, see attached screenshots.

But I have discovered that the buildstep works perfectly (build step configured as a maven project file type) if the build agent is running on linux. So its must be macos related.

[12:34:21]Checking for changes
[12:34:22]Publishing internal artifacts
[12:34:22]Clearing temporary directory: /Volumes/Projects/TeamCity/buildAgent/temp/buildTmp
[12:34:22]Checkout directory: /Volumes/Projects/TeamCity/buildAgent/work/37d8ccda44e664dd
[12:34:22]Updating sources: server side checkout
[12:34:22]Step 1/3: Maven
[12:34:22]Step 2/3: Inspections (IntelliJ IDEA) (10s)
[12:34:22][Step 2/3] Initialization
[12:34:22][Step 2/3] Starting: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java -Dagent.home.dir=/Volumes/Projects/TeamCity/buildAgent -Dagent.name=Default Agent -Dagent.ownPort=9090 -Dagent.work.dir=/Volumes/Projects/TeamCity/buildAgent/work -Dbuild.number=6 -Dbuild.vcs.number=d0eb42c05ca3a6344ae71f034a341efcd3bd5a48 -Dbuild.vcs.number.1=d0eb42c05ca3a6344ae71f034a341efcd3bd5a48 -Dbuild.vcs.number.AndromedaLocal_Local=d0eb42c05ca3a6344ae71f034a341efcd3bd5a48 -Dglobal.library.JsTestDriver.Assertion.Framework.path=b -Dglobal.library.jquery.2.0.3.path=a -Dglobal.library.modernizr.path=c -Dglobal.library.qunit.1.12.0.path=d -Didea.build.agent.port=9090 -Didea.config.path=/Volumes/Projects/TeamCity/buildAgent/temp/buildTmp/config -Didea.home.path=/Volumes/Projects/TeamCity/buildAgent/tools/idea -Didea.jars.nocopy=true -Didea.no.jdk.check=true -Didea.plugins.path=/Volumes/Projects/TeamCity/buildAgent/tools/idea/plugins -Didea.system.path=/Volumes/Projects/TeamCity/buildAgent/system/.intellij_idea/37d8ccda44e664dd/system -Djava.awt.headless=true -Djava.io.tmpdir=/Volumes/Projects/TeamCity/buildAgent/temp/buildTmp -Djava.library.path=/Volumes/Projects/TeamCity/buildAgent/tools/idea/bin -Dnewlocalvcs.disabled=true -Dpath.macro.MAVEN.REPOSITORY=~/.m2/ -Dpath.macro.idea.sdk.name=jdk1.8.0_25.jdk -Dteamcity.agent.cpuBenchmark=581 -Dteamcity.agent.dotnet.agent_url=http://localhost:9090/RPC2 -Dteamcity.agent.dotnet.build_id=6 -Dteamcity.auth.password=rDkmwaflHoQNvGTdQt0sFy8aZQsMaCvp -Dteamcity.auth.userId=TeamCityBuildId=6 -Dteamcity.build.changedFiles.file=/Volumes/Projects/TeamCity/buildAgent/temp/buildTmp/changedFiles1505807435586646524.txt -Dteamcity.build.checkoutDir=/Volumes/Projects/TeamCity/buildAgent/work/37d8ccda44e664dd -Dteamcity.build.id=6 -Dteamcity.build.properties.file=/Volumes/Projects/TeamCity/buildAgent/temp/buildTmp/teamcity.build7000868129493522932.properties -Dteamcity.build.tempDir=/Volumes/Projects/TeamCity/buildAgent/temp/buildTmp -Dteamcity.build.workingDir=/Volumes/Projects/TeamCity/buildAgent/work/37d8ccda44e664dd -Dteamcity.buildConfName=testBuild -Dteamcity.buildType.id=AndromedaLocal_TestBuild -Dteamcity.configuration.properties.file=/Volumes/Projects/TeamCity/buildAgent/temp/buildTmp/teamcity.config4126251670136654292.properties -Dteamcity.projectName=andromedaLocal -Dteamcity.runner.properties.file=/Volumes/Projects/TeamCity/buildAgent/temp/buildTmp/teamcity.runner2149086841794739831.properties -Dteamcity.tests.recentlyFailedTests.file=/Volumes/Projects/TeamCity/buildAgent/temp/buildTmp/testsToRunFirst9179811939036308264.txt -Dteamcity.version=8.1.5 (build 30240) -Xmx512m -Xbootclasspath/p:/Volumes/Projects/TeamCity/buildAgent/tools/idea/lib/boot.jar -classpath /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/tools.jar:/Volumes/Projects/TeamCity/buildAgent/tools/idea/lib/bootstrap.jar:/Volumes/Projects/TeamCity/buildAgent/tools/idea/lib/extensions.jar:/Volumes/Projects/TeamCity/buildAgent/tools/idea/lib/openapi.jar:/Volumes/Projects/TeamCity/buildAgent/tools/idea/lib/util.jar:/Volumes/Projects/TeamCity/buildAgent/tools/idea/lib/jdom.jar:/Volumes/Projects/TeamCity/buildAgent/tools/idea/lib/log4j.jar:/Volumes/Projects/TeamCity/buildAgent/tools/idea/lib/trove4j.jar:/Volumes/Projects/TeamCity/buildAgent/tools/idea/lib/jna.jar com.intellij.idea.Main inspect /Volumes/Projects/TeamCity/buildAgent/work/37d8ccda44e664dd/andromeda project /Volumes/Projects/TeamCity/buildAgent/temp/buildTmp/inspection4721507643374085416result -profilePath /Volumes/Projects/TeamCity/buildAgent/work/37d8ccda44e664dd/buildServer/inspectionProfiles/Andromeda.xml -v3
[12:34:22][Step 2/3] in directory: /Volumes/Projects/TeamCity/buildAgent/work/37d8ccda44e664dd
[12:34:27][Step 2/3] Starting up IntelliJ IDEA 13.1.3 ...done.
[12:34:32][Step 2/3] Opening project...done.
[12:34:32][Step 2/3] Initializing project...Loaded profile 'Andromeda' from file '/Volumes/Projects/TeamCity/buildAgent/work/37d8ccda44e664dd/buildServer/inspectionProfiles/Andromeda.xml'
[12:34:32][Step 2/3] done.
[12:34:32][Step 2/3] Inspecting with profile 'Andromeda'
[12:34:32][Step 2/3] Please, specify sdk 'jdk1.8.0_25.jdk' for module 'andromeda'
[12:34:33][Step 2/3] Process exited with code 1
[12:34:33][Step 2/3] Inspection output
[12:34:33]Starting up IntelliJ IDEA 13.1.3 ...done.
[12:34:33]Opening project...done.
[12:34:33]Initializing project...Loaded profile 'Andromeda' from file '/Volumes/Projects/TeamCity/buildAgent/work/37d8ccda44e664dd/buildServer/inspectionProfiles/Andromeda.xml'
[12:34:33]done.
[12:34:33]Inspecting with profile 'Andromeda'
[12:34:33]Please, specify sdk 'jdk1.8.0_25.jdk' for module 'andromeda'
[12:34:33][Step 2/3] Step Inspections (IntelliJ IDEA) failed
[12:34:33]Step 3/3: Inspections (IntelliJ IDEA)
[12:34:33]Disabled build step Inspections (IntelliJ IDEA) is skipped
[12:34:33]Publishing internal artifacts
[12:34:33]Sending using WebPublisher
[12:34:33]Sending using ArtifactsCachePublisher
[12:34:33]Build finished



Attachment(s):
Skärmavbild 2014-12-18 kl. 12.27.14.png
Skärmavbild 2014-12-18 kl. 12.27.43.png
Skärmavbild 2014-12-18 kl. 12.28.12.png
0

Please sign in to leave a comment.