Hi Shaik, The function looks okay to me. Are you sure it is not complaining about something else? Check ErrorLog.txt for the stack trace on MarkLogic side. That should point to the exact line and file.
Kind regards, Geert From: ShaikUmmerFaruk D <[email protected]<mailto:[email protected]>> Reply-To: MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Date: Friday, May 15, 2015 at 8:10 AM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: [MarkLogic Dev General] XDMP Bad Char issue Hi, I am getting this error. When I call the mark logic function from JAVA. But I do not see any bad character in my Xquery function. Error com.marklogic.xcc.exceptions.XQueryException: XDMP-BADCHAR: (err:XPST0003) Unexpected character found ':' (0x003a) [Session: user=marocdbo, cb=MarocTest [ContentSource: user=marocdbo, cb=MarocTest [provider: address=/10.122.52.6:8011, pool=1/64]]] [Client: XCC/6.0-2, Server: XDBC/6.0-2.2] on line 1 expr: at com.marklogic.xcc.impl.handlers.ServerExceptionHandler.handleResponse(ServerExceptionHandler.java:34) at com.marklogic.xcc.impl.handlers.EvalRequestController.serverDialog(EvalRequestController.java:83) at com.marklogic.xcc.impl.handlers.AbstractRequestController.runRequest(AbstractRequestController.java:84) at com.marklogic.xcc.impl.SessionImpl.submitRequestInternal(SessionImpl.java:390) at com.marklogic.xcc.impl.SessionImpl.submitRequest(SessionImpl.java:373) at com.lxnx.lnf.mlutil.MLDB.getResponse(MLDB.java:77) at com.lxnx.lnf.mlutil.modules.MLModule.executeModule(MLModule.java:60) at com.lxnx.lnf.bundleprocessing.process.processors.postprocess.impl.CitationLinkProcessor.process(CitationLinkProcessor.java:167) at com.lxnx.lnf.bundleprocessing.process.processors.postprocess.PostProcessorChain.triggerProcessors(PostProcessorChain.java:36) at com.lxnx.lnf.bundleprocessing.core.impl.BundleProcessingTemplateImpl.applyProcessorChains(BundleProcessingTemplateImpl.java:65) at com.lxnx.lnf.bundleprocessing.core.impl.BundleProcessExecutor.run(BundleProcessExecutor.java:37) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Function xquery version "1.0-ml"; module namespace revue = "http://lexisnexis/LNMaroc/search/revue-sommaire"; declare function revue:test($dir as xs:string) as item()* { try{ let $s := "success" return $s }catch($ex) { let $s := "fail" return $s } }; Regards, Shaik Ummer Faruk D. **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS***
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
