Inspection Build Runner and OS/X?

Hey all,

Just giving Team City a try out here and thought I'd give the EAP
version a bash ;)

Any way, I'm trying to get the Inspection Build Runner to work under
OS/X - after adding my .ipr and .iml files to my repository, configuring
everything and set it loose I get an instant failure when running with
no output beyond:

: Inspection output:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java
-Dteamcity.buildConfName=Inspections
-Dbuild.working.dir=/Users/amrk/Applications/TeamCity/buildAgent/work/Server/b5b991b90c73d0c9
-Dagent.name=Default agent -Dbuild.number=5 -Dbuild.number.format= -Duser.language=en -Duser.country=US -Dos.version=10.4.10 -Duser.timezone=Pacific/Auckland -Dfile.encoding=MacRoman -Dteamcity.projectName=Wicket Test -Dagent.work.dir=/Users/amrk/Applications/TeamCity/buildAgent/work -Dfile.separator=/ -Dpath.macro.IDEA_HOME=/Users/amrk/Applications/Selena.app -Didea.no.jdk.check=true -Dos.arch=i386 -Djava.io.tmpdir=/Users/amrk/Applications/TeamCity/buildAgent/temp/teamcity.tmp -Dbuild.vcs.number.1=26 -Didea.plugins.path=/Users/amrk/Applications/TeamCity/buildAgent/plugins/idea/plugins -Duser.name=amrk -Dos.name=Mac OS X -Dteamcity.auth.password=4fbbe2ca60c4132e33a72edbd06405bab1f14c10 -Didea.build.agent.port=9090 -Didea.jars.nocopy=true -Didea.system.path=/Users/amrk/Applications/TeamCity/buildAgent/work/Server/b5b991b90c73d0c9/system -Didea.config.path=/Users/amrk/Applications/TeamCity/buildAgent/temp/teamcity.tmp/config -Dteamcity.buildType.id=bt8 -Dteamcity.auth.userId=TeamCityBuildId=420 -Dsuccessful.build.number=1 -Didea.home.path=/Users/amrk/Applications/TeamCity/buildAgent/plugins/idea -Duser.home=/Users/amrk -Didea.build.server.build.id=420 -Dpath.separator=: -Dnewlocalvcs.disabled=true -Xmx256m -Xbootclasspath/p:/Users/amrk/Applications/TeamCity/buildAgent/plugins/idea/lib/boot.jar -classpath /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/lib/tools.jar:/Users/amrk/Applications/TeamCity/buildAgent/plugins/idea/lib/bootstrap.jar:/Users/amrk/Applications/TeamCity/buildAgent/plugins/idea/lib/extensions.jar:/Users/amrk/Applications/TeamCity/buildAgent/plugins/idea/lib/openapi.jar:/Users/amrk/Applications/TeamCity/buildAgent/plugins/idea/lib/jdom.jar:/Users/amrk/Applications/TeamCity/buildAgent/plugins/idea/lib/log4j.jar com.intellij.idea.Main inspect /Users/amrk/Applications/TeamCity/buildAgent/work/Server/b5b991b90c73d0c9/wicket-test.ipr profile /Users/amrk/Applications/TeamCity/buildAgent/temp/teamcity.tmp/inspection60210result -e -v3 I notice theres no quotes around any of these parameters (thou I'm not sure if thats just the web output or not) but running this in a term window yields: perelandra:~ amrk$ /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java -Dteamcity.buildConfName=Inspections -Dbuild.working.dir=/Users/amrk/Applications/TeamCity/buildAgent/work/Server/b5b991b90c73d0c9 -Dagent.name=Default agent -Dbuild.number=5 -Dbuild.number.format=
-Duser.language=en -Duser.country=US -Dos.version=10.4.10
-Duser.timezone=Pacific/Auckland -Dfile.encoding=MacRoman
-Dteamcity.projectName=Wicket Test
-Dagent.work.dir=/Users/amrk/Applications/TeamCity/buildAgent/work
-Dfile.separator=/
-Dpath.macro.IDEA_HOME=/Users/amrk/Applications/Selena.app
-Didea.no.jdk.check=true -Dos.arch=i386
-Djava.io.tmpdir=/Users/amrk/Applications/TeamCity/buildAgent/temp/teamcity.tmp
-Dbuild.vcs.number.1=26
-Didea.plugins.path=/Users/amrk/Applications/TeamCity/buildAgent/plugins/idea/plugins
-Duser.name=amrk -Dos.name=Mac OS X
-Dteamcity.auth.password=4fbbe2ca60c4132e33a72edbd06405bab1f14c10
-Didea.build.agent.port=9090 -Didea.jars.nocopy=true
-Didea.system.path=/Users/amrk/Applications/TeamCity/buildAgent/work/Server/b5b991b90c73d0c9/system
-Didea.config.path=/Users/amrk/Applications/TeamCity/buildAgent/temp/teamcity.tmp/config
-Dteamcity.buildType.id=bt8 -Dteamcity.auth.userId=TeamCityBuildId=420
-Dsuccessful.build.number=1
-Didea.home.path=/Users/amrk/Applications/TeamCity/buildAgent/plugins/idea
-Duser.home=/Users/amrk -Didea.build.server.build.id=420
-Dpath.separator=: -Dnewlocalvcs.disabled=true -Xmx256m
-Xbootclasspath/p:/Users/amrk/Applications/TeamCity/buildAgent/plugins/idea/lib/boot.jar
-classpath
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/lib/tools.jar:/Users/amrk/Applications/TeamCity/buildAgent/plugins/idea/lib/bootstrap.jar:/Users/amrk/Applications/TeamCity/buildAgent/plugins/idea/lib/extensions.jar:/Users/amrk/Applications/TeamCity/buildAgent/plugins/idea/lib/openapi.jar:/Users/amrk/Applications/TeamCity/buildAgent/plugins/idea/lib/jdom.jar:/Users/amrk/Applications/TeamCity/buildAgent/plugins/idea/lib/log4j.jar
com.intellij.idea.Main inspect
/Users/amrk/Applications/TeamCity/buildAgent/work/Server/b5b991b90c73d0c9/wicket-test.ipr
profile
/Users/amrk/Applications/TeamCity/buildAgent/temp/teamcity.tmp/inspection60210result
-e -v3
Exception in thread "main" java.lang.NoClassDefFoundError: agent

Is this an EAP breakage or am I just configuring things wrong?

Mark

2 comments

Hello Mark,

Could you please file JIRA issue and attach there your idea.log from /buildAgent/work/server/yourproject/system/logs
as well as teamcity.log from buildAgent/logs

Thank you

-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

Hey all,

Just giving Team City a try out here and thought I'd give the EAP
version a bash ;)

