Hi Team,

I had recently upgraded the MarkLogic version 7 to 9, after upgrade I got the 
following error while I try to run the application, APP sever is up, content 
db, modules db everything is fine

Default login page hits the security object and I got following Error in 
MarkLogic 9


500 Internal Server Error
XDMP-BADCHAR: (err:XPST0003) Unexpected character found '&' (0x0026)
at 44:37, in xdmp:pretty-print("<error:error 
xsi:schemaLocation=&quot;http://marklogic.com/xdmp/...";) [1.0-ml]
in /application/views/common/error-handler.xqy, at 95:27 [1.0-ml]
$errorCode = "XDMP-UNEXPECTED"


<error:frame>
      <error:line>2</error:line>
      <error:column>81</error:column>
      <error:operation>xdmp:eval("import module namespace xqmvc-ctrlr = 
&amp;quot;http://scholarsporta...";, (fn:QName("","form-data"), 
map:map(&lt;map:map xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; .../&gt;)), &lt;options 
xmlns="xdmp:eval"&gt;&lt;isolation&gt;different-transaction&lt;/isolation&gt;...&lt;/options&gt;)</error:operation>
      <error:xquery-version>1.0-ml</error:xquery-version>
    </error:frame>



Also I have specified my sample code below


xquery version "1.0-ml";
import module namespace sec="http://marklogic.com/xdmp/security"; at 
"/MarkLogic/security.xqy";

(: To disable function mapping :)
declare option xdmp:mapping "false";
declare function local:create(){
let $import := 'import module namespace 
sec="http://marklogic.com/xdmp/security"; at "/MarkLogic/security.xqy";'
return (
try
{
      
xdmp:eval(fn:concat($import,'sec:create-amp("http://scholarsportal.info/xqmvc/controller","log-in","/consyn/application/controllers/security/security.xqy",xdmp:database("TestModulesDB"),"test-app-role")'))

} catch ($e){
            ( $e/error:format-string/text())
    }

Kindly do the needful


Thanks & Regards,
Siva

_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to