[ 
https://jira.codehaus.org/browse/MCHANGES-208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Osipov closed MCHANGES-208.
-----------------------------------

    Resolution: Won't Fix

Please refer to 
https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014
 if you're wondering why this issue was closed out.

> XmlPullParserException with changes.xml file
> --------------------------------------------
>
>                 Key: MCHANGES-208
>                 URL: https://jira.codehaus.org/browse/MCHANGES-208
>             Project: Maven Changes Plugin
>          Issue Type: Bug
>          Components: changes.xml, modello
>    Affects Versions: 2.3
>         Environment: Linux (Ubuntu)
>            Reporter: Karl-Heinz Marbaise
>         Attachments: problem-changes-file.diff
>
>
> I have observed a strange behaviour in case of the following.
> Given the following changes.xml file:
> {code:xml}
> <document xmlns="http://maven.apache.org/changes/1.0.0";
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xsi:schemaLocation="http://maven.apache.org/changes/1.0.0 
> http://maven.apache.org/xsd/changes-1.0.0.xsd";>
>   <properties>
>     <title>Changes report Project</title>
>     <author email="zl...@toto.com">Mr Zloug</author>
>   </properties>
>   <body>
>     <release version="1.0" date="2005-01-01" description="First release">
>       <action dev="me" type="update" issue="MCHANGES-47" due-to="others" 
> due-to-email="oth...@users.com">
>         <fixes issue="MCHANGES-88"/>
>         <fixes issue="JIRA-YYY"/>
>         <dueto name="John Doe" email="j...@doe.com"/>
>         <dueto name="Jane Doe"/>
>         Uploaded documentation on how to use the plugin.
>       </action>
>     </release>
>   </body>
> </document>
> {code}
> This will produce the following problem during site generation:
> {code}
> [ERROR] An error occured when parsing the changes.xml file:
> org.codehaus.plexus.util.xml.pull.XmlPullParserException: expected START_TAG 
> or END_TAG not TEXT (position: TEXT seen ...\n        Uploaded documentation 
> on how to use the plugin.\n      </... @35:9) 
>       at 
> org.codehaus.plexus.util.xml.pull.MXParser.nextTag(MXParser.java:1083)
>       at 
> org.apache.maven.plugins.changes.model.io.xpp3.ChangesXpp3Reader.parseAction(ChangesXpp3Reader.java:479)
>       at 
> org.apache.maven.plugins.changes.model.io.xpp3.ChangesXpp3Reader.parseRelease(ChangesXpp3Reader.java:802)
>       at 
> org.apache.maven.plugins.changes.model.io.xpp3.ChangesXpp3Reader.parseBody(ChangesXpp3Reader.java:587)
>       at 
> org.apache.maven.plugins.changes.model.io.xpp3.ChangesXpp3Reader.parseChangesDocument(ChangesXpp3Reader.java:640)
>       at 
> org.apache.maven.plugins.changes.model.io.xpp3.ChangesXpp3Reader.read(ChangesXpp3Reader.java:1104)
>       at 
> org.apache.maven.plugins.changes.model.io.xpp3.ChangesXpp3Reader.read(ChangesXpp3Reader.java:1135)
>       at org.apache.maven.plugin.changes.ChangesXML.<init>(ChangesXML.java:65)
>       at 
> org.apache.maven.plugin.changes.ChangesReportGenerator.<init>(ChangesReportGenerator.java:75)
>       at 
> org.apache.maven.plugin.changes.ChangesMojo.executeReport(ChangesMojo.java:256)
>       at 
> org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:135)
>       at 
> org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:170)
>       at 
> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:330)
>       at 
> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:134)
>       at 
> org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:159)
>       at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:122)
>       at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195)
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140)
>       at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>       at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>       at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>       at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
>       at org.apache.maven.cli.MavenCli.execute(MavenCli.java:451)
>       at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:188)
>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:134)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> {code}
> The above changes.xml files has passed the validation phase without any 
> problems....
> The only thing i have changed is to change the order of the entries (moved 
> the text before the other tags):
> {code:xml}
>       <action dev="me" type="update" issue="MCHANGES-47" due-to="others" 
> due-to-email="oth...@users.com">
>         Uploaded documentation on how to use the plugin.
>         <fixes issue="MCHANGES-88"/>
>         <fixes issue="JIRA-YYY"/>
>         <dueto name="John Doe" email="j...@doe.com"/>
>         <dueto name="Jane Doe"/>
>       </action>
>     </release>
> {code}
> And the site generation will run without any problem.
> I have added an integration-test (based on the current trunk r1041074) which 
> produces this situation and the integration test will fail.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to