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(&lt;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"&gt;&lt;map:entry
key="currentpage"&gt;&lt;map:value
xsi:type="xs:string"&gt;1&lt;/...&lt;/map:map&gt;)), &lt;options
xmlns="xdmp:eval"&gt;&lt;isolation&gt;same-statement&lt;/isolation&gt;&lt;/options&gt;)
-- 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(&lt;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"&gt;&lt;map:entry
key="currentpage"&gt;&lt;map:value
xsi:type="xs:string"&gt;1&lt;/...&lt;/map:map&gt;)), &lt;options
xmlns="xdmp:eval"&gt;&lt;isolation&gt;same-statement&lt;/isolation&gt;&lt;/options&gt;)</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(&lt;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"&gt;&lt;map:entry
key="currentpage"&gt;&lt;map:value
xsi:type="xs:string"&gt;1&lt;/...&lt;/map:map&gt;))</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(&lt;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"&gt;&lt;map:entry
key="currentpage"&gt;&lt;map:value
xsi:type="xs:string"&gt;1&lt;/...&lt;/map:map&gt;)</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>(&lt;ch:config-layout xmlns:ch="
http://marklogic.com/roxy/controller-helper"&gt;&lt;ch:formats&gt;&lt;ch:format&gt;xml&lt;/ch:format&gt;&lt;/ch:formats&gt;&lt;ch:layout/&gt;&lt;/ch:config-layout&gt;,
&lt;ch:config-view xmlns:ch="http://marklogic.com/roxy/controller-helper
"&gt;&lt;ch:formats&gt;&lt;ch:format&gt;xml&lt;/ch:format&gt;&lt;/ch:formats&gt;&lt;ch:view/&gt;&lt;/ch:config-view&gt;)</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

Reply via email to