Any way, I'm trying to get the Inspection Build Runner to work under
OS/X - after adding my .ipr and .iml files to my repository,
configuring everything and set it loose I get an instant failure when
running with no output beyond:

: Inspection output:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java
-Dteamcity.buildConfName=Inspections
-Dbuild.working.dir=/Users/amrk/Applications/TeamCity/buildAgent/work/
Server/b5b991b90c73d0c9 -Dagent.name=Default agent -Dbuild.number=5
-Dbuild.number.format= -Duser.language=en -Duser.country=US > -Dos.version=10.4.10 -Duser.timezone=Pacific/Auckland > -Dfile.encoding=MacRoman -Dteamcity.projectName=Wicket Test > -Dagent.work.dir=/Users/amrk/Applications/TeamCity/buildAgent/work > -Dfile.separator=/ > -Dpath.macro.IDEA_HOME=/Users/amrk/Applications/Selena.app > -Didea.no.jdk.check=true -Dos.arch=i386 > -Djava.io.tmpdir=/Users/amrk/Applications/TeamCity/buildAgent/temp/tea > mcity.tmp -Dbuild.vcs.number.1=26 > -Didea.plugins.path=/Users/amrk/Applications/TeamCity/buildAgent/plugi > ns/idea/plugins -Duser.name=amrk -Dos.name=Mac OS X > -Dteamcity.auth.password=4fbbe2ca60c4132e33a72edbd06405bab1f14c10 > -Didea.build.agent.port=9090 -Didea.jars.nocopy=true > -Didea.system.path=/Users/amrk/Applications/TeamCity/buildAgent/work/S > erver/b5b991b90c73d0c9/system > -Didea.config.path=/Users/amrk/Applications/TeamCity/buildAgent/temp/t > eamcity.tmp/config -Dteamcity.buildType.id=bt8 > -Dteamcity.auth.userId=TeamCityBuildId=420 -Dsuccessful.build.number=1 > -Didea.home.path=/Users/amrk/Applications/TeamCity/buildAgent/plugins/ > idea -Duser.home=/Users/amrk -Didea.build.server.build.id=420 > -Dpath.separator=: -Dnewlocalvcs.disabled=true -Xmx256m > -Xbootclasspath/p:/Users/amrk/Applications/TeamCity/buildAgent/plugins > /idea/lib/boot.jar -classpath > /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/lib/tools.j > ar:/Users/amrk/Applications/TeamCity/buildAgent/plugins/idea/lib/boots > trap.jar:/Users/amrk/Applications/TeamCity/buildAgent/plugins/idea/lib > /extensions.jar:/Users/amrk/Applications/TeamCity/buildAgent/plugins/i > dea/lib/openapi.jar:/Users/amrk/Applications/TeamCity/buildAgent/plugi > ns/idea/lib/jdom.jar:/Users/amrk/Applications/TeamCity/buildAgent/plug > ins/idea/lib/log4j.jar com.intellij.idea.Main inspect > /Users/amrk/Applications/TeamCity/buildAgent/work/Server/b5b991b90c73d > 0c9/wicket-test.ipr profile > /Users/amrk/Applications/TeamCity/buildAgent/temp/teamcity.tmp/inspect > ion60210result -e -v3 > > I notice theres no quotes around any of these parameters (thou I'm not > sure if thats just the web output or not) but running this in a term > window yields: > > perelandra:~ amrk$ > > /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java > > -Dteamcity.buildConfName=Inspections > > -Dbuild.working.dir=/Users/amrk/Applications/TeamCity/buildAgent/work/ > Server/b5b991b90c73d0c9 > > -Dagent.name=Default agent -Dbuild.number=5 -Dbuild.number.format=

-Duser.language=en -Duser.country=US -Dos.version=10.4.10

-Duser.timezone=Pacific/Auckland -Dfile.encoding=MacRoman

-Dteamcity.projectName=Wicket Test

-Dagent.work.dir=/Users/amrk/Applications/TeamCity/buildAgent/work

-Dfile.separator=/

-Dpath.macro.IDEA_HOME=/Users/amrk/Applications/Selena.app

-Didea.no.jdk.check=true -Dos.arch=i386

-Djava.io.tmpdir=/Users/amrk/Applications/TeamCity/buildAgent/temp/tea
mcity.tmp

-Dbuild.vcs.number.1=26

-Didea.plugins.path=/Users/amrk/Applications/TeamCity/buildAgent/plugi
ns/idea/plugins

-Duser.name=amrk -Dos.name=Mac OS X

-Dteamcity.auth.password=4fbbe2ca60c4132e33a72edbd06405bab1f14c10

-Didea.build.agent.port=9090 -Didea.jars.nocopy=true

-Didea.system.path=/Users/amrk/Applications/TeamCity/buildAgent/work/S
erver/b5b991b90c73d0c9/system

-Didea.config.path=/Users/amrk/Applications/TeamCity/buildAgent/temp/t
eamcity.tmp/config

-Dteamcity.buildType.id=bt8 -Dteamcity.auth.userId=TeamCityBuildId=420

-Dsuccessful.build.number=1

-Didea.home.path=/Users/amrk/Applications/TeamCity/buildAgent/plugins/
idea

-Duser.home=/Users/amrk -Didea.build.server.build.id=420

-Dpath.separator=: -Dnewlocalvcs.disabled=true -Xmx256m

-Xbootclasspath/p:/Users/amrk/Applications/TeamCity/buildAgent/plugins
/idea/lib/boot.jar

-classpath

/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/lib/tools.j
ar:/Users/amrk/Applications/TeamCity/buildAgent/plugins/idea/lib/boots
trap.jar:/Users/amrk/Applications/TeamCity/buildAgent/plugins/idea/lib
/extensions.jar:/Users/amrk/Applications/TeamCity/buildAgent/plugins/i
dea/lib/openapi.jar:/Users/amrk/Applications/TeamCity/buildAgent/plugi
ns/idea/lib/jdom.jar:/Users/amrk/Applications/TeamCity/buildAgent/plug
ins/idea/lib/log4j.jar

com.intellij.idea.Main inspect

/Users/amrk/Applications/TeamCity/buildAgent/work/Server/b5b991b90c73d
0c9/wicket-test.ipr

profile

/Users/amrk/Applications/TeamCity/buildAgent/temp/teamcity.tmp/inspect
ion60210result

-e -v3

Exception in thread "main" java.lang.NoClassDefFoundError: agent

Is this an EAP breakage or am I just configuring things wrong?

Mark



0

Anna Kozlova wrote:

Hello Mark,

Could you please file JIRA issue and attach there your idea.log from
/buildAgent/work/server/yourproject/system/logs as well as teamcity.log
from buildAgent/logs


Added - http://www.jetbrains.net/jira/browse/TW-3151

Seems its throwing an exception looking for tools.jar under the JDK
directory - the Apple JVM doesn't have a tools.jar file (and its quite
strangely laid out).

I recall the Hudson guys recently having a problem with the Apple JVM
not having a tools.jar as well.

Mark

0

Please sign in to leave a comment.