Identity API 2.0 guide won't build on 1.5.0 or 1.5.1 version of Clouddoc tools maven plugin

Bug #1078108 reported by Anne Gentle
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-api-site
Won't Fix
Wishlist
David Cramer

Bug Description

Working on refactor of Identity API 2.0 guide and tried to build on 1.5.0 or 1.5.1 to pick up Google Analytics changes.

It meant I made a long guide out of a bunch of smaller guides by copying book files and making them chapter files, then xi:including it into a long document. You can see it at https://review.openstack.org/15925. To get a copy of this patchset locally, use:
git review -d 15925

Here are the errors I got running it locally on my MacOSX machine with mvn -X clean generate-sources:

INFO: 380:51:[INFO] Flattening resource paths
Nov 12, 2012 4:31:52 PM com.xmlcalabash.util.DefaultXProcMessageListener error
SEVERE: 442:err:XPTY0004:A sequence of more than one item is not allowed as the 7th argument of concat()
Nov 12, 2012 4:31:52 PM com.xmlcalabash.util.DefaultXProcMessageListener error
SEVERE: A sequence of more than one item is not allowed as the 7th argument of concat()
Nov 12, 2012 4:31:52 PM com.xmlcalabash.util.DefaultXProcMessageListener error
SEVERE: A sequence of more than one item is not allowed as the 7th argument of concat()
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.535s
[INFO] Finished at: Mon Nov 12 16:31:52 CST 2012
[INFO] Final Memory: 17M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.rackspace.cloud.api:clouddocs-maven-plugin:1.5.0:generate-pdf (g1) on project docs: Execution g1 of goal com.rackspace.cloud.api:clouddocs-maven-plugin:1.5.0:generate-pdf failed: net.sf.saxon.s9api.SaxonApiException: A sequence of more than one item is not allowed as the 7th argument of concat() -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.rackspace.cloud.api:clouddocs-maven-plugin:1.5.0:generate-pdf (g1) on project docs: Execution g1 of goal com.rackspace.cloud.api:clouddocs-maven-plugin:1.5.0:generate-pdf failed: net.sf.saxon.s9api.SaxonApiException: A sequence of more than one item is not allowed as the 7th argument of concat()
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
 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:319)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
 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)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution g1 of goal com.rackspace.cloud.api:clouddocs-maven-plugin:1.5.0:generate-pdf failed: net.sf.saxon.s9api.SaxonApiException: A sequence of more than one item is not allowed as the 7th argument of concat()
 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
 ... 19 more
Caused by: com.rackspace.papi.components.translation.xproc.PipelineException: net.sf.saxon.s9api.SaxonApiException: A sequence of more than one item is not allowed as the 7th argument of concat()
 at com.rackspace.papi.components.translation.xproc.calabash.CalabashPipeline.run(CalabashPipeline.java:112)
 at com.rackspace.cloud.api.docs.CalabashHelper.run(CalabashHelper.java:57)
 at com.rackspace.cloud.api.docs.CalabashHelper.createSource(CalabashHelper.java:72)
 at com.rackspace.cloud.api.docs.PDFMojo.createSource(PDFMojo.java:434)
 at com.agilejava.docbkx.maven.AbstractTransformerMojo.execute(AbstractTransformerMojo.java:154)
 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
 ... 20 more
Caused by: net.sf.saxon.s9api.SaxonApiException: A sequence of more than one item is not allowed as the 7th argument of concat()
 at net.sf.saxon.s9api.XsltTransformer.transform(XsltTransformer.java:405)
 at com.xmlcalabash.library.XSLT.run(XSLT.java:214)
 at com.xmlcalabash.runtime.XAtomicStep.run(XAtomicStep.java:366)
 at com.xmlcalabash.runtime.XPipeline.doRun(XPipeline.java:236)
 at com.xmlcalabash.runtime.XPipeline.run(XPipeline.java:136)
 at com.xmlcalabash.runtime.XPipelineCall.run(XPipelineCall.java:87)
 at com.xmlcalabash.runtime.XPipeline.doRun(XPipeline.java:236)
 at com.xmlcalabash.runtime.XPipeline.run(XPipeline.java:136)
 at com.rackspace.papi.components.translation.xproc.calabash.CalabashPipeline.run(CalabashPipeline.java:106)
 ... 25 more
