Cathy,
Thanks for the report. I'm having trouble reproducing the error, though.
As I see it, this test case ought to be equivalent:
import module namespace cxq="com.marklogic.developer.cq.xquery"
at 'cq/lib-xquery.xqy';
cxq:get-epoch-seconds(xs:dateTime("2008-10-28T15:42:45.600414-04:00"))
=> 1225222965
So I'm not at all sure what's happening, but I'll keep digging into it.
What happens if you reload (F5) the cq page? Same error, but with a
different timestamp?
Mike Sokolov suggested that the problem might have something to do with
timestamps on the filesystem. What happens if you 'touch' the sessions
directory and all its files, then reload cq? I'm thinking of something
like 'touch cq/sessions cq/sessions/*'.
-- Mike
Cathy Bernardone wrote:
We have installed Marklogic 4.0 and CQ for 4.0 as well. However, when
running CQ, sessions remained disabled. Our directories have proper
permissions for anyone to access them. Below is the error message we
get when clicking on "sessions disabled". Help would be greatly
appreciated.
Cathy
WARNING: sessions have been disabled, because of an error.
Perhaps you have disabled sessions for this instance of cq.
If so, you can ignore this and return to cq.
You are running cq from the filesystem.
Make sure that the directory /cq/sessions/
exists, and that MarkLogic Server can write to it.
The complete error message follows:
<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-AS</error:code>
<error:name>err:XPTY0004</error:name>
<error:xquery-version>0.9-ml</error:xquery-version>
<error:message>Invalid coercion</error:message>
<error:format-string>XDMP-AS: (err:XPTY0004) $d as
xdt:dayTimeDuration -- Invalid coercion:
xs:dayTimeDuration("P14180DT19H42M45.600414S") as xdt:dayTimeDuration</
error:format-string>
<error:retryable>false</error:retryable>
<error:expr>$d as xdt:dayTimeDuration</error:expr>
<error:data>
<error:datum>xs:dayTimeDuration("P14180DT19H42M45.600414S")</
error:datum>
<error:datum>xdt:dayTimeDuration</error:datum>
</error:data>
<error:stack>
<error:frame>
<error:uri>/cq/lib-xquery.xqy</error:uri>
<error:line>45</error:line>
<error:operation>x:cumulative-seconds-from-
duration(xs:dayTimeDuration("P14180DT19H42M45.600414S"))</
error:operation>
<error:xquery-version>0.9-ml</error:xquery-version>
</error:frame>
<error:frame>
<error:uri>/cq/lib-xquery.xqy</error:uri>
<error:line>58</error:line>
<error:operation>x:get-epoch-
seconds(xs:dateTime("2008-10-28T15:42:45.600414-04:00"))</
error:operation>
<error:variables>
<error:variable>
<error:name xmlns="com.marklogic.developer.cq.xquery">dt</error:name>
<error:value>xs:dateTime("2008-10-28T15:42:45.600414-04:00")</
error:value>
</error:variable>
</error:variables>
<error:xquery-version>0.9-ml</error:xquery-version>
</error:frame>
<error:frame>
<error:uri>/cq/lib-xquery.xqy</error:uri>
<error:line>66</error:line>
<error:operation>x:get-epoch-seconds()</error:operation>
<error:xquery-version>0.9-ml</error:xquery-version>
</error:frame>
<error:frame>
<error:uri>/cq/lib-io.xqy</error:uri>
<error:line>410</error:line>
<error:operation>io:get-conflicting-locks("/cq/sessions/
d064d36f04973c13.xml", (), "[EMAIL PROTECTED]")</error:operation>
<error:variables>
<error:variable>
<error:name xmlns="com.marklogic.developer.cq.io">uri</error:name>
<error:value>"/cq/sessions/d064d36f04973c13.xml"</error:value>
</error:variable>
<error:variable>
<error:name xmlns="com.marklogic.developer.cq.io">limit</error:name>
<error:value>()</error:value>
</error:variable>
<error:variable>
<error:name xmlns="com.marklogic.developer.cq.io">owner</error:name>
<error:value>"[EMAIL PROTECTED]"</error:value>
</error:variable>
</error:variables>
<error:xquery-version>1.0-ml</error:xquery-version>
</error:frame>
<error:frame>
<error:uri>/cq/lib-controller.xqy</error:uri>
<error:line>306</error:line>
<error:operation>c:get-conflicting-locks("/cq/sessions/
d064d36f04973c13.xml", ())</error:operation>
<error:variables>
<error:variable>
<error:name xmlns="com.marklogic.developer.cq.controller">uri</
error:name>
<error:value>"/cq/sessions/d064d36f04973c13.xml"</error:value>
</error:variable>
<error:variable>
<error:name xmlns="com.marklogic.developer.cq.controller">limit</
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>/cq/lib-controller.xqy</error:uri>
<error:line>298</error:line>
<error:operation>c:get-conflicting-locks("/cq/sessions/
d064d36f04973c13.xml")</error:operation>
<error:variables>
<error:variable>
<error:name xmlns="com.marklogic.developer.cq.controller">uri</
error:name>
<error:value>"/cq/sessions/d064d36f04973c13.xml"</error:value>
</error:variable>
</error:variables>
<error:xquery-version>1.0-ml</error:xquery-version>
</error:frame>
<error:frame>
<error:uri>/cq/lib-controller.xqy</error:uri>
<error:line>331</error:line>
<error:operation>c:get-sessions(true())</error:operation>
<error:variables>
<error:variable>
<error:name xmlns="com.marklogic.developer.cq.controller">check-
conflicting</error:name>
<error:value>true()</error:value>
</error:variable>
<error:variable>
<error:name xmlns="com.marklogic.developer.cq.controller">i</
error:name>
<error:value><session id="d064d36f04973c13"
xmlns="com.marklogic.developer.cq.session"><sec:user xmlns:sec="http://marklogic.com/xdmp/security
">admin</...</session></error:value>
</error:variable>
</error:variables>
<error:xquery-version>1.0-ml</error:xquery-version>
</error:frame>
<error:frame>
<error:uri>/cq/lib-controller.xqy</error:uri>
<error:line>315</error:line>
<error:operation>c:get-available-sessions()</error:operation>
<error:xquery-version>1.0-ml</error:xquery-version>
</error:frame>
<error:frame>
<error:uri>/cq/lib-controller.xqy</error:uri>
<error:line>377</error:line>
<error:operation>c:get-last-session()</error:operation>
<error:xquery-version>1.0-ml</error:xquery-version>
</error:frame>
<error:frame>
<error:uri>/cq/lib-controller.xqy</error:uri>
<error:line>240</error:line>
<error:variables>
<error:variable>
<error:name xmlns="com.marklogic.developer.cq.controller">d</
error:name>
<error:value>()</error:value>
</error:variable>
<error:variable>
<error:name xmlns="com.marklogic.developer.cq.controller">session</
error:name>
<error:value>()</error:value>
</error:variable>
<error:variable>
<error:name xmlns="com.marklogic.developer.cq.controller">d</
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>/cq/session.xqy</error:uri>
<error:line>62</error:line>
<error:xquery-version>1.0-ml</error:xquery-version>
</error:frame>
</error:stack>
</error:error>
------------------------------------------------------------------------
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general