Hello Everyone,
I am quite new to Marklogic and need help in
debugging this issue. I have an application that runs of data stored in
Marklogic. I have an HTTP-server configured that runs on port 8040 for that
application. However when I try accessing http://localhost:8040 on the
browser I get the error below. Could someone help me debug this issue.
<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>SEC-PRIV</error:code>
<error:name/>
<error:xquery-version>1.0-ml</error:xquery-version>
<error:message>Need privilege</error:message>
<error:format-string>SEC-PRIV:
xdmp:invoke("/app/views/dashboard.html.xqy", (xs:QName("vh:map"),
map:map(<map:map xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:map="
http://marklogic.com/xdmp/map"><map:entry
key="currentpage"><map:value
xsi:type="xs:string">1</...</map:map>)), <options
xmlns="xdmp:eval"><isolation>same-statement</isolation></options>)
-- Need privilege: http://marklogic.com/xdmp/privileges/xdmp-invoke
</error:format-string>
<error:retryable>false</error:retryable>
<error:expr>xdmp:invoke("/app/views/dashboard.html.xqy",
(xs:QName("vh:map"), map:map(<map:map xmlns:xs="
http://www.w3.org/2001/XMLSchema" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:map="
http://marklogic.com/xdmp/map"><map:entry
key="currentpage"><map:value
xsi:type="xs:string">1</...</map:map>)), <options
xmlns="xdmp:eval"><isolation>same-statement</isolation></options>)</error:expr>
<error:data>
<error:datum>http://marklogic.com/xdmp/privileges/xdmp-invoke
</error:datum>
</error:data>
<error:stack>
<error:frame>
<error:uri>/roxy/lib/routing-helper.xqy</error:uri>
<error:line>35</error:line>
<error:column>6</error:column>
<error:operation>rh:render-view("dashboard", "html",
map:map(<map:map xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:map="
http://marklogic.com/xdmp/map"><map:entry
key="currentpage"><map:value
xsi:type="xs:string">1</...</map:map>))</error:operation>
<error:variables>
<error:variable>
<error:name xmlns="http://marklogic.com/roxy/routing-helper
">view</error:name>
<error:value>"dashboard"</error:value>
</error:variable>
<error:variable>
<error:name xmlns="http://marklogic.com/roxy/routing-helper
">format</error:name>
<error:value>"html"</error:value>
</error:variable>
<error:variable>
<error:name xmlns="http://marklogic.com/roxy/routing-helper
">data</error:name>
<error:value>map:map(<map:map xmlns:xs="
http://www.w3.org/2001/XMLSchema" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:map="
http://marklogic.com/xdmp/map"><map:entry
key="currentpage"><map:value
xsi:type="xs:string">1</...</map:map>)</error:value>
</error:variable>
<error:variable>
<error:name xmlns="http://marklogic.com/roxy/routing-helper
">view-path</error:name>
<error:value>"/app/views/dashboard.html.xqy"</error:value>
</error:variable>
</error:variables>
<error:xquery-version>1.0-ml</error:xquery-version>
</error:frame>
<error:frame>
<error:uri>/roxy/router.xqy</error:uri>
<error:line>90</error:line>
<error:column>9</error:column>
<error:operation>router:route()</error:operation>
<error:variables>
<error:variable>
<error:name xmlns="http://marklogic.com/roxy/router">data</error:name>
<error:value>()</error:value>
</error:variable>
<error:variable>
<error:name xmlns="http://marklogic.com/roxy/router">options</error:name>
<error:value>(<ch:config-layout xmlns:ch="
http://marklogic.com/roxy/controller-helper"><ch:formats><ch:format>xml</ch:format></ch:formats><ch:layout/></ch:config-layout>,
<ch:config-view xmlns:ch="http://marklogic.com/roxy/controller-helper
"><ch:formats><ch:format>xml</ch:format></ch:formats><ch:view/></ch:config-view>)</error:value>
</error:variable>
<error:variable>
<error:name xmlns="http://marklogic.com/roxy/router">_</error:name>
<error:value>()</error:value>
</error:variable>
<error:variable>
<error:name xmlns="http://marklogic.com/roxy/router">format</error:name>
<error:value>"html"</error:value>
</error:variable>
<error:variable>
<error:name xmlns="http://marklogic.com/roxy/router">_</error:name>
<error:value>()</error:value>
</error:variable>
<error:variable>
<error:name xmlns="http://marklogic.com/roxy/router">view</error:name>
<error:value>"dashboard"</error:value>
</error:variable>
<error:variable>
<error:name xmlns="http://marklogic.com/roxy/router">layout</error:name>
<error:value>"index"</error:value>
</error:variable>
<error:variable>
<error:name xmlns="http://marklogic.com/roxy/router">bypass</error:name>
<error:value>fn:false()</error:value>
</error:variable>
</error:variables>
<error:xquery-version>1.0-ml</error:xquery-version>
</error:frame>
<error:frame>
<error:uri>/roxy/query-router.xqy</error:uri>
<error:line>20</error:line>
<error:column>0</error:column>
<error:xquery-version>1.0-ml</error:xquery-version>
</error:frame>
</error:stack>
</error:error>
Thanks,
Harshal
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general