Caused by: net.sf.saxon.trans.XPathException: A sequence of more than one item is not allowed as the 7th argument of concat()
 at net.sf.saxon.expr.Expression.typeError(Expression.java:1009)
 at net.sf.saxon.expr.SingletonAtomizer.evaluateItem(SingletonAtomizer.java:163)
 at net.sf.saxon.functions.Concat.evaluateItem(Concat.java:41)
 at net.sf.saxon.functions.NormalizeSpace.evaluateItem(NormalizeSpace.java:75)
 at net.sf.saxon.expr.Expression.evaluateAsString(Expression.java:469)
 at net.sf.saxon.expr.instruct.SimpleNodeConstructor.processLeavingTail(SimpleNodeConstructor.java:180)
 at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:569)
 at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:123)
 at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:318)
 at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:269)
 at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:569)
 at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:567)
 at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:569)
 at net.sf.saxon.expr.instruct.Template.applyLeavingTail(Template.java:208)
 at net.sf.saxon.expr.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:368)
 at net.sf.saxon.expr.instruct.ApplyTemplates$ApplyTemplatesPackage.processLeavingTail(ApplyTemplates.java:636)
 at net.sf.saxon.expr.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:340)
 at net.sf.saxon.expr.instruct.ApplyTemplates$ApplyTemplatesPackage.processLeavingTail(ApplyTemplates.java:636)
 at net.sf.saxon.expr.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:340)
 at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:232)
 at net.sf.saxon.expr.instruct.ApplyTemplates.process(ApplyTemplates.java:192)
 at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:318)
 at net.sf.saxon.expr.instruct.Copy.processLeavingTail(Copy.java:366)
 at net.sf.saxon.expr.instruct.Template.applyLeavingTail(Template.java:208)
 at net.sf.saxon.expr.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:368)
 at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:232)
 at net.sf.saxon.expr.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:196)
 at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:569)
 at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:123)
 at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:318)
 at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:269)
 at net.sf.saxon.expr.instruct.Template.applyLeavingTail(Template.java:208)
 at net.sf.saxon.expr.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:368)
 at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:232)
 at net.sf.saxon.expr.instruct.ApplyTemplates.process(ApplyTemplates.java:192)
 at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:318)
 at net.sf.saxon.expr.instruct.Copy.processLeavingTail(Copy.java:366)
 at net.sf.saxon.expr.instruct.Template.applyLeavingTail(Template.java:208)
 at net.sf.saxon.expr.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:368)
 at net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:232)
 at net.sf.saxon.expr.instruct.ApplyTemplates.process(ApplyTemplates.java:192)
 at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:318)
 at net.sf.saxon.expr.instruct.Copy.processLeavingTail(Copy.java:366)
 at net.sf.saxon.expr.instruct.Template.applyLeavingTail(Template.java:208)
 at net.sf.saxon.expr.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:368)
 at net.sf.saxon.expr.instruct.ApplyTemplates$ApplyTemplatesPackage.processLeavingTail(ApplyTemplates.java:636)
 at net.sf.saxon.Controller.transformDocument(Controller.java:1892)
 at net.sf.saxon.Controller.transform(Controller.java:1737)
 at net.sf.saxon.s9api.XsltTransformer.transform(XsltTransformer.java:402)
 ... 33 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

If I use 1.3.1, I get this error:

Error
  SXCH0003: org.apache.fop.fo.ValidationException: Property ID
  "POST_addUserCredential_v2.0_users__userId__OS-KSADM_credentials_" (found on "fo:block")
  previously used; ID values must be unique within a document! (See position 4148:-1):
  null:4148:-1: Property ID
  "POST_addUserCredential_v2.0_users__userId__OS-KSADM_credentials_" (found on "fo:block")
  previously used; ID values must be unique within a document! (See position 4148:-1)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.359s
[INFO] Finished at: Mon Nov 12 16:33:08 CST 2012
[INFO] Final Memory: 22M/120M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.rackspace.cloud.api:clouddocs-maven-plugin:1.3.1:generate-pdf (g1) on project docs: Failed to transform to PDF: org.apache.fop.fo.ValidationException: Property ID "POST_addUserCredential_v2.0_users__userId__OS-KSADM_credentials_" (found on "fo:block") previously used; ID values must be unique within a document! (See position 4148:-1): null:4148:-1: Property ID "POST_addUserCredential_v2.0_users__userId__OS-KSADM_credentials_" (found on "fo:block") previously used; ID values must be unique within a document! (See position 4148:-1) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.rackspace.cloud.api:clouddocs-maven-plugin:1.3.1:generate-pdf (g1) on project docs: Failed to transform to PDF
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
 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:319)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
 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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to transform to PDF
 at com.rackspace.cloud.api.docs.PDFMojo.postProcessResult(PDFMojo.java:256)
 at com.agilejava.docbkx.maven.AbstractTransformerMojo.execute(AbstractTransformerMojo.java:166)
 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
 ... 19 more
