Logging on ant build.xml file showing up in teamcity web interface but...

It is not showing up in the web interface in team city.  There is some logging but it is related to CVS checkout publishing artifacts.  We are using teamcity 4.5.  We have 16 build agents where 14 of them work correctly but 2 are not working as expected.



Attachment(s):
teamcity-build.log.zip
3 comments

We include websphere jars in our CP and there seems to be a difference of jars from websphere 6 to websphere 7.  How does Teamcity log to Web UI?  It looks like all the logging is in teamcity-build.log but it is not getting logged to UI as I would expect.  Any ideas?

0

After modifying logging here is the real error.

---------------------------
[2010-10-11 09:32:39,449] out - Buildfile: /usr/local/teamcity/buildAgent4/work/
e09c638be7e01bd/_BUILD/bootstrap.xml
[2010-10-11 09:32:39,717] err - UNABLE to initialize TeamCity logger. See except
ion below.
[2010-10-11 09:32:39,717] err - com.thoughtworks.xstream.XStream$InitializationE
xception: Could not instatiate converter : com.thoughtworks.xstream.converters.e
nums.EnumSetConverter : null
[2010-10-11 09:32:39,717] err -         at com.thoughtworks.xstream.XStream.dyna
micallyRegisterConverter(XStream.java:657)
[2010-10-11 09:32:39,717] err -         at com.thoughtworks.xstream.XStream.setu
pConverters(XStream.java:626)
[2010-10-11 09:32:39,717] err -         at com.thoughtworks.xstream.XStream.<ini
t>(XStream.java:373)
[2010-10-11 09:32:39,717] err -         at com.thoughtworks.xstream.XStream.<ini
t>(XStream.java:299)
[2010-10-11 09:32:39,717] err -         at jetbrains.buildServer.agent.impl.Serv
erLogger.<init>(ServerLogger.java:28)
[2010-10-11 09:32:39,717] err -         at jetbrains.buildServer.agent.impl.Serv
erLogger.getLoggerInstance(ServerLogger.java:41)
[2010-10-11 09:32:39,718] err -         at jetbrains.buildServer.agent.impl.Serv
erLogger.getLoggerInstance(ServerLogger.java:36)
[2010-10-11 09:32:39,718] err -         at jetbrains.buildServer.agent.impl.Serv
erLogger.getLoggerInstance(ServerLogger.java:32)
[2010-10-11 09:32:39,718] err -         at jetbrains.buildServer.agent.ServerLog
gerFacade.<init>(ServerLoggerFacade.java:27)
[2010-10-11 09:32:39,718] err -         at jetbrains.buildServer.agent.ServerLog
gerFacade.<init>(ServerLoggerFacade.java:22)
[2010-10-11 09:32:39,718] err -         at jetbrains.buildServer.agent.ant.Serve
rLoggerFacade.<init>(ServerLoggerFacade.java:6)
[2010-10-11 09:32:39,718] err -         at java.lang.J9VMInternals.newInstanceIm
pl(Native Method)
[2010-10-11 09:32:39,718] err -         at java.lang.Class.newInstance(Class.jav
a:1325)
[2010-10-11 09:32:39,718] err -         at jetbrains.buildServer.agent.LoggerFac
tory.loadAndInstantiateClass(LoggerFactory.java:55)
[2010-10-11 09:32:39,718] err -         at jetbrains.buildServer.agent.LoggerFac
tory.createAgentObject(LoggerFactory.java:40)
[2010-10-11 09:32:39,718] err -         at jetbrains.buildServer.agent.LoggerFac
tory.createLoggerFacade(LoggerFactory.java:25)
[2010-10-11 09:32:39,718] err -         at jetbrains.buildServer.agent.LoggerFac
tory.createBuildProgressLogger(LoggerFactory.java:15)
[2010-10-11 09:32:39,718] err -         at jetbrains.buildServer.agent.ant.Agent
BuildListener.<init>(AgentBuildListener.java:26)
[2010-10-11 09:32:39,718] err -         at jetbrains.buildServer.agent.ant.Agent
BuildListener.<init>(AgentBuildListener.java:26)
[2010-10-11 09:32:39,718] err -         at java.lang.J9VMInternals.newInstanceIm
pl(Native Method)
[2010-10-11 09:32:39,718] err -         at java.lang.Class.newInstance(Class.jav
a:1325)
[2010-10-11 09:32:39,718] err -         at org.apache.tools.ant.Main.addBuildLis
teners(Main.java:710)
[2010-10-11 09:32:39,719] err -         at org.apache.tools.ant.Main.runBuild(Ma
in.java:597)
[2010-10-11 09:32:39,719] err -         at org.apache.tools.ant.Main.startAnt(Ma
in.java:187)
[2010-10-11 09:32:39,719] err -         at org.apache.tools.ant.launch.Launcher.
run(Launcher.java:246)
[2010-10-11 09:32:39,719] err -         at org.apache.tools.ant.launch.Launcher.
main(Launcher.java:67)
[2010-10-11 09:32:39,719] err - Caused by: java.lang.reflect.InvocationTargetExc
eption
[2010-10-11 09:32:39,722] err -         at sun.reflect.NativeConstructorAccessor
Impl.newInstance0(Native Method)
[2010-10-11 09:32:39,722] err -         at sun.reflect.NativeConstructorAccessor
Impl.newInstance(NativeConstructorAccessorImpl.java:44)
[2010-10-11 09:32:39,722] err -         at sun.reflect.DelegatingConstructorAcce
ssorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39)
[2010-10-11 09:32:39,723] err -         ... 24 more
[2010-10-11 09:32:39,723] err - Caused by: java.lang.RuntimeException: Could not
access java.util.EnumSet.elementType field
[2010-10-11 09:32:39,723] err -         at com.thoughtworks.xstream.core.util.Fi
elds.find(Fields.java:18)
[2010-10-11 09:32:39,723] err -         at com.thoughtworks.xstream.converters.e
nums.EnumSetConverter.<init>(EnumSetConverter.java:31)
[2010-10-11 09:32:39,723] err -         ... 29 more
[2010-10-11 09:32:40,171] out -

0

Paul, sorry for delay.

It is not clear what happens in your case. I would suggest to try to install TeamCity 5.1.5 Professional and run your project there. As I remember there were some related fixes.
If it does not help, please provide more details on the way how your build is working. I.e. what bootstrap.xml does, what arguments do you use for the Ant, and what version of Ant you are using.

0

Please sign in to leave a comment.