We did not get connection time out error but while submitting the request we
are getting request exception. Its looks like communication failure whereas
another application able to connect to same MarkLogic server without any issues.
Currently we are not able to get the exact exception thrown by the system as
this occurring in client network. However we are getting exception in the
RequestException catch block.
ResultSequence rs = dbSession.submitRequest(request);
catch (RequestException e) {
>
> e.printStackTrace();
> throw new CustomException(
> "could not submit request to the session
> with ML DB", e);
> }
Thanks for responding!
Regards,
Mohanraj
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Michael Blakeley
Sent: Friday, June 21, 2013 1:03 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] ML Request Exception
I don't understand how RecordLoader relates to the code you posted. Do you
simply mean that RecordLoader is competing with another program? Please clarify.
-- Mike
On 20 Jun 2013, at 11:12 , Mohanraj Chozhan
<[email protected]<mailto:[email protected]>> wrote:
> Got the Connection time out error. While processing bulk upload using record
> loader.
>
> From:
> [email protected]<mailto:[email protected]>
> [mailto:[email protected]] On Behalf Of David
> Lee
> Sent: Thursday, June 20, 2013 11:29 PM
> To: MarkLogic Developer Discussion
> Subject: Re: [MarkLogic Dev General] ML Request Exception
>
> Could you send the text of the exception (e) ?
>
>
> ----------------------------------------------------------------------
> -------
> David Lee
> Lead Engineer
> MarkLogic Corporation
> [email protected]<mailto:[email protected]>
> Phone: +1 812-482-5224
> Cell: +1 812-630-7622
> www.marklogic.com<http://www.marklogic.com>
>
>
> From:
> [email protected]<mailto:[email protected]>
> [mailto:[email protected]] On Behalf Of Mohanraj
> Chozhan
> Sent: Thursday, June 20, 2013 1:57 PM
> To: [email protected]<mailto:[email protected]>
> Subject: Re: [MarkLogic Dev General] ML Request Exception
>
> Hi,
>
> We are having a scenario where two internal applications are invoking the
> Mark Logic server through a common implementation.
> In which one application is able to retrieve the records from Mark logic
> server and the other one is not able to.
> We are getting Request Exception in this case.
>
> Following is the code snippet we have used.
>
> public String getResponse(String query, DBTYPE dbType)
> throws CustomException {
> String response = null;
> Session dbSession = null;
> try {
> dbSession = getDBSession(dbType);
> Request request;
> request = dbSession.newAdhocQuery(query);
> ResultSequence rs = dbSession.submitRequest(request);
> response = rs.asString();
> } catch (XccConfigException e) {
>
> e.printStackTrace();
> throw new CustomException(
> "could not establish session with ML DB",
> e);
> } catch (URISyntaxException e) {
>
> e.printStackTrace();
> throw new CustomException(
> "could not establish session with ML DB",
> e);
> } catch (RequestException e) {
>
> e.printStackTrace();
> throw new CustomException(
> "could not submit request to the session
> with ML DB", e);
> } finally {
> dbSession.close();
> }
>
> Can anyone help on this scenario.
>
> Regards,
> Mohanraj
>
> **************** 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]<mailto:[email protected]>
> http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]<mailto:[email protected]>
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general