Caused by: net.sf.saxon.trans.XPathException: org.apache.fop.fo.ValidationException: Property ID "POST_addUserCredential_v2.0_users__userId__OS-KSADM_credentials_" (found on "fo:block") previously used; ID values must be unique within a document! (See position 4148:-1)
 at net.sf.saxon.event.ContentHandlerProxy.handleSAXException(ContentHandlerProxy.java:531)
 at net.sf.saxon.event.ContentHandlerProxy.startContent(ContentHandlerProxy.java:375)
 at net.sf.saxon.event.NamespaceReducer.startContent(NamespaceReducer.java:197)
 at net.sf.saxon.event.ReceivingContentHandler.startElement(ReceivingContentHandler.java:351)
 at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
 at org.apache.xerces.impl.XMLNSDocumentScannerImpl.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 net.sf.saxon.event.Sender.sendSAXSource(Sender.java:400)
 at net.sf.saxon.event.Sender.send(Sender.java:180)
 at net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:35)
 at com.rackspace.cloud.api.docs.PDFMojo.postProcessResult(PDFMojo.java:244)
 ... 22 more
Caused by: org.apache.fop.fo.ValidationException: Property ID "POST_addUserCredential_v2.0_users__userId__OS-KSADM_credentials_" (found on "fo:block") previously used; ID values must be unique within a document! (See position 4148:-1)
 at org.apache.fop.events.ValidationExceptionFactory.createException(ValidationExceptionFactory.java:38)
 at org.apache.fop.events.EventExceptionManager.throwException(EventExceptionManager.java:54)
 at org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.java:175)
 at $Proxy17.idNotUnique(Unknown Source)
 at org.apache.fop.fo.FObj.checkId(FObj.java:172)
 at org.apache.fop.fo.FObj.startOfNode(FObj.java:153)
 at org.apache.fop.fo.flow.Block.startOfNode(Block.java:142)
 at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:327)
 at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171)
 at net.sf.saxon.event.ContentHandlerProxy.startContent(ContentHandlerProxy.java:362)
 ... 37 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Tags: doc-builds
Anne Gentle (annegentle)
description: updated
Tom Fifield (fifieldt)
tags: added: doc-builds
Changed in openstack-api-site:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Anne Gentle (annegentle) wrote :

More info. If you use the files in the "master" branch and only change the pom.xml to use 1.5.1 (from 1.3.0), then this error results:

INFO: 380:51:[INFO] Including file:/Users/anne.gentle/src/identity-api/openstack-identity-api/src/docbkx/common/xsd/version.xsd
Nov 13, 2012 1:19:55 PM com.xmlcalabash.util.DefaultXProcMessageListener info
INFO: 380:51:[INFO] Flattening resource paths
Nov 13, 2012 1:19:56 PM com.xmlcalabash.util.DefaultXProcMessageListener error
SEVERE: 442:err:XPTY0004:A sequence of more than one item is not allowed as the 7th argument of concat()
Nov 13, 2012 1:19:56 PM com.xmlcalabash.util.DefaultXProcMessageListener error
SEVERE: A sequence of more than one item is not allowed as the 7th argument of concat()
Nov 13, 2012 1:19:56 PM com.xmlcalabash.util.DefaultXProcMessageListener error
SEVERE: A sequence of more than one item is not allowed as the 7th argument of concat()
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.679s
[INFO] Finished at: Tue Nov 13 13:19:56 CST 2012
[INFO] Final Memory: 15M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.rackspace.cloud.api:clouddocs-maven-plugin:1.5.1:generate-pdf (g1) on project docs: Execution g1 of goal com.rackspace.cloud.api:clouddocs-maven-plugin:1.5.1:generate-pdf failed: net.sf.saxon.s9api.SaxonApiException: A sequence of more than one item is not allowed as the 7th argument of concat() -> [Help 1]

Changed in openstack-api-site:
assignee: nobody → David Cramer (david-thingbag)
Revision history for this message
Anne Gentle (annegentle) wrote :

Guide with re-worked source now builds on 1.8.0 so this bug is irrelevant.

Changed in openstack-api-site:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.