Got the Connection time out error. While processing bulk upload using record 
loader.

From: [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]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to