[MarkLogic Dev General] WebDav Loading empty files

Khan, Kashif Kashif.Khan at hmhpub.com
Tue Mar 27 07:54:21 PDT 2012


Hello Everyone, I am on Marklogic 5.0-3 and I am not able to load files
using webdav. It was working fine on Marklogic 4.2-3 as soon as I upgraded
the Webdav throws error and does not load the files.

Can anyone help?
 
Best Regards,
Kashif Khan
Sr. Solutions Architect
Houghton Mifflin Harcourt, Orlando, FL
Office: (407) 345-3420
Cell: (407) 949-4697
 

"The water you touch in the river is the last of that which has passed and
the first of that which is coming" --Leonardo da Vinci





On 3/26/12 12:40 PM, "John Snelson" <john.snelson at marklogic.com> wrote:

>What does the code in footer.xqy look like?
>
>One bug fix that was made in 5.0-1 was to require quotes around
>attribute values in direct element constructor expressions - maybe you
>have unquoted attribute values in your program?
>
>John
>
>On 26/03/12 17:22, Khan, Kashif wrote:
>>
>>   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-de
>>adlocks>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
>>     &lt;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"&gt;
>>     &lt;error:code&gt;XDMP-UNEXPECTED&lt;/error:code&gt;
>>     &lt;error:name&gt;err:XPST0003&lt;/error:name&gt;
>>     &lt;error:xquery-version&gt;1.0-ml&lt;/error:xquery-version&gt;
>>     &lt;error:message&gt;Unexpected token&lt;/error:message&gt;
>>     &lt;error:format-string&gt;XDMP-UNEXPECTED: (err:XPST0003)
>>     Unexpected token syntax error, unexpected QName_, expecting
>>     EmptyTagClose_ or StartTagClose_&lt;/error:format-string&gt;
>>     &lt;error:retryable&gt;false&lt;/error:retryable&gt;
>>     &lt;error:expr&gt; &lt;/error:expr&gt; &lt;error:data&gt;
>>     &lt;error:datum&gt;syntax error, unexpected QName_, expecting
>>     EmptyTagClose_ or StartTagClose_&lt;/error:datum&gt;
>>     &lt;error:datum/&gt; &lt;/error:data&gt; &lt;error:stack&gt;
>>     &lt;error:frame&gt;
>>     &lt;error:uri&gt;/application/views/footer.xqy&lt;/error:uri&gt;
>>     &lt;error:line&gt;16&lt;/error:line&gt;
>>     &lt;error:column&gt;31&lt;/error:column&gt;
>>     &lt;error:operation&gt;xdmp:invoke("/application/views/footer.xqy",
>>     (fn:QName("", "data"), map:map()), &amp;lt;options
>>     
>>xmlns="xdmp:eval"&amp;gt;&amp;lt;isolation&amp;gt;different-transaction&a
>>mp;lt;/isolation&amp;gt;&amp;lt;prevent-deadlocks&amp;gt;t...&amp;lt;/opt
>>ions&amp;gt;)&lt;/error:operation&gt;
>>     &lt;error:xquery-version&gt;1.0-ml&lt;/error:xquery-version&gt;
>>     &lt;/error:frame&gt; &lt;error:frame&gt;
>>     &lt;error:uri&gt;/system/xqmvc.xqy&lt;/error:uri&gt;
>>     &lt;error:line&gt;105&lt;/error:line&gt;
>>     &lt;error:column&gt;4&lt;/error:column&gt;
>>     &lt;error:operation&gt;_view("/application/views/footer.xqy",
>>     ())&lt;/error:operation&gt; &lt;error:variables&gt;
>>     &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;view-file&lt;/error:name
>>&gt;
>>     
>>&lt;error:value&gt;"/application/views/footer.xqy"&lt;/error:value&gt;
>>     &lt;/error:variable&gt; &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;pairs&lt;/error:name&gt;
>>     &lt;error:value&gt;()&lt;/error:value&gt; &lt;/error:variable&gt;
>>     &lt;/error:variables&gt;
>>     &lt;error:xquery-version&gt;1.0-ml&lt;/error:xquery-version&gt;
>>     &lt;/error:frame&gt; &lt;error:frame&gt;
>>     &lt;error:uri&gt;/system/xqmvc.xqy&lt;/error:uri&gt;
>>     &lt;error:line&gt;119&lt;/error:line&gt;
>>     &lt;error:column&gt;8&lt;/error:column&gt;
>>     &lt;error:operation&gt;xqmvc:view("footer",
>>     ())&lt;/error:operation&gt; &lt;error:variables&gt;
>>     &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;view&lt;/error:name&gt;
>>     &lt;error:value&gt;"footer"&lt;/error:value&gt;
>>     &lt;/error:variable&gt; &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;pairs&lt;/error:name&gt;
>>     &lt;error:value&gt;()&lt;/error:value&gt; &lt;/error:variable&gt;
>>     &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;view-file&lt;/error:name
>>&gt;
>>     
>>&lt;error:value&gt;"/application/views/footer.xqy"&lt;/error:value&gt;
>>     &lt;/error:variable&gt; &lt;/error:variables&gt;
>>     &lt;error:xquery-version&gt;1.0-ml&lt;/error:xquery-version&gt;
>>     &lt;/error:frame&gt; &lt;error:frame&gt;
>>     &lt;error:uri&gt;/application/controllers/word.xqy&lt;/error:uri&gt;
>>     &lt;error:line&gt;121&lt;/error:line&gt;
>>     &lt;error:column&gt;18&lt;/error:column&gt;
>>     &lt;error:operation&gt;search()&lt;/error:operation&gt;
>>     &lt;error:variables&gt; &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/controller"&gt;id-query&lt;/error
>>:name&gt;
>>     &lt;error:value&gt;()&lt;/error:value&gt; &lt;/error:variable&gt;
>>     &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/controller"&gt;word-query&lt;/err
>>or:name&gt;
>>     &lt;error:value&gt;()&lt;/error:value&gt; &lt;/error:variable&gt;
>>     &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/controller"&gt;word-def&lt;/error
>>:name&gt;
>>     &lt;error:value&gt;()&lt;/error:value&gt; &lt;/error:variable&gt;
>>     &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/controller"&gt;page-title&lt;/err
>>or:name&gt;
>>     &lt;error:value&gt;"American Heritage Dictionary -
>>     Search"&lt;/error:value&gt; &lt;/error:variable&gt;
>>     &lt;/error:variables&gt;
>>     &lt;error:xquery-version&gt;1.0-ml&lt;/error:xquery-version&gt;
>>     &lt;/error:frame&gt; &lt;error:frame&gt;
>>     &lt;error:uri&gt;/application/controllers/word.xqy&lt;/error:uri&gt;
>>     &lt;error:line&gt;30&lt;/error:line&gt;
>>     &lt;error:column&gt;4&lt;/error:column&gt;
>>     &lt;error:operation&gt;xqmvc-ctrlr:index()&lt;/error:operation&gt;
>>     &lt;error:xquery-version&gt;1.0-ml&lt;/error:xquery-version&gt;
>>     &lt;/error:frame&gt; &lt;error:frame&gt;
>>     &lt;error:line&gt;1&lt;/error:line&gt;
>>     &lt;error:column&gt;123&lt;/error:column&gt;
>>     &lt;error:operation&gt;xdmp:eval("import module namespace
>>     xqmvc-ctrlr = &amp;amp;quot;http://scholarsporta...", (),
>>     &amp;lt;options
>>     
>>xmlns="xdmp:eval"&amp;gt;&amp;lt;isolation&amp;gt;different-transaction&a
>>mp;lt;/isolation&amp;gt;&amp;lt;prevent-deadlocks&amp;gt;t...&amp;lt;/opt
>>ions&amp;gt;)&lt;/error:operation&gt;
>>     &lt;error:xquery-version&gt;1.0-ml&lt;/error:xquery-version&gt;
>>     &lt;/error:frame&gt; &lt;error:frame&gt;
>>     &lt;error:uri&gt;/system/xqmvc.xqy&lt;/error:uri&gt;
>>     &lt;error:line&gt;63&lt;/error:line&gt;
>>     &lt;error:column&gt;12&lt;/error:column&gt;
>>     
>>&lt;error:operation&gt;_controller("/application/controllers/word.xqy",
>>     "index")&lt;/error:operation&gt; &lt;error:variables&gt;
>>     &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;controller-file&lt;/erro
>>r:name&gt;
>>     
>>&lt;error:value&gt;"/application/controllers/word.xqy"&lt;/error:value&gt
>>;
>>     &lt;/error:variable&gt; &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;function&lt;/error:name&
>>gt;
>>     &lt;error:value&gt;"index"&lt;/error:value&gt;
>>     &lt;/error:variable&gt; &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;import-declaration&lt;/e
>>rror:name&gt;
>>     &lt;error:value&gt;"import module namespace xqmvc-ctrlr =
>>     &amp;amp;quot;http://scholarsporta..."&lt;/error:value&gt;
>>     &lt;/error:variable&gt; &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;function-call&lt;/error:
>>name&gt;
>>     &lt;error:value&gt;"xqmvc-ctrlr:index()"&lt;/error:value&gt;
>>     &lt;/error:variable&gt; &lt;/error:variables&gt;
>>     &lt;error:xquery-version&gt;1.0-ml&lt;/error:xquery-version&gt;
>>     &lt;/error:frame&gt; &lt;error:frame&gt;
>>     &lt;error:uri&gt;/system/xqmvc.xqy&lt;/error:uri&gt;
>>     &lt;error:line&gt;77&lt;/error:line&gt;
>>     &lt;error:column&gt;8&lt;/error:column&gt;
>>     &lt;error:operation&gt;xqmvc:controller("word",
>>     "index")&lt;/error:operation&gt; &lt;error:variables&gt;
>>     &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;controller&lt;/error:nam
>>e&gt;
>>     &lt;error:value&gt;"word"&lt;/error:value&gt;
>>     &lt;/error:variable&gt; &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;function&lt;/error:name&
>>gt;
>>     &lt;error:value&gt;"index"&lt;/error:value&gt;
>>     &lt;/error:variable&gt; &lt;error:variable&gt; &lt;error:name
>>     
>>xmlns="http://scholarsportal.info/xqmvc/core"&gt;controller-file&lt;/erro
>>r:name&gt;
>>     
>>&lt;error:value&gt;"/application/controllers/word.xqy"&lt;/error:value&gt
>>;
>>     &lt;/error:variable&gt; &lt;/error:variables&gt;
>>     &lt;error:xquery-version&gt;1.0-ml&lt;/error:xquery-version&gt;
>>     &lt;/error:frame&gt; &lt;error:frame&gt;
>>     &lt;error:uri&gt;/&lt;/error:uri&gt;
>>     &lt;error:line&gt;34&lt;/error:line&gt;
>>     &lt;error:column&gt;8&lt;/error:column&gt; &lt;error:variables&gt;
>>     &lt;error:variable&gt; &lt;error:name
>>     xmlns=""&gt;controller&lt;/error:name&gt;
>>     &lt;error:value&gt;"word"&lt;/error:value&gt;
>>     &lt;/error:variable&gt; &lt;error:variable&gt; &lt;error:name
>>     xmlns=""&gt;function&lt;/error:name&gt;
>>     &lt;error:value&gt;"index"&lt;/error:value&gt;
>>     &lt;/error:variable&gt; &lt;error:variable&gt; &lt;error:name
>>     xmlns=""&gt;plugin&lt;/error:name&gt;
>>     &lt;error:value&gt;""&lt;/error:value&gt; &lt;/error:variable&gt;
>>     &lt;error:variable&gt; &lt;error:name
>>     xmlns=""&gt;log&lt;/error:name&gt;
>>     &lt;error:value&gt;()&lt;/error:value&gt; &lt;/error:variable&gt;
>>     &lt;/error:variables&gt;
>>     &lt;error:xquery-version&gt;1.0-ml&lt;/error:xquery-version&gt;
>>     &lt;/error:frame&gt; &lt;/error:stack&gt; &lt;/error:error&gt;
>>
>> Best Regards,
>>
>> Kashif Khan
>>
>> *
>> *
>>
>
>
>--
>John Snelson, Lead Engineer                    http://twitter.com/jpcs
>MarkLogic Corporation                         http://www.marklogic.com
>_______________________________________________
>General mailing list
>General at developer.marklogic.com
>http://developer.marklogic.com/mailman/listinfo/general



More information about the General mailing list