TeamCity 5.1.2 Agent running amok on Red Hat 4 (2.6.9-22)

I'm seeing one of the agent machines trying to run a build over and over again every 2-3 minutes  It's failing with this error:

Build  cancelled with comment: Call http://172.16.11.177:9090/RPC2  buildAgent.run: org.apache.xmlrpc.XmlRpcException: java.lang.Exception:  java.lang.RuntimeException: Failed to create context for build: Line 14  in XML document from URL  [jar:file:/tools/lib/ccase/export/vobs_cctools/dxsi
Cancelled
Cancelled                  with comment: Call http://172.16.11.177:9090/RPC2  buildAgent.run: org.apache.xmlrpc.XmlRpcException: java.lang.Exception:  java.lang.RuntimeException: Failed to create context for build: Line 14  in XML document from URL  [jar:file:/tools/lib/ccase/export/vobs_cctools/dxsi
Agent: uxpslxdev1
Time: 13 Sep 10 13:30 - 13:32 (2m:25s) Triggered by:

Re-added because of unexpected finish on 13 Sep 10 13:30



This also happened last week but went away after I restarted the agent.

The stack trace shows:

[2010-09-13 13:32:41,250]   WARN - ry.xml.XmlBeanDefinitionReader - Ignored XML validation warning  
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans-2.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.warning(ErrorHandlerWrapper.java:96)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:380)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:2541)
    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaWarning(XSDHandler.java:2532)
    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:1836)
    at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:531)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:552)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2436)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1781)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:626)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3103)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:922)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:235)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
    at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)
    at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113)
    at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:80)
    at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
    at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
    at jetbrains.buildServer.spring.SpringSubContainerFactroyImpl.createSubContext(SpringSubContainerFactroyImpl.java:26)
    at jetbrains.buildServer.agent.impl.runContext.RunningBuildContextFactory.createContext(RunningBuildContextFactory.java:60)
    at jetbrains.buildServer.agent.impl.runContext.RunningBuildContextFactory.createContext(RunningBuildContextFactory.java:45)
    at jetbrains.buildServer.agent.impl.BuildAgentImpl.doRun(BuildAgentImpl.java:235)
    at jetbrains.buildServer.agent.impl.BuildAgentImpl.run(BuildAgentImpl.java:180)
    at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.xmlrpc.Invoker.execute(Invoker.java:130)
    at org.apache.xmlrpc.XmlRpcWorker.invokeHandler(XmlRpcWorker.java:84)
    at org.apache.xmlrpc.XmlRpcWorker.execute(XmlRpcWorker.java:146)
    at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:139)
    at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:125)
    at org.apache.xmlrpc.WebServer2$Connection.run(WebServer2.java:748)
    at org.apache.xmlrpc.WebServer2$Runner.run(WebServer2.java:619)
    at java.lang.Thread.run(Thread.java:619)
[2010-09-13 13:32:41,251]  ERROR - ext.RunningBuildContextFactory - Failed to create context for build  
bespin(bsmith):

I have attached the complete set of logfiles for this agent as an attachment. I'm going to restart the agent.



Attachment(s):
agent_logs.zip
5 comments

After logging this report, I noticed that the problem is not specific to Red Hat 4.  I also had the problem on AIX, and Red Hat 5.  Restarting the agent fixes the issue until it happens again.

0

Do you have any custom plugins for build agent?

0

No custom plugins. It's a vanilla 5.1.2 installation.

0

Bill,

Can you please submit an issue report in our tracker: http://youtrack.jetbrains.net/issues/TW.

Thanks in advance,
Marina

0

Please sign in to leave a comment.