ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlton Brown <cblists...@gmail.com>
Subject Intermittent error 'no appropriate method found for adding cache on class'
Date Thu, 12 Jan 2012 20:31:04 GMT
Yesterday some of our Jenkins builds began failing intermittently with the
stack trace below.   We are using Ivy 2.2.0.   I can't think of anything
that has changed recently in our scripts or environment.   The strange
thing is that all the Ivy tasks in this ant script were successful,
including resolve, until attempting publish at the final step.   What could
cause this?



Impossible to configure ivy:settings with given file:
/nfs/jenkins/workspace/marketer_trunk_integration/sdm/build-common/ivy-config.xml
: java.text.ParseException: failed to load settings from
file:/nfs/jenkins/workspace/marketer_trunk_integration/sdm/build-common/ivy-config.xml:
no appropriate method found for adding cache on class
org.apache.ivy.core.settings.IvySettings

       at
org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:165)

       at
org.apache.ivy.core.settings.XmlSettingsParser.parse(XmlSettingsParser.java:150)

       at
org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:388)

       at org.apache.ivy.Ivy.configure(Ivy.java:411)

       at
org.apache.ivy.ant.IvyAntSettings.createIvyEngine(IvyAntSettings.java:272)

       at
org.apache.ivy.ant.IvyAntSettings.getDefaultInstance(IvyAntSettings.java:133)

       at org.apache.ivy.ant.IvyTask.getIvyInstance(IvyTask.java:90)

       at org.apache.ivy.ant.IvyTask.prepareTask(IvyTask.java:256)

       at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:276)

       at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)

       at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)

       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

       at java.lang.reflect.Method.invoke(Method.java:597)

       at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)

       at org.apache.tools.ant.Task.perform(Task.java:348)

       at org.apache.tools.ant.Target.execute(Target.java:390)

       at org.apache.tools.ant.Target.performTasks(Target.java:411)

       at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)

       at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)

       at org.apache.tools.ant.Project.executeTargets(Project.java:1251)

       at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)

       at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)

       at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)

       at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)

       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

       at java.lang.reflect.Method.invoke(Method.java:597)

       at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)

       at org.apache.tools.ant.Task.perform(Task.java:348)

       at org.apache.tools.ant.Target.execute(Target.java:390)

       at org.apache.tools.ant.Target.performTasks(Target.java:411)

       at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)

       at org.apache.tools.ant.Project.executeTarget(Project.java:1368)

       at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)

       at org.apache.tools.ant.Project.executeTargets(Project.java:1251)

       at org.apache.tools.ant.Main.runBuild(Main.java:809)

       at org.apache.tools.ant.Main.startAnt(Main.java:217)

       at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)

       at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Caused by: java.lang.IllegalArgumentException: no appropriate method found
for adding cache on class org.apache.ivy.core.settings.IvySettings

       at
org.apache.ivy.util.Configurator.startCreateChild(Configurator.java:540)

       at
org.apache.ivy.core.settings.XmlSettingsParser.inConfiguratorStarted(XmlSettingsParser.java:579)

       at
org.apache.ivy.core.settings.XmlSettingsParser.startElement(XmlSettingsParser.java:201)

       at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)

       at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)

       at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)

       at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)

       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

       at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

       at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

       at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)

       at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)

       at javax.xml.parsers.SAXParser.parse(SAXParser.java:277)

       at
org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:160)

       ... 37 more

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message