Highlighted

while sending the document through API I am getting "Object Reference error not set to instance of an object" error

New Here ,
Jan 11, 2016

Copy link to clipboard

Copied

FileStream file = getTestPdfFile(fileName);

            com.echosign.secure.FileInfo[] fileInfos = new com.echosign.secure.FileInfo[1];

         

            fileInfos[0] = new com.echosign.secure.FileInfo();

            fileInfos[0].fileName = fileName;

            Byte[] bytes = File.ReadAllBytes(".\\" + fileName);

            String filed = Convert.ToBase64String(bytes);

            byte[] filedata = Convert.FromBase64String(filed);

            fileInfos[0].file = filedata;

            SenderInfo senderInfo = new SenderInfo();

            senderInfo = null;

            RecipientInfo[] recipientInfo = new RecipientInfo[2];

            RecipientInfo recipientEmail = new RecipientInfo();

            recipientEmail.email = recipient;

            recipientEmail.fax = null;

            recipientEmail.role = RecipientRole.SIGNER;

            recipientEmail.roleSpecified = true;

            recipientInfo[0] = recipientEmail;

            DocumentCreationInfo documentInfo = new DocumentCreationInfo();

            documentInfo.recipients = recipientInfo;

            documentInfo.name = "Testing Echo";

            documentInfo.fileInfos = fileInfos;

            documentInfo.signatureType = SignatureType.ESIGN;

            documentInfo.signatureFlow = SignatureFlow.SENDER_SIGNATURE_NOT_REQUIRED;

  ES.sendDocument(apiKey, senderInfo, documentInfo);

Topics

Bug Error

Views

236

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

while sending the document through API I am getting "Object Reference error not set to instance of an object" error

New Here ,
Jan 11, 2016

Copy link to clipboard

Copied

FileStream file = getTestPdfFile(fileName);

            com.echosign.secure.FileInfo[] fileInfos = new com.echosign.secure.FileInfo[1];

         

            fileInfos[0] = new com.echosign.secure.FileInfo();

            fileInfos[0].fileName = fileName;

            Byte[] bytes = File.ReadAllBytes(".\\" + fileName);

            String filed = Convert.ToBase64String(bytes);

            byte[] filedata = Convert.FromBase64String(filed);

            fileInfos[0].file = filedata;

            SenderInfo senderInfo = new SenderInfo();

            senderInfo = null;

            RecipientInfo[] recipientInfo = new RecipientInfo[2];

            RecipientInfo recipientEmail = new RecipientInfo();

            recipientEmail.email = recipient;

            recipientEmail.fax = null;

            recipientEmail.role = RecipientRole.SIGNER;

            recipientEmail.roleSpecified = true;

            recipientInfo[0] = recipientEmail;

            DocumentCreationInfo documentInfo = new DocumentCreationInfo();

            documentInfo.recipients = recipientInfo;

            documentInfo.name = "Testing Echo";

            documentInfo.fileInfos = fileInfos;

            documentInfo.signatureType = SignatureType.ESIGN;

            documentInfo.signatureFlow = SignatureFlow.SENDER_SIGNATURE_NOT_REQUIRED;

  ES.sendDocument(apiKey, senderInfo, documentInfo);

Topics

Bug Error

Views

237

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Employee ,
Jan 26, 2016

Copy link to clipboard

Copied

Hello Vinod,

It seems that you were using sendDocument API call. Can you inbox me you registered email address with which you were trying to make API calls so that I can check if the call was ever made to E-Sign or not?

Regards,

-Rijul

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
New Here ,
Feb 14, 2016

Copy link to clipboard

Copied

Hi Raj,

Can you Please look into my code which I have posted and say what is the problem in that.

Thanks in advance

Regards,

Vinod Kumar.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...