ServiceMix
  1. ServiceMix
  2. SM-1020

Invalid query.xq generated by servicemix-saxon-xquery-service-unit archetype

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.1.2, 3.2
    • Component/s: tooling
    • Labels:
      None

      Description

      hi,
      i compile the saxon component and deploy on servicemix-3.1.1
      here the following xbean.xml

      <beans xmlns:saxon="http://servicemix.apache.org/saxon/1.0"
      xmlns:example="http://example.com/exampleService">
      <!-- START SNIPPET: xquery -->
      <saxon:xquery service="example:xquery" endpoint="endpoint"
      resource="classpath:query.xq" />
      <!-- END SNIPPET: xquery -->
      <!-- START SNIPPET: xquery-inline -->
      <saxon:xquery service="example:xquery-inline" endpoint="endpoint">
      <!-- CDATA are not supported currently -->
      <saxon:query>
      for $x in /bookstore/book
      where $x/price > 30
      return $x/title
      </saxon:query>
      <saxon:outputProperties>
      <saxon:property key="

      {http://saxon.sf.net/}

      wrap-result-sequence">yes</saxon:property>
      </saxon:outputProperties>
      </saxon:xquery>
      <!-- END SNIPPET: xquery-inline -->

      <!-- START SNIPPET: xquery-dynamic -->
      <saxon:xquery service="example:xquery-dynamic" endpoint="endpoint">
      <saxon:expression>
      <bean class="org.apache.servicemix.expression.PropertyExpression">
      <property name="property" value="xquery.source" />
      </bean>
      </saxon:expression>
      </saxon:xquery>
      <!-- END SNIPPET: xquery-dynamic -->
      </beans>

      i dont touch the query.xq (the problem seems to come from this file)

      My error is :

      Error on line 18 column 8
      XPST0003: XQuery syntax error in #...er the License. --> <titles> {#:
      Unexpected token ">" beyond end of query
      [Fatal Error] :14:47: The element type "titles" must be terminated by the matching end-tag "</titles>".
      WARN - ServiceAssemblyLifeCycle - Could not parse result exception
      org.xml.sax.SAXParseException: The element type "titles" must be terminated by the matching end-tag "</titles>".
      at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      at org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.parse(ServiceAssemblyLifeCycle.java:421)
      at org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.getComponentFailure(ServiceAssemblyLifeCycle.java:402)
      at org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:132)
      at org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:374)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:337)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:646)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(AutoDeploymentService.java:62)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:609)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)
      INFO - ServiceUnitLifeCycle - Starting service unit: mc-jsr181-su
      INFO - ServiceUnitLifeCycle - Starting service unit: mc-http-su
      INFO - DeploymentService - Error in start
      java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
      <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" version="1.0">
      <jbi-task-result>
      <frmwk-task-result>
      <frmwk-task-result-details>
      <task-result-details>
      <task-id>start</task-id>
      <task-result>FAILED</task-result>
      <message-type>ERROR</message-type>
      </task-result-details>
      </frmwk-task-result-details>
      </frmwk-task-result>
      <component-task-result>
      <component-name>servicemix-saxon</component-name>
      <component-task-result-details>
      <task-result-details>
      <task-id>start</task-id>
      <task-result>FAILED</task-result>
      <message-type>ERROR</message-type>
      <task-status-msg>
      <msg-loc-info>
      <loc-token/>
      <loc-message>Unable to parse result string</loc-message>
      </msg-loc-info>
      </task-status-msg>
      <exception-info>
      <nesting-level>1</nesting-level>
      <loc-token/>
      <loc-message><component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
      <component-name>servicemix-saxon</component-name>
      <component-task-result-details>
      <task-result-details>
      <task-id>start</task-id>
      <task-result>FAILED</task-result>
      <message-type>ERROR</message-type>
      <task-status-msg><msg-loc-info><loc-token/><loc-message>Unable to start service unit</loc-message></msg-loc-info></task-status-msg>
      <exception-info>
      <nesting-level>1</nesting-level>
      <msg-loc-info>
      <loc-token />
      <loc-message>XQuery syntax error in #...er the License. --> <titles> {#:
      Unexpected token ">" beyond end of query</loc-message>
      <stack-trace><![CDATA[; Line#: 18; Column#: 8
      net.sf.saxon.trans.StaticError: XQuery syntax error in #...er the License. --> <titles> {#:
      Unexpected token ">" beyond end of query
      at net.sf.saxon.query.QueryParser.grumble(QueryParser.java:317)
      at net.sf.saxon.expr.ExpressionParser.grumble(ExpressionParser.java:103)
      at net.sf.saxon.query.QueryParser.parseQuery(QueryParser.java:252)
      at net.sf.saxon.query.QueryParser.makeXQueryExpression(QueryParser.java:101)
      at net.sf.saxon.query.StaticQueryContext.compileQuery(StaticQueryContext.java:472)
      at net.sf.saxon.query.StaticQueryContext.compileQuery(StaticQueryContext.java:530)
      at org.apache.servicemix.saxon.XQueryEndpoint.start(XQueryEndpoint.java:103)
      at org.apache.servicemix.common.endpoints.SimpleEndpoint.activate(SimpleEndpoint.java:55)
      at org.apache.servicemix.saxon.SaxonEndpoint.activate(SaxonEndpoint.java:205)
      at org.apache.servicemix.common.ServiceUnit.start(ServiceUnit.java:55)
      at org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUnitManager.java:151)
      at org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.start(ServiceUnitLifeCycle.java:103)
      at org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:130)
      at org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:374)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:337)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:646)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(AutoDeploymentService.java:62)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:609)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)
      ]]></stack-trace>
      </msg-loc-info>
      </exception-info>
      </task-result-details>
      </component-task-result-details>
      </component-task-result></loc-message>
      <stack-trace><![CDATA[javax.jbi.management.DeploymentException: <component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
      <component-name>servicemix-saxon</component-name>
      <component-task-result-details>
      <task-result-details>
      <task-id>start</task-id>
      <task-result>FAILED</task-result>
      <message-type>ERROR</message-type>
      <task-status-msg><msg-loc-info><loc-token/><loc-message>Unable to start service unit</loc-message></msg-loc-info></task-status-msg>
      <exception-info>
      <nesting-level>1</nesting-level>
      <msg-loc-info>
      <loc-token />
      <loc-message>XQuery syntax error in #...er the License. --> <titles> {#:
      Unexpected token ">" beyond end of query</loc-message>
      <stack-trace><![CDATA[; Line#: 18; Column#: 8
      net.sf.saxon.trans.StaticError: XQuery syntax error in #...er the License. --> <titles> {#:
      Unexpected token ">" beyond end of query
      at net.sf.saxon.query.QueryParser.grumble(QueryParser.java:317)
      at net.sf.saxon.expr.ExpressionParser.grumble(ExpressionParser.java:103)
      at net.sf.saxon.query.QueryParser.parseQuery(QueryParser.java:252)
      at net.sf.saxon.query.QueryParser.makeXQueryExpression(QueryParser.java:101)
      at net.sf.saxon.query.StaticQueryContext.compileQuery(StaticQueryContext.java:472)
      at net.sf.saxon.query.StaticQueryContext.compileQuery(StaticQueryContext.java:530)
      at org.apache.servicemix.saxon.XQueryEndpoint.start(XQueryEndpoint.java:103)
      at org.apache.servicemix.common.endpoints.SimpleEndpoint.activate(SimpleEndpoint.java:55)
      at org.apache.servicemix.saxon.SaxonEndpoint.activate(SaxonEndpoint.java:205)
      at org.apache.servicemix.common.ServiceUnit.start(ServiceUnit.java:55)
      at org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUnitManager.java:151)
      at org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.start(ServiceUnitLifeCycle.java:103)
      at org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:130)
      at org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:374)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:337)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:646)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(AutoDeploymentService.java:62)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:609)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)
      ]]]]><![CDATA[></stack-trace>
      </msg-loc-info>
      </exception-info>
      </task-result-details>
      </component-task-result-details>
      </component-task-result>
      at org.apache.servicemix.common.BaseServiceUnitManager.failure(BaseServiceUnitManager.java:283)
      at org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUnitManager.java:158)
      at org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.start(ServiceUnitLifeCycle.java:103)
      at org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:130)
      at org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:374)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:337)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:646)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(AutoDeploymentService.java:62)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:609)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)
      ]]></stack-trace>
      </exception-info>
      </task-result-details>
      </component-task-result-details>
      </component-task-result>
      </jbi-task-result>
      </jbi-task>

      at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:121)
      at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:107)
      at org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:144)
      at org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:374)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:337)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:646)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(AutoDeploymentService.java:62)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:609)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)
      ERROR - AutoDeploymentService - Failed to update Service Assembly: mc-sa
      java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
      <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" version="1.0">
      <jbi-task-result>
      <frmwk-task-result>
      <frmwk-task-result-details>
      <task-result-details>
      <task-id>start</task-id>
      <task-result>FAILED</task-result>
      <message-type>ERROR</message-type>
      </task-result-details>
      </frmwk-task-result-details>
      </frmwk-task-result>
      <component-task-result>
      <component-name>servicemix-saxon</component-name>
      <component-task-result-details>
      <task-result-details>
      <task-id>start</task-id>
      <task-result>FAILED</task-result>
      <message-type>ERROR</message-type>
      <task-status-msg>
      <msg-loc-info>
      <loc-token/>
      <loc-message>Unable to parse result string</loc-message>
      </msg-loc-info>
      </task-status-msg>
      <exception-info>
      <nesting-level>1</nesting-level>
      <loc-token/>
      <loc-message><component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
      <component-name>servicemix-saxon</component-name>
      <component-task-result-details>
      <task-result-details>
      <task-id>start</task-id>
      <task-result>FAILED</task-result>
      <message-type>ERROR</message-type>
      <task-status-msg><msg-loc-info><loc-token/><loc-message>Unable to start service unit</loc-message></msg-loc-info></task-status-msg>
      <exception-info>
      <nesting-level>1</nesting-level>
      <msg-loc-info>
      <loc-token />
      <loc-message>XQuery syntax error in #...er the License. --> <titles> {#:
      Unexpected token ">" beyond end of query</loc-message>
      <stack-trace><![CDATA[; Line#: 18; Column#: 8
      net.sf.saxon.trans.StaticError: XQuery syntax error in #...er the License. --> <titles> {#:
      Unexpected token ">" beyond end of query
      at net.sf.saxon.query.QueryParser.grumble(QueryParser.java:317)
      at net.sf.saxon.expr.ExpressionParser.grumble(ExpressionParser.java:103)
      at net.sf.saxon.query.QueryParser.parseQuery(QueryParser.java:252)
      at net.sf.saxon.query.QueryParser.makeXQueryExpression(QueryParser.java:101)
      at net.sf.saxon.query.StaticQueryContext.compileQuery(StaticQueryContext.java:472)
      at net.sf.saxon.query.StaticQueryContext.compileQuery(StaticQueryContext.java:530)
      at org.apache.servicemix.saxon.XQueryEndpoint.start(XQueryEndpoint.java:103)
      at org.apache.servicemix.common.endpoints.SimpleEndpoint.activate(SimpleEndpoint.java:55)
      at org.apache.servicemix.saxon.SaxonEndpoint.activate(SaxonEndpoint.java:205)
      at org.apache.servicemix.common.ServiceUnit.start(ServiceUnit.java:55)
      at org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUnitManager.java:151)
      at org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.start(ServiceUnitLifeCycle.java:103)
      at org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:130)
      at org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:374)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:337)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:646)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(AutoDeploymentService.java:62)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:609)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)
      ]]></stack-trace>
      </msg-loc-info>
      </exception-info>
      </task-result-details>
      </component-task-result-details>
      </component-task-result></loc-message>
      <stack-trace><![CDATA[javax.jbi.management.DeploymentException: <component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
      <component-name>servicemix-saxon</component-name>
      <component-task-result-details>
      <task-result-details>
      <task-id>start</task-id>
      <task-result>FAILED</task-result>
      <message-type>ERROR</message-type>
      <task-status-msg><msg-loc-info><loc-token/><loc-message>Unable to start service unit</loc-message></msg-loc-info></task-status-msg>
      <exception-info>
      <nesting-level>1</nesting-level>
      <msg-loc-info>
      <loc-token />
      <loc-message>XQuery syntax error in #...er the License. --> <titles> {#:
      Unexpected token ">" beyond end of query</loc-message>
      <stack-trace><![CDATA[; Line#: 18; Column#: 8
      net.sf.saxon.trans.StaticError: XQuery syntax error in #...er the License. --> <titles> {#:
      Unexpected token ">" beyond end of query
      at net.sf.saxon.query.QueryParser.grumble(QueryParser.java:317)
      at net.sf.saxon.expr.ExpressionParser.grumble(ExpressionParser.java:103)
      at net.sf.saxon.query.QueryParser.parseQuery(QueryParser.java:252)
      at net.sf.saxon.query.QueryParser.makeXQueryExpression(QueryParser.java:101)
      at net.sf.saxon.query.StaticQueryContext.compileQuery(StaticQueryContext.java:472)
      at net.sf.saxon.query.StaticQueryContext.compileQuery(StaticQueryContext.java:530)
      at org.apache.servicemix.saxon.XQueryEndpoint.start(XQueryEndpoint.java:103)
      at org.apache.servicemix.common.endpoints.SimpleEndpoint.activate(SimpleEndpoint.java:55)
      at org.apache.servicemix.saxon.SaxonEndpoint.activate(SaxonEndpoint.java:205)
      at org.apache.servicemix.common.ServiceUnit.start(ServiceUnit.java:55)
      at org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUnitManager.java:151)
      at org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.start(ServiceUnitLifeCycle.java:103)
      at org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:130)
      at org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:374)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:337)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:646)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(AutoDeploymentService.java:62)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:609)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)
      ]]]]><![CDATA[></stack-trace>
      </msg-loc-info>
      </exception-info>
      </task-result-details>
      </component-task-result-details>
      </component-task-result>
      at org.apache.servicemix.common.BaseServiceUnitManager.failure(BaseServiceUnitManager.java:283)
      at org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUnitManager.java:158)
      at org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.start(ServiceUnitLifeCycle.java:103)
      at org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:130)
      at org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:374)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:337)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:646)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(AutoDeploymentService.java:62)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:609)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)
      ]]></stack-trace>
      </exception-info>
      </task-result-details>
      </component-task-result-details>
      </component-task-result>
      </jbi-task-result>
      </jbi-task>

      at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:121)
      at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:107)
      at org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:144)
      at org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:374)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:337)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:646)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(AutoDeploymentService.java:62)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:609)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)
      WARN - AutoDeploymentService - Directory: deploy: Automatic install of /home/servicemix/apache-servicemix-3.1.1-incubating/deploy/mc-sa-1.0-SNAPSHOT.jar failed
      javax.jbi.management.DeploymentException: Failed to update Service Assembly: mc-sa
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:349)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:646)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(AutoDeploymentService.java:62)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:609)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)
      Caused by: java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
      <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" version="1.0">
      <jbi-task-result>
      <frmwk-task-result>
      <frmwk-task-result-details>
      <task-result-details>
      <task-id>start</task-id>
      <task-result>FAILED</task-result>
      <message-type>ERROR</message-type>
      </task-result-details>
      </frmwk-task-result-details>
      </frmwk-task-result>
      <component-task-result>
      <component-name>servicemix-saxon</component-name>
      <component-task-result-details>
      <task-result-details>
      <task-id>start</task-id>
      <task-result>FAILED</task-result>
      <message-type>ERROR</message-type>
      <task-status-msg>
      <msg-loc-info>
      <loc-token/>
      <loc-message>Unable to parse result string</loc-message>
      </msg-loc-info>
      </task-status-msg>
      <exception-info>
      <nesting-level>1</nesting-level>
      <loc-token/>
      <loc-message><component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
      <component-name>servicemix-saxon</component-name>
      <component-task-result-details>
      <task-result-details>
      <task-id>start</task-id>
      <task-result>FAILED</task-result>
      <message-type>ERROR</message-type>
      <task-status-msg><msg-loc-info><loc-token/><loc-message>Unable to start service unit</loc-message></msg-loc-info></task-status-msg>
      <exception-info>
      <nesting-level>1</nesting-level>
      <msg-loc-info>
      <loc-token />
      <loc-message>XQuery syntax error in #...er the License. --> <titles> {#:
      Unexpected token ">" beyond end of query</loc-message>
      <stack-trace><![CDATA[; Line#: 18; Column#: 8
      net.sf.saxon.trans.StaticError: XQuery syntax error in #...er the License. --> <titles> {#:
      Unexpected token ">" beyond end of query
      at net.sf.saxon.query.QueryParser.grumble(QueryParser.java:317)
      at net.sf.saxon.expr.ExpressionParser.grumble(ExpressionParser.java:103)
      at net.sf.saxon.query.QueryParser.parseQuery(QueryParser.java:252)
      at net.sf.saxon.query.QueryParser.makeXQueryExpression(QueryParser.java:101)
      at net.sf.saxon.query.StaticQueryContext.compileQuery(StaticQueryContext.java:472)
      at net.sf.saxon.query.StaticQueryContext.compileQuery(StaticQueryContext.java:530)
      at org.apache.servicemix.saxon.XQueryEndpoint.start(XQueryEndpoint.java:103)
      at org.apache.servicemix.common.endpoints.SimpleEndpoint.activate(SimpleEndpoint.java:55)
      at org.apache.servicemix.saxon.SaxonEndpoint.activate(SaxonEndpoint.java:205)
      at org.apache.servicemix.common.ServiceUnit.start(ServiceUnit.java:55)
      at org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUnitManager.java:151)
      at org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.start(ServiceUnitLifeCycle.java:103)
      at org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:130)
      at org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:374)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:337)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:646)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(AutoDeploymentService.java:62)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:609)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)
      ]]></stack-trace>
      </msg-loc-info>
      </exception-info>
      </task-result-details>
      </component-task-result-details>
      </component-task-result></loc-message>
      <stack-trace><![CDATA[javax.jbi.management.DeploymentException: <component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
      <component-name>servicemix-saxon</component-name>
      <component-task-result-details>
      <task-result-details>
      <task-id>start</task-id>
      <task-result>FAILED</task-result>
      <message-type>ERROR</message-type>
      <task-status-msg><msg-loc-info><loc-token/><loc-message>Unable to start service unit</loc-message></msg-loc-info></task-status-msg>
      <exception-info>
      <nesting-level>1</nesting-level>
      <msg-loc-info>
      <loc-token />
      <loc-message>XQuery syntax error in #...er the License. --> <titles> {#:
      Unexpected token ">" beyond end of query</loc-message>
      <stack-trace><![CDATA[; Line#: 18; Column#: 8
      net.sf.saxon.trans.StaticError: XQuery syntax error in #...er the License. --> <titles> {#:
      Unexpected token ">" beyond end of query
      at net.sf.saxon.query.QueryParser.grumble(QueryParser.java:317)
      at net.sf.saxon.expr.ExpressionParser.grumble(ExpressionParser.java:103)
      at net.sf.saxon.query.QueryParser.parseQuery(QueryParser.java:252)
      at net.sf.saxon.query.QueryParser.makeXQueryExpression(QueryParser.java:101)
      at net.sf.saxon.query.StaticQueryContext.compileQuery(StaticQueryContext.java:472)
      at net.sf.saxon.query.StaticQueryContext.compileQuery(StaticQueryContext.java:530)
      at org.apache.servicemix.saxon.XQueryEndpoint.start(XQueryEndpoint.java:103)
      at org.apache.servicemix.common.endpoints.SimpleEndpoint.activate(SimpleEndpoint.java:55)
      at org.apache.servicemix.saxon.SaxonEndpoint.activate(SaxonEndpoint.java:205)
      at org.apache.servicemix.common.ServiceUnit.start(ServiceUnit.java:55)
      at org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUnitManager.java:151)
      at org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.start(ServiceUnitLifeCycle.java:103)
      at org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:130)
      at org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:374)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:337)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:646)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(AutoDeploymentService.java:62)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:609)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)
      ]]]]><![CDATA[></stack-trace>
      </msg-loc-info>
      </exception-info>
      </task-result-details>
      </component-task-result-details>
      </component-task-result>
      at org.apache.servicemix.common.BaseServiceUnitManager.failure(BaseServiceUnitManager.java:283)
      at org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUnitManager.java:158)
      at org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.start(ServiceUnitLifeCycle.java:103)
      at org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:130)
      at org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:374)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:337)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:646)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(AutoDeploymentService.java:62)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:609)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)
      ]]></stack-trace>
      </exception-info>
      </task-result-details>
      </component-task-result-details>
      </component-task-result>
      </jbi-task-result>
      </jbi-task>

      at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:121)
      at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:107)
      at org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:144)
      at org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:374)
      at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:337)
      ... 5 more

      Regards,
      Erik

        Activity

        Jeff Turner made changes -
        Project Import Sat Nov 27 00:46:19 EST 2010 [ 1290836779991 ]
        Gert Vanthienen made changes -
        Fix Version/s 3.1.2 [ 11824 ]
        Fix Version/s 3.2 [ 11810 ]
        Resolution Fixed [ 1 ]
        Status Reopened [ 4 ] Resolved [ 5 ]
        Show
        Gert Vanthienen added a comment - Changed the comment syntax in the archetype http://svn.apache.org/viewvc?view=rev&revision=563873 http://svn.apache.org/viewvc?view=rev&revision=563877
        Gert Vanthienen made changes -
        Component/s tooling [ 11530 ]
        Summary Problem with the saxon-xquery component and the generic query.xq file Invalid query.xq generated by servicemix-saxon-xquery-service-unit archetype
        Component/s servicemix-saxon [ 11583 ]
        Gert Vanthienen made changes -
        Status Closed [ 6 ] Reopened [ 4 ]
        Assignee Gert Vanthienen [ gertvanthienen ]
        Resolution Won't Fix [ 2 ]
        Hide
        Gert Vanthienen added a comment -

        The query.xq Erik refers to is generated by our own servicemix-saxon-xquery-service-unit archetype. It would be better to fix the archetype to provide the users with a correct query.xq sample file.

        Show
        Gert Vanthienen added a comment - The query.xq Erik refers to is generated by our own servicemix-saxon-xquery-service-unit archetype. It would be better to fix the archetype to provide the users with a correct query.xq sample file.
        Guillaume Nodet made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Won't Fix [ 2 ]
        Hide
        Admin Altervisions added a comment - - edited

        i found the problem,
        The Apache License is borned with the followind comment <!-- -->
        We need to replace them with the default xquery comment (:

        Regards,
        Erik

        Show
        Admin Altervisions added a comment - - edited i found the problem, The Apache License is borned with the followind comment <!-- --> We need to replace them with the default xquery comment (: Regards, Erik
        Admin Altervisions created issue -

          People

          • Assignee:
            Gert Vanthienen
            Reporter:
            Admin Altervisions
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development