I would contact support with that one. In my experience SVC-BAD is a low-level
error, and is never expected behavior.
For what it's worth, 5.0-1 on OS X 10.6 throws a different and more sensible
error. So this may be specific to Windows.
> [1.0-ml] SVC-DIROPEN: xdmp:filesystem-directory("/does/not/exist") --
> Directory open error: opendir '/does/not/exist': No such file or directory
-- Mike
On 9 Nov 2011, at 01:08 , John Zhong wrote:
> Hi,
>
> I am running ML 4.2-7 on WinXP 32-bit system, I found accidentally that when
> I executed the xdmp:filesystem-directory via default CQ console, I
> encountered the below error if the directory does not exist. I am not sure if
> it is expected behaviour.
>
> SVC-BAD: d:check-debug(), d:debug(("eval:", $MIMETYPE)), d:debug(("eval:",
> $c:FORM-EVAL)), d:debug(("eval:", $c:DATABASE-ID, $MODULES-ID, $MODULES-ROOT,
> $QUERY)), try { let $x := if (fn:not($PROFILING)) then xdmp:eval($QUERY, (),
> $OPTIONS) else if ($c:PROFILING-ALLOWED) then prof:eval($QUERY, (), $OPTIONS)
> else <p class="head1 error"> Profiling is disabled for the application server
> <b>{ $c:SERVER-NAME }</b>. You may enable profiling in the admin server. </p>
> let $d := d:debug(("eval:", $x)) let $mimetype := if (fn:empty($x)) then
> "text/html" else if ($PROFILING) then "text/html" else if ($x instance of
> node()+ and fn:exists($x[. instance of binary()+ or . instance of
> document-node()+]/(self::binary() | binary()))) then () else if ($x instance
> of attribute()+ and fn:count($x, 3) gt 1) then "text/plain" else if
> (fn:count($x, 2) eq 1 and $x instance of document-node()+ and
> fn:empty($x/node())) then "text/plain" else $MIMETYPE let $set := if
> (fn:exists($mimetype)) then xdmp:se
t-response-content-type(fn:string-join(($mimetype, "charset=utf-8"), "; "))
else () let $set := if (fn:empty($mimetype) or $mimetype ne "text/plain") then
() else xdmp:add-response-header("Content-Disposition", "inline;
filename=cq.txt") return if ($mimetype eq "text/xml") then v:get-xml($x,
$USE-XSL) else if ($mimetype eq "text/html") then v:get-html($x) else
v:get-text($x) } catch ($ex) { xdmp:set-response-content-type("text/html;
charset=utf-8"), v:get-error-html($DATABASE-ID, $MODULES-ID, $MODULES-ROOT,
$ex, $QUERY) } -- Bad CodepointIterator::_next
>
> in /eval.xqy, on line 29 [1.0-ml]
>
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general