We just upgraded to Marklogic server 5.0-3 and now I am getting this error for
my application. Did anyone face this issue with their application?
500 Internal Server Error
XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected
QName_, expecting EmptyTagClose_ or StartTagClose_
in /application/views/footer.xqy, at 16:31,
in xdmp:invoke("/application/views/footer.xqy", (fn:QName("", "data"),
map:map()), <options
xmlns="xdmp:eval"><isolation>different-transaction</isolation><prevent-deadlocks>t...</options>)
[1.0-ml]
in /system/xqmvc.xqy, at 105:4,
in _view("/application/views/footer.xqy", ()) [1.0-ml]
$view-file = "/application/views/footer.xqy"
$pairs = ()
in /system/xqmvc.xqy, at 119:8,
in xqmvc:view("footer", ()) [1.0-ml]
$view = "footer"
$pairs = ()
$view-file = "/application/views/footer.xqy"
in /application/controllers/word.xqy, at 216:12,
in word-controller:error() [1.0-ml]
in /system/error.xqy, at 9:7 [1.0-ml]
$set-var = ()
Old Error
<error:error
xsi:schemaLocation="http://marklogic.com/xdmp/error error.xsd"
xmlns:error="http://marklogic.com/xdmp/error"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<error:code>XDMP-UNEXPECTED</error:code>
<error:name>err:XPST0003</error:name>
<error:xquery-version>1.0-ml</error:xquery-version>
<error:message>Unexpected token</error:message>
<error:format-string>XDMP-UNEXPECTED: (err:XPST0003) Unexpected
token syntax error, unexpected QName_, expecting EmptyTagClose_ or
StartTagClose_</error:format-string>
<error:retryable>false</error:retryable>
<error:expr> </error:expr>
<error:data>
<error:datum>syntax error, unexpected QName_, expecting
EmptyTagClose_ or StartTagClose_</error:datum>
<error:datum/>
</error:data>
<error:stack>
<error:frame>
<error:uri>/application/views/footer.xqy</error:uri>
<error:line>16</error:line>
<error:column>31</error:column>
<error:operation>xdmp:invoke("/application/views/footer.xqy",
(fn:QName("", "data"), map:map()), &lt;options
xmlns="xdmp:eval"&gt;&lt;isolation&gt;different-transaction&lt;/isolation&gt;&lt;prevent-deadlocks&gt;t...&lt;/options&gt;)</error:operation>
<error:xquery-version>1.0-ml</error:xquery-version>
</error:frame>
<error:frame>
<error:uri>/system/xqmvc.xqy</error:uri>
<error:line>105</error:line>
<error:column>4</error:column>
<error:operation>_view("/application/views/footer.xqy",
())</error:operation>
<error:variables>
<error:variable>
<error:name
xmlns="http://scholarsportal.info/xqmvc/core">view-file</error:name>
<error:value>"/application/views/footer.xqy"</error:value>
</error:variable>
<error:variable>
<error:name
xmlns="http://scholarsportal.info/xqmvc/core">pairs</error:name>
<error:value>()</error:value>
</error:variable>
</error:variables>
<error:xquery-version>1.0-ml</error:xquery-version>
</error:frame>
<error:frame>
<error:uri>/system/xqmvc.xqy</error:uri>
<error:line>119</error:line>
<error:column>8</error:column>
<error:operation>xqmvc:view("footer",
())</error:operation>
<error:variables>
<error:variable>
<error:name
xmlns="http://scholarsportal.info/xqmvc/core">view</error:name>
<error:value>"footer"</error:value>
</error:variable>
<error:variable>
<error:name
xmlns="http://scholarsportal.info/xqmvc/core">pairs</error:name>
<error:value>()</error:value>
</error:variable>
<error:variable>
<error:name
xmlns="http://scholarsportal.info/xqmvc/core">view-file</error:name>
<error:value>"/application/views/footer.xqy"</error:value>
</error:variable>
</error:variables>
<error:xquery-version>1.0-ml</error:xquery-version>
</error:frame>
<error:frame>
<error:uri>/application/controllers/word.xqy</error:uri>
<error:line>121</error:line>
<error:column>18</error:column>
<error:operation>search()</error:operation>
<error:variables>
<error:variable>
<error:name
xmlns="http://scholarsportal.info/xqmvc/controller">id-query</error:name>
<error:value>()</error:value>
</error:variable>
<error:variable>
<error:name
xmlns="http://scholarsportal.info/xqmvc/controller">word-query</error:name>
<error:value>()</error:value>
</error:variable>
<error:variable>
<error:name
xmlns="http://scholarsportal.info/xqmvc/controller">word-def</error:name>
<error:value>()</error:value>
</error:variable>
<error:variable>
<error:name
xmlns="http://scholarsportal.info/xqmvc/controller">page-title</error:name>
<error:value>"American Heritage Dictionary -
Search"</error:value>
</error:variable>
</error:variables>
<error:xquery-version>1.0-ml</error:xquery-version>
</error:frame>
<error:frame>
<error:uri>/application/controllers/word.xqy</error:uri>
<error:line>30</error:line>
<error:column>4</error:column>
<error:operation>xqmvc-ctrlr:index()</error:operation>
<error:xquery-version>1.0-ml</error:xquery-version>
</error:frame>
<error:frame>
<error:line>1</error:line>
<error:column>123</error:column>
<error:operation>xdmp:eval("import module namespace
xqmvc-ctrlr = &amp;quot;http://scholarsporta...", (),
&lt;options
xmlns="xdmp:eval"&gt;&lt;isolation&gt;different-transaction&lt;/isolation&gt;&lt;prevent-deadlocks&gt;t...&lt;/options&gt;)</error:operation>
<error:xquery-version>1.0-ml</error:xquery-version>
</error:frame>
<error:frame>
<error:uri>/system/xqmvc.xqy</error:uri>
<error:line>63</error:line>
<error:column>12</error:column>
<error:operation>_controller("/application/controllers/word.xqy",
"index")</error:operation>
<error:variables>
<error:variable>
<error:name
xmlns="http://scholarsportal.info/xqmvc/core">controller-file</error:name>
<error:value>"/application/controllers/word.xqy"</error:value>
</error:variable>
<error:variable>
<error:name
xmlns="http://scholarsportal.info/xqmvc/core">function</error:name>
<error:value>"index"</error:value>
</error:variable>
<error:variable>
<error:name
xmlns="http://scholarsportal.info/xqmvc/core">import-declaration</error:name>
<error:value>"import module namespace xqmvc-ctrlr =
&amp;quot;http://scholarsporta..."</error:value>
</error:variable>
<error:variable>
<error:name
xmlns="http://scholarsportal.info/xqmvc/core">function-call</error:name>
<error:value>"xqmvc-ctrlr:index()"</error:value>
</error:variable>
</error:variables>
<error:xquery-version>1.0-ml</error:xquery-version>
</error:frame>
<error:frame>
<error:uri>/system/xqmvc.xqy</error:uri>
<error:line>77</error:line>
<error:column>8</error:column>
<error:operation>xqmvc:controller("word",
"index")</error:operation>
<error:variables>
<error:variable>
<error:name
xmlns="http://scholarsportal.info/xqmvc/core">controller</error:name>
<error:value>"word"</error:value>
</error:variable>
<error:variable>
<error:name
xmlns="http://scholarsportal.info/xqmvc/core">function</error:name>
<error:value>"index"</error:value>
</error:variable>
<error:variable>
<error:name
xmlns="http://scholarsportal.info/xqmvc/core">controller-file</error:name>
<error:value>"/application/controllers/word.xqy"</error:value>
</error:variable>
</error:variables>
<error:xquery-version>1.0-ml</error:xquery-version>
</error:frame>
<error:frame>
<error:uri>/</error:uri>
<error:line>34</error:line>
<error:column>8</error:column>
<error:variables>
<error:variable>
<error:name xmlns="">controller</error:name>
<error:value>"word"</error:value>
</error:variable>
<error:variable>
<error:name xmlns="">function</error:name>
<error:value>"index"</error:value>
</error:variable>
<error:variable>
<error:name xmlns="">plugin</error:name>
<error:value>""</error:value>
</error:variable>
<error:variable>
<error:name xmlns="">log</error:name>
<error:value>()</error:value>
</error:variable>
</error:variables>
<error:xquery-version>1.0-ml</error:xquery-version>
</error:frame>
</error:stack>
</error:error>
Best Regards,
Kashif Khan
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general