function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sunil NandipatiSunil Nandipati 


I am facing a problem while running the java -jar email2case.jar ... can anyone help me with this.
My email2Case file is ...


and .. my config file is


And the error message is ....

2007-06-07 21:35:06,043 [main] INFO  ===========================================
2007-06-07 21:35:06,043 [main] INFO  Attempting to start service com.sforce.mail
.EmailService with configuration file C:\\EmailAgent\\email2case.txt
2007-06-07 21:35:08,346 [main] ERROR Failed to connect to SFDC service Unexpected element. Parser was expecting elem
ent '' but found 'urn:partner.soap.'
       at com.sforce.soap.partner.wsc80.GetUserInfoResult.loadFields(GetUserInf
       at com.sforce.soap.partner.wsc80.GetUserInfoResult.load(GetUserInfoResul
       at com.sforce.soap.partner.wsc80.LoginResult.loadFields(
       at com.sforce.soap.partner.wsc80.LoginResult.load(
       at com.sforce.soap.partner.wsc80.LoginResponse_element.loadFields(LoginR
       at com.sforce.soap.partner.wsc80.LoginResponse_element.load(LoginRespons
       at com.sforce.soap.partner.wsc80.PartnerConnection.login(PartnerConnecti
       at com.sforce.mail.GenericClient.login(
       at com.sforce.mail.GenericClient.getConnection(
       at com.sforce.mail.GenericClient.<init>(
       at com.sforce.mail.ImapClient.<init>(
       at com.sforce.mail.EmailService.loadService(
       at com.sforce.SalesforceAgent.main(
2007-06-07 21:35:08,376 [main] INFO  Will try 2 more time(s).

Appreciate any kind of help.

Sunil Nandipati.

Sunil NandipatiSunil Nandipati
I figured it out ... its my SMTP and IMAP.
Hi Sunil,

I have problem that my Email2Case Agent stops automatically sometimes without sending any notification.
Otherwise working fine.

Its happening once in a month.

any suggestions highly appreciated.


Hi Sunil,

I am receiving the exact same error, and I am at a loss as how to fix it. What was your issue with your IMAP and SMTP?

I am also getting the same problem , how can we solve the same problem?