Re: [Ivyplugins-user] java.text.ParseException: problem occured while parsing ivy file
Brought to you by:
ulsa
|
From: Henrik R. <hen...@fv...> - 2007-12-14 07:49:43
|
Hi Sharmila,
>From what I know this plugin doesn't work in CC 2.6 since the internals of
CruiseControl has changed. It's built for CC 2.5. I believe that someone
sent a mail to the list saying that he would submit a patch but I can't find
it right know. Sorry.
Bgr Henrik
On Dec 14, 2007 7:56 AM, Sharmila R <sha...@gm...> wrote:
> I have configured CC 2.6.2 with IvyPublisher. I have two projects A
> and B. I want them to be built in the order:
> A
> B
>
> I have configured as follows:
>
> config.xml:
>
> <?xml version="1.0"?>
> <cruisecontrol>
>
>
> <plugin name="ivypublisher"
> classname="net.sf.ivyplugins.ivypublisher.IvySuccessPublisher"
> project="${project.name}" basedir="src/${project.name}"
> config="config.xml"/>
>
>
> <project name="A">
> <listeners>
> <currentbuildstatuslistener file="logs/${project.name
> }/status.txt"/>
> </listeners>
>
> <bootstrappers>
> .....
> </bootstrappers>
>
> <modificationset quietperiod="30" ignoreFiles="${cc_ignore}">
> .....
> </modificationset>
>
> <schedule interval="86400">
> <composite>
> <ant antscript="apache-ant-1.6.2/bin/ant15"
> buildfile="src/${project.name}/build.xml" target="build"/>
> </composite>
> </schedule>
>
> <publishers>
> <ivypublisher/>
> </publishers>
> </project>
>
>
> <project name="B">
>
> <listeners>
> <currentbuildstatuslistener file="logs/${project.name
> }/status.txt"/>
> </listeners>
>
> <bootstrappers>
> .....
> </bootstrappers>
>
> <modificationset quietperiod="30" ignoreFiles="${cc_ignore}">
> .....
> </modificationset>
>
> <schedule interval="86400">
> <composite>
> <ant antscript="apache-ant-1.6.2/bin/ant15"
> buildfile="src/${project.name}/build.xml" target="build"/>
> </composite>
> </schedule>
>
> <publishers>
> <ivypublisher/>
> </publishers>
> </project>
>
> </cruisecontrol>
>
> ivy.xml for A:
>
> <ivy-module version="1.0">
> <info module="A"/>
> </ivy-module>
>
> ivy.xml for B:
>
> <ivy-module version="1.0">
> <info module="B">
> <dependencies>
> <dependency name="A"/>
> </dependencies>
> </info>
> </ivy-module>
>
>
> I am getting the following error:
>
> 2007-12-13 22:24:01,634 [main ] ERROR IvySuccessPublisher - Error
> extracting module descriptor from ivy/A/ivy.xml
> java.text.ParseException: problem occured while parsing ivy file.
> message: null in file: ivy/A/ivy.xml
> at fr.jayasoft.ivy.xml.XmlModuleDescriptorParser$Parser.parse(
> XmlModuleDescriptorParser.java:159)
> at fr.jayasoft.ivy.xml.XmlModuleDescriptorParser$Parser.access$000(
> XmlModuleDescriptorParser.java:110)
> at fr.jayasoft.ivy.xml.XmlModuleDescriptorParser.parseDescriptor(
> XmlModuleDescriptorParser.java:78)
> at
> fr.jayasoft.ivy.parser.ModuleDescriptorParserRegistry.parseDescriptor(
> ModuleDescriptorParserRegistry.java:71)
> at
> fr.jayasoft.ivy.parser.AbstractModuleDescriptorParser.parseDescriptor(
> AbstractModuleDescriptorParser.java:35)
> at
> net.sf.ivyplugins.ivypublisher.IvySuccessPublisher.getModuleDescriptor(
> IvySuccessPublisher.java:392)
> at net.sf.ivyplugins.ivypublisher.IvySuccessPublisher.validate(
> IvySuccessPublisher.java:257)
> at net.sourceforge.cruisecontrol.ProjectConfig$Publishers.validate(
> ProjectConfig.java:255)
> at net.sourceforge.cruisecontrol.ProjectConfig.validate(
> ProjectConfig.java:116)
> at net.sourceforge.cruisecontrol.CruiseControlConfig.handleProject(
> CruiseControlConfig.java:295)
> at net.sourceforge.cruisecontrol.CruiseControlConfig.parse(
> CruiseControlConfig.java:112)
> at net.sourceforge.cruisecontrol.CruiseControlConfig.<init>(
> CruiseControlConfig.java:92)
> at net.sourceforge.cruisecontrol.config.XMLConfigManager.loadConfig
> (XMLConfigManager.java:81)
> at net.sourceforge.cruisecontrol.config.XMLConfigManager.<init>(
> XMLConfigManager.java:73)
> at
> net.sourceforge.cruisecontrol.CruiseControlController.setConfigFile(
> CruiseControlController.java:94)
> at net.sourceforge.cruisecontrol.Main.startController(Main.java
> :112)
> at net.sourceforge.cruisecontrol.Main.start(Main.java:98)
> at net.sourceforge.cruisecontrol.launch.Launcher.run(Launcher.java
> :244)
> at net.sourceforge.cruisecontrol.launch.Launcher.main(Launcher.java
> :108)
> Caused by: java.lang.NullPointerException
> at
> fr.jayasoft.ivy.xml.XmlModuleDescriptorParser$Parser.startElement(
> XmlModuleDescriptorParser.java:418)
> at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
> Source)
> at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement
> (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:143)
> at fr.jayasoft.ivy.util.XMLHelper.parse(XMLHelper.java:93)
> at fr.jayasoft.ivy.util.XMLHelper.parse(XMLHelper.java:68)
> at fr.jayasoft.ivy.util.XMLHelper.parse(XMLHelper.java:62)
> at fr.jayasoft.ivy.xml.XmlModuleDescriptorParser$Parser.parse(
> XmlModuleDescriptorParser.java:143)
> ... 18 more
>
> and same error for B also.
>
> What is the mistake in the ivy.xmls? Please help
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
>
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> ivyplugins-user mailing list
> ivy...@li...
> https://lists.sourceforge.net/lists/listinfo/ivyplugins-user
>
>
|