Issues with TeamCity Version 2.0 (build 3654)

After many problems with Team City 1.2 (see http://www.intellij.net/forums/thread.jspa?threadID=265635&tstart=0) I decided to switch into the EAP version of TC (TeamCity Version 2.0 (build 3654) ) but it seems it also suffers from many issues.

These are what I encoutered so far:

1. I could not create a CVS connection with its UI.
- When setuping the CVS connection I pressed the button 'Test connection'. A window saying: 'No object' (or something like that) appeared and the UI got frozen (the Save button was not enabled).
- I resolved this issue by creating the project definition in TC 1.6 and reusing project-config.xml file for TC 2.0 (it surprisingly worked)

2. TC agents do not work for Java 1.4. When running the inspections, it failed with "Unsupported major.minor version 49.0" until I changed the settings of env.JAVA_HOME property in c:\TeamCity\buildAgent\conf\buildAgent.properties file.

It would be good, if TC warned about this before running the time consuming cycle.

3. Now, it fails on this exception:

WARN - nt.runner.GenericProgramRunner -
java.lang.NullPointerException
at jetbrains.buildServer.ideaCommandLine.runner.IdeaCommandLineRunner.getVMProperties(IdeaCommandLineRunner.java:61)
at jetbrains.buildServer.agent.runner.JavaProgramRunner.buildCommandLine(JavaProgramRunner.java:69)
at jetbrains.buildServer.agent.runner.GenericProgramRunner.run(GenericProgramRunner.java:65)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.startRunner(BuildAgentImpl.java:656)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.runActualBuild(BuildAgentImpl.java:505)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$1500(BuildAgentImpl.java:52)
at jetbrains.buildServer.agent.impl.BuildAgentImpl$6.run(BuildAgentImpl.java:477)
at java.lang.Thread.run(Unknown Source)
WARN - rver.agent.impl.BuildAgentImpl - jetbrains.buildServer.RunBuildException: java.lang.NullPointerException
jetbrains.buildServer.RunBuildException: java.lang.NullPointerException
at jetbrains.buildServer.agent.runner.GenericProgramRunner.run(GenericProgramRunner.java:79)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.startRunner(BuildAgentImpl.java:656)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.runActualBuild(BuildAgentImpl.java:505)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$1500(BuildAgentImpl.java:52)
at jetbrains.buildServer.agent.impl.BuildAgentImpl$6.run(BuildAgentImpl.java:477)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at jetbrains.buildServer.ideaCommandLine.runner.IdeaCommandLineRunner.getVMProperties(IdeaCommandLineRunner.java:61)
at jetbrains.buildServer.agent.runner.JavaProgramRunner.buildCommandLine(JavaProgramRunner.java:69)
at jetbrains.buildServer.agent.runner.GenericProgramRunner.run(GenericProgramRunner.java:65)
... 5 more

Is there a way to work around this issue? Or is there another, more stable version of TC?

(The only positive thing about TC is that I'm becoming an expert tester of JetBrains TeamCity now :)

7 comments
Comment actions Permalink

I went to the Administration page, changed the project, rollback changes and saved the project and now it fails on a different problem:

4.

Code inspection
No data recordered.
Inspection output: java -Dbuild.working.dir=c:\teamcity\builda1\work\Server\Apollo2 -Didea.build.server.checkout.on.server=true -DDotNetFramework1.1_Path=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 -Dbuild.number=6 -DDotNetFramework1.1= -Duser.language=en -Duser.country=US -Didea.build.server.buildType.id=bt1 -Dos.version=5.2 -Duser.timezone=Europe/Prague -Dfile.encoding=Cp1252 -DDotNetFramework2.0_x86= -Dfile.separator=\ -DDotNetFramework2.0_x86_Path=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50110 -DDotNetFramework2.0_Path=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50110 -Dos.arch=x86 -Didea.no.jdk.check=true -DDotNetFramework1.1_x86_Path=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 -DDotNetFramework1.1_x86= -DDotNetFramework2.0= -Djava.io.tmpdir=c:\teamcity\builda1\bin\..\temp -Didea.plugins.path=C:\TeamCity\buildAgent\plugins\idea\plugins -Duser.name=SYSTEM "-Dos.name=Windows 2003" -Didea.build.server.is.personal=false -Didea.build.agent.port=9090 -Didea.build.server.checkout.on.agent=false -Didea.build.server.clean.build=true -Didea.system.path=C:\TeamCity\buildAgent\work\Server\Apollo2\system -Didea.build.server.run.type=Inspection -Didea.config.path=C:\TeamCity\buildAgent\work\Server\Apollo2\config -Duser.variant= -Didea.build.server.execution.timeout=0 -Didea.build.server.project.name=Apollo2 -Dsuccessful.build.number=1 -Didea.home.path=C:\TeamCity\buildAgent\plugins\idea "-Duser.home=C:\Documents and Settings\Default User" -Didea.build.server.build.id=7 "-Dbuild.vcs.number.4=19 Feb 16:37:31" -Demma.disable.source=true -Dpath.separator=; -Xmx512m -Xms256m -Xbootclasspath/p:C:\TeamCity\buildAgent\plugins\idea\lib\boot.jar -classpath C:\TeamCity\buildAgent\lib\tools.jar;C:\TeamCity\buildAgent\plugins\idea\lib\idea.jar;C:\TeamCity\buildAgent\plugins\idea\lib\extensions.jar;C:\TeamCity\buildAgent\plugins\idea\lib\openapi.jar;C:\TeamCity\buildAgent\plugins\idea\lib\jdom.jar;C:\TeamCity\buildAgent\plugins\idea\lib\log4j.jar com.intellij.idea.Main inspect C:\TeamCity\buildAgent\work\Server\Apollo2\apollo2sc\idoox\IdeaProjects\apollo.ipr profile C:\TeamCity\buildAgent\temp\inspection28882result -e -v3

-



In the c:\TeamCity\buildAgent\logs\error.log file is written:
WARN - ection.InspectionFileProcessor - extractDescriptions: C:\TeamCity\buildAgent\temp\inspection28882result\.descriptions.xml not found

-



In the c:\TeamCity\buildAgent\logs\teamcity.log file is written:

INFO - rver.agent.impl.BuildAgentImpl - Found runner Inspection for


INFO - rver.agent.impl.BuildAgentImpl - Getting sources...
INFO - rver.agent.impl.BuildAgentImpl - Requesting patch from server, cleanPatch=true
INFO - Server.vcs.patches.PatcherImpl - Clearing working directory c:\teamcity\builda~1\work\Server\Apollo2\apollo2sc\idoox\alljars
INFO - Server.vcs.patches.PatcherImpl - Clearing working directory c:\teamcity\builda~1\work\Server\Apollo2\apollo2sc\idoox\getopt
INFO - Server.vcs.patches.PatcherImpl - Clearing working directory c:\teamcity\builda~1\work\Server\Apollo2\apollo2sc\idoox\registry
INFO - Server.vcs.patches.PatcherImpl - Clearing working directory c:\teamcity\builda~1\work\Server\Apollo2\apollo2sc\idoox\shared
INFO - rver.agent.impl.BuildAgentImpl - Sources gotten for577 seconds
INFO - rver.agent.impl.BuildAgentImpl - Patch applied successfully
INFO - rver.agent.impl.BuildAgentImpl - Run actual runner for build 7 jetbrains.buildServer.agent.codeInspection.InspectionRunner@1786286
INFO - er.agent.runner.PropertyFinder - Took value for target.jdk.home from env.JAVA_HOME, value: "c:\Program Files\Java\jdk1.5.0_10"
INFO - agent.runner.JavaProgramRunner - Target java VM does not exist: c:\teamcity\builda~1\bin\"c:\Program Files\Java\jdk1.5.0_10" \bin\java.exe
INFO - agent.runner.JavaProgramRunner - Using java executable: java
INFO - er.agent.runner.PropertyFinder - Took value for target.jdk.home from env.JAVA_HOME, value: "c:\Program Files\Java\jdk1.5.0_10"
INFO - agent.runner.JavaProgramRunner - Target java VM does not exist: c:\teamcity\builda~1\bin\"c:\Program Files\Java\jdk1.5.0_10" \bin\java.exe
INFO - agent.runner.JavaProgramRunner - Using java executable: java
INFO - nt.runner.GenericProgramRunner - Running: java -Dbuild.working.dir=c:\teamcity\builda1\work\Server\Apollo2 -Didea.build.server.checkout.on.server=true -DDotNetFramework1.1_Path=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 -Dbuild.number=6 -DDotNetFramework1.1= -Duser.language=en -Duser.country=US -Didea.build.server.buildType.id=bt1 -Dos.version=5.2 -Duser.timezone=Europe/Prague -Dfile.encoding=Cp1252 -DDotNetFramework2.0_x86= -Dfile.separator=\ -DDotNetFramework2.0_x86_Path=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50110 -DDotNetFramework2.0_Path=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50110 -Dos.arch=x86 -Didea.no.jdk.check=true -DDotNetFramework1.1_x86_Path=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 -DDotNetFramework1.1_x86= -DDotNetFramework2.0= -Djava.io.tmpdir=c:\teamcity\builda1\bin\..\temp -Didea.plugins.path=C:\TeamCity\buildAgent\plugins\idea\plugins -Duser.name=SYSTEM "-Dos.name=Windows 2003" -Didea.build.server.is.personal=false -Didea.build.agent.port=9090 -Didea.build.server.checkout.on.agent=false -Didea.build.server.clean.build=true -Didea.system.path=C:\TeamCity\buildAgent\work\Server\Apollo2\system -Didea.build.server.run.type=Inspection -Didea.config.path=C:\TeamCity\buildAgent\work\Server\Apollo2\config -Duser.variant= -Didea.build.server.execution.timeout=0 -Didea.build.server.project.name=Apollo2 -Dsuccessful.build.number=1 -Didea.home.path=C:\TeamCity\buildAgent\plugins\idea "-Duser.home=C:\Documents and Settings\Default User" -Didea.build.server.build.id=7 "-Dbuild.vcs.number.4=19 Feb 16:37:31" -Demma.disable.source=true -Dpath.separator=; -Xmx512m -Xms256m -Xbootclasspath/p:C:\TeamCity\buildAgent\plugins\idea\lib\boot.jar -classpath C:\TeamCity\buildAgent\lib\tools.jar;C:\TeamCity\buildAgent\plugins\idea\lib\idea.jar;C:\TeamCity\buildAgent\plugins\idea\lib\extensions.jar;C:\TeamCity\buildAgent\plugins\idea\lib\openapi.jar;C:\TeamCity\buildAgent\plugins\idea\lib\jdom.jar;C:\TeamCity\buildAgent\plugins\idea\lib\log4j.jar com.intellij.idea.Main inspect C:\TeamCity\buildAgent\work\Server\Apollo2\apollo2sc\idoox\IdeaProjects\apollo.ipr profile C:\TeamCity\buildAgent\temp\inspection28882result -e -v3
INFO - nt.runner.GenericProgramRunner - java -Dbuild.working.dir=c:\teamcity\builda1\work\Server\Apollo2 -Didea.build.server.checkout.on.server=true -DDotNetFramework1.1_Path=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 -Dbuild.number=6 -DDotNetFramework1.1= -Duser.language=en -Duser.country=US -Didea.build.server.buildType.id=bt1 -Dos.version=5.2 -Duser.timezone=Europe/Prague -Dfile.encoding=Cp1252 -DDotNetFramework2.0_x86= -Dfile.separator=\ -DDotNetFramework2.0_x86_Path=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50110 -DDotNetFramework2.0_Path=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50110 -Dos.arch=x86 -Didea.no.jdk.check=true -DDotNetFramework1.1_x86_Path=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 -DDotNetFramework1.1_x86= -DDotNetFramework2.0= -Djava.io.tmpdir=c:\teamcity\builda1\bin\..\temp -Didea.plugins.path=C:\TeamCity\buildAgent\plugins\idea\plugins -Duser.name=SYSTEM "-Dos.name=Windows 2003" -Didea.build.server.is.personal=false -Didea.build.agent.port=9090 -Didea.build.server.checkout.on.agent=false -Didea.build.server.clean.build=true -Didea.system.path=C:\TeamCity\buildAgent\work\Server\Apollo2\system -Didea.build.server.run.type=Inspection -Didea.config.path=C:\TeamCity\buildAgent\work\Server\Apollo2\config -Duser.variant= -Didea.build.server.execution.timeout=0 -Didea.build.server.project.name=Apollo2 -Dsuccessful.build.number=1 -Didea.home.path=C:\TeamCity\buildAgent\plugins\idea "-Duser.home=C:\Documents and Settings\Default User" -Didea.build.server.build.id=7 "-Dbuild.vcs.number.4=19 Feb 16:37:31" -Demma.disable.source=true -Dpath.separator=; -Xmx512m -Xms256m -Xbootclasspath/p:C:\TeamCity\buildAgent\plugins\idea\lib\boot.jar -classpath C:\TeamCity\buildAgent\lib\tools.jar;C:\TeamCity\buildAgent\plugins\idea\lib\idea.jar;C:\TeamCity\buildAgent\plugins\idea\lib\extensions.jar;C:\TeamCity\buildAgent\plugins\idea\lib\openapi.jar;C:\TeamCity\buildAgent\plugins\idea\lib\jdom.jar;C:\TeamCity\buildAgent\plugins\idea\lib\log4j.jar com.intellij.idea.Main inspect C:\TeamCity\buildAgent\work\Server\Apollo2\apollo2sc\idoox\IdeaProjects\apollo.ipr profile C:\TeamCity\buildAgent\temp\inspection28882result -e -v3

WARN - ection.InspectionFileProcessor - extractDescriptions: C:\TeamCity\buildAgent\temp\inspection28882result\.descriptions.xml not found

0
Comment actions Permalink

Hello

After many problems with Team City 1.2 (see
http://www.intellij.net/forums/thread.jspa?threadID=265635&tstart=0) I
decided to switch into the EAP version of TC (TeamCity Version 2.0
(build 3654) ) but it seems it also suffers from many issues.

These are what I encoutered so far:

1. I could not create a CVS connection with its UI.
- When setuping the CVS connection I pressed the button 'Test
connection'. A window saying: 'No object' (or something like that)
appeared and the UI got frozen (the Save button was not enabled).
- I resolved this issue by creating the project definition in TC 1.6
and reusing project-config.xml file for TC 2.0 (it surprisingly
worked)
2. TC agents do not work for Java 1.4. When running the inspections,
it failed with "Unsupported major.minor version 49.0" until I changed
the settings of env.JAVA_HOME property in
c:\TeamCity\buildAgent\conf\buildAgent.properties file.

It would be good, if TC warned about this before running the time
consuming cycle.


Unfortunately inspecctions are running by IDEA which (from version 5.0) can't
work on 1.4 since uses java 5 itself. Defenitely we should confirm users
about this restriction

3. Now, it fails on this exception:

WARN - nt.runner.GenericProgramRunner -
java.lang.NullPointerException
at
jetbrains.buildServer.ideaCommandLine.runner.IdeaCommandLineRunner.get
VMProperties(IdeaCommandLineRunner.java:61)
at
jetbrains.buildServer.agent.runner.JavaProgramRunner.buildCommandLine(
JavaProgramRunner.java:69)
at
jetbrains.buildServer.agent.runner.GenericProgramRunner.run(GenericPro
gramRunner.java:65)
at
jetbrains.buildServer.agent.impl.BuildAgentImpl.startRunner(BuildAgent
Impl.java:656)
at
jetbrains.buildServer.agent.impl.BuildAgentImpl.runActualBuild(BuildAg
entImpl.java:505)
at
jetbrains.buildServer.agent.impl.BuildAgentImpl.access$1500(BuildAgent
Impl.java:52)
at
jetbrains.buildServer.agent.impl.BuildAgentImpl$6.run(BuildAgentImpl.j
ava:477)
at java.lang.Thread.run(Unknown Source)
WARN - rver.agent.impl.BuildAgentImpl -
jetbrains.buildServer.RunBuildException:
java.lang.NullPointerException
jetbrains.buildServer.RunBuildException:
java.lang.NullPointerException
at
jetbrains.buildServer.agent.runner.GenericProgramRunner.run(GenericPro
gramRunner.java:79)
at
jetbrains.buildServer.agent.impl.BuildAgentImpl.startRunner(BuildAgent
Impl.java:656)
at
jetbrains.buildServer.agent.impl.BuildAgentImpl.runActualBuild(BuildAg
entImpl.java:505)
at
jetbrains.buildServer.agent.impl.BuildAgentImpl.access$1500(BuildAgent
Impl.java:52)
at
jetbrains.buildServer.agent.impl.BuildAgentImpl$6.run(BuildAgentImpl.j
ava:477)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at
jetbrains.buildServer.ideaCommandLine.runner.IdeaCommandLineRunner.get
VMProperties(IdeaCommandLineRunner.java:61)
at
jetbrains.buildServer.agent.runner.JavaProgramRunner.buildCommandLine(
JavaProgramRunner.java:69)
at
jetbrains.buildServer.agent.runner.GenericProgramRunner.run(GenericPro
gramRunner.java:65)
... 5 more
Is there a way to work around this issue? Or is there another, more
stable version of TC?


Seems that there are still problems with jdk to run on. To run all "analysis"
runners we need JDK and not JRE. Seems that you point JAVA_HOME to jre instead
of JDK. We have corresponding issue already: http://www.jetbrains.net/jira/browse/TW-1763
We will add requirement to prevent misunderstanding here.

(The only positive thing about TC is that I'm becoming an expert
tester of JetBrains TeamCity now :)


Thank you for your feedback

Anna.


0
Comment actions Permalink

I encountered another issue. Since I'm only evaluating TC and most of our developers do not use Intellij Idea to develop, we do not have the Idea project (ipr + *.iml files) in CVS.

So to run TC successfully, I put the project files into the 'c:\TeamCity\buildAgent\work\Server\Project_name' directory by hand.

If I setup the project to 'Clean all files before build', it does not only clean all checked out files; it deletes all files in 'c:\TeamCity\buildAgent\work\Server\Project_name' including the ones copied there by hand.

It seems that in case, the project is not in CVS, I have one option only - not to switch on 'Clean all files before build'. But then files are cumulated in the work directory (even deleted ones).

Funny thing, I already encountered a similar issue in TC 1.0 but in TC 1.2 it seems it deletes only really checked out files. I remember, I tried to setup an absolute path to the ipr file but it did not work (on TC 1.0). Does it work better on the newer versions?

Any help?

0
Comment actions Permalink

PePan wrote:

I encountered another issue. Since I'm only evaluating TC and
most of our developers do not use Intellij Idea to develop,
we do not have the Idea project (ipr + *.iml files) in CVS.
So to run TC successfully, I put the project files into the
'c:\TeamCity\buildAgent\work\Server\Project_name' directory by hand.

If I setup the project to 'Clean all files before build',
it does not only clean all checked out files;
it deletes all files in 'c:\TeamCity\buildAgent\work\Server\Project_name'
including the ones copied there by hand.
It seems that in case, the project is not in CVS, I have one option only -
not to switch on 'Clean all files before build'.
But then files are cumulated in the work directory (even deleted ones).


We recommend you to put project files under source control.

If you need to avoid that - put IDEA project files into
"c:\TeamCity\buildAgent\work\Server\". Please ensure that IDEA opens
this project successfully (when source code is in place). Use
"..\YourProjectName.ipr" when configuring your build.

--
Alexey Gopachenko
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Hi, I have encountered another issue.

I tried to setup a custom inspections but I failed. I did following:

1. I created custom inspections set and ran it in Idea 6.0.4. It found around 90,000 issues.

2. Then I copied the Inspections.xml file into the c:\TeamCity\buildAgent\work\Server\... directory and set the 'Inspections profile path'.

3. When running the inspection in TC, it found only 3,000 issues.

4. Then I changed the project settings in TC so 'Inspections profile name:' was filled

5. Again, when running the inspection in TC, it found only 3,000 issues.

6. I changed the setting ins the project to make the settings incorrect.

7. Again, when running the inspection in TC, it found only 3,000 issues.

It seems that TC does not pay attention to this custom inspection settings file. Is there a way to make sure that TC uses this file? I did not find anything suspicious in logs.

0
Comment actions Permalink

Again, one more issue.

I tried to run the duplicator to find code duplicates in the project.
To setup the duplicator was easy, just to provide the *.ipr file as for inspections.
What I do not understand - the only result of this duplicator is this text:

Success

But there is no report saying what the code duplicates in the project are. What am I doing wrongly?

0
Comment actions Permalink

In the current EAP you can see duplication results only using TeamCity IDEA plugin + Selena EAP. In the next EAP we'll provide WebUI to view code duplicates.

Kind regards,
KIR

0

Please sign in to leave a comment.