Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when there's a comment in x:context #38

Closed
josteinaj opened this issue Mar 10, 2016 · 0 comments
Closed

Error when there's a comment in x:context #38

josteinaj opened this issue Mar 10, 2016 · 0 comments
Assignees
Labels
Milestone

Comments

@josteinaj
Copy link
Member

josteinaj commented Mar 10, 2016

When there's a comment in a x:context, for instance something like this:

<x:context>
    <!-- some comment -->
    <x:document ...>
</x:context>

...then this exception is thrown:

[ERROR] Required item type of first operand of '/' is node(); supplied value has item type xs:string
[ERROR] Required item type of first operand of '/' is node(); supplied value has item type xs:string
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE!
org.daisy.maven.xproc.api.XProcExecutionException: DAISY Pipeline failed to execute XProc
    at org.daisy.maven.xproc.pipeline.DaisyPipeline2.run(DaisyPipeline2.java:90)
    at org.daisy.maven.xproc.xprocspec.XProcSpecRunner.run(XProcSpecRunner.java:95)
    at org.daisy.maven.xproc.xprocspec.XProcSpecRunner.run(XProcSpecRunner.java:168)
    at NLBTest.runXProcSpec(NLBTest.java:95)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    at org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChild(ContainerTestRunner.java:67)
    at org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChild(ContainerTestRunner.java:37)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
    at org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.invokeViaJUnit(JUnitProbeInvoker.java:123)
    at org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.findAndInvoke(JUnitProbeInvoker.java:96)
    at org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.call(JUnitProbeInvoker.java:72)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at org.ops4j.pax.swissbox.framework.RemoteFrameworkImpl.invokeMethodOnService(RemoteFrameworkImpl.java:420)
    at org.ops4j.pax.swissbox.framework.RemoteFrameworkImpl.invokeMethodOnService(RemoteFrameworkImpl.java:393)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)
    at sun.rmi.transport.Transport$1.run(Transport.java:200)
    at sun.rmi.transport.Transport$1.run(Transport.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$250(TCPTransport.java:683)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: net.sf.saxon.s9api.SaxonApiException: Required item type of first operand of '/' is node(); supplied value has item type xs:string
    at org.daisy.common.xproc.calabash.impl.CalabashXProcPipeline.run(CalabashXProcPipeline.java:246)
    at org.daisy.common.xproc.calabash.impl.CalabashXProcPipeline.run(CalabashXProcPipeline.java:185)
    at org.daisy.maven.xproc.pipeline.DaisyPipeline2.run(DaisyPipeline2.java:81)
    ... 49 more
Caused by: net.sf.saxon.s9api.SaxonApiException: Required item type of first operand of '/' is node(); supplied value has item type xs:string
    at net.sf.saxon.s9api.XsltTransformer.transform(XsltTransformer.java:453)
    at com.xmlcalabash.library.XSLT.run(Unknown Source)
    at com.xmlcalabash.runtime.XAtomicStep.run(Unknown Source)
    at com.xmlcalabash.runtime.XPipeline.doRun(Unknown Source)
    at com.xmlcalabash.runtime.XPipeline.run(Unknown Source)
    at com.xmlcalabash.runtime.XPipelineCall.run(Unknown Source)
    at com.xmlcalabash.runtime.XPipeline.doRun(Unknown Source)
    at com.xmlcalabash.runtime.XPipeline.run(Unknown Source)
    at org.daisy.common.xproc.calabash.impl.CalabashXProcPipeline.run(CalabashXProcPipeline.java:242)
    ... 51 more
Caused by: net.sf.saxon.trans.XPathException: Required item type of first operand of '/' is node(); supplied value has item type xs:string
    at net.sf.saxon.expr.ItemTypeCheckingFunction.testConformance(ItemTypeCheckingFunction.java:71)
    at net.sf.saxon.expr.ItemTypeCheckingFunction.mapItem(ItemTypeCheckingFunction.java:51)
    at net.sf.saxon.expr.ItemMappingIterator.next(ItemMappingIterator.java:97)
    at net.sf.saxon.expr.ContextMappingIterator.next(ContextMappingIterator.java:59)
    at net.sf.saxon.value.SequenceExtent.<init>(SequenceExtent.java:112)
    at net.sf.saxon.expr.sort.DocumentOrderIterator.<init>(DocumentOrderIterator.java:38)
    at net.sf.saxon.expr.sort.DocumentSorter.iterate(DocumentSorter.java:145)
    at net.sf.saxon.value.MemoClosure.iterate(MemoClosure.java:112)
    at net.sf.saxon.expr.VariableReference.iterate(VariableReference.java:454)
    at net.sf.saxon.expr.Expression.effectiveBooleanValue(Expression.java:532)
    at net.sf.saxon.expr.instruct.Choose.evaluateItem(Choose.java:904)
    at net.sf.saxon.expr.Expression.effectiveBooleanValue(Expression.java:534)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:868)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:660)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:431)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:373)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:875)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:660)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:431)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:373)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:660)
    at net.sf.saxon.expr.instruct.Template.expand(Template.java:258)
    at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:347)
    at net.sf.saxon.expr.instruct.CallTemplate.processLeavingTail(CallTemplate.java:395)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:660)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:431)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:373)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:875)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
    at net.sf.saxon.expr.LetExpression.process(LetExpression.java:463)
    at net.sf.saxon.expr.instruct.ForEach.processLeavingTail(ForEach.java:479)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:875)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:660)
    at net.sf.saxon.expr.instruct.Template.expand(Template.java:258)
    at net.sf.saxon.expr.instruct.CallTemplate.process(CallTemplate.java:347)
    at net.sf.saxon.expr.instruct.CallTemplate.processLeavingTail(CallTemplate.java:395)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:660)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:431)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:373)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:660)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:431)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:373)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:875)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:660)
    at net.sf.saxon.expr.instruct.Choose.processLeavingTail(Choose.java:875)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:660)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
    at net.sf.saxon.expr.LetExpression.process(LetExpression.java:463)
    at net.sf.saxon.expr.instruct.ForEach.processLeavingTail(ForEach.java:479)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:660)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
    at net.sf.saxon.expr.LetExpression.process(LetExpression.java:463)
    at net.sf.saxon.expr.instruct.ForEach.processLeavingTail(ForEach.java:479)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:431)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:373)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:660)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:431)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:373)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:660)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:431)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:373)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
    at net.sf.saxon.expr.LetExpression.process(LetExpression.java:463)
    at net.sf.saxon.expr.instruct.ForEach.processLeavingTail(ForEach.java:479)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:660)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:431)
    at net.sf.saxon.expr.instruct.Copy.processLeavingTail(Copy.java:483)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
    at net.sf.saxon.expr.instruct.ForEach.processLeavingTail(ForEach.java:479)
    at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:613)
    at net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:660)
    at net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
    at net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:431)
    at net.sf.saxon.expr.instruct.Copy.processLeavingTail(Copy.java:483)
    at net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:613)
    at net.sf.saxon.expr.instruct.Template.applyLeavingTail(Template.java:239)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:1057)
    at net.sf.saxon.trans.TextOnlyCopyRuleSet.process(TextOnlyCopyRuleSet.java:65)
    at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:1045)
    at net.sf.saxon.Controller.transformDocument(Controller.java:2080)
    at net.sf.saxon.Controller.transform(Controller.java:1903)
    at net.sf.saxon.s9api.XsltTransformer.transform(XsltTransformer.java:450)
    ... 59 more

The exception suggests an issue with xproc-maven-plugin, but I'm not sure. More investigation needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant