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 

eMail2Case

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

<configFile>
   <server1>
       <url>https://exchange.xyz.com</url>
       <protocol>imap</protocol>
       <userName>sunil.nandipati@xyz.com</userName>
       <password>****</password>
       <interval>10</interval>
       <inbox>Inbox</inbox>
       <readbox>Read</readbox>
       <errorbox>Errors</errorbox>
   </server1>
</configFile>

and .. my config file is

<configFile>
   <sfdcLogin>
       <url>https://www.salesforce.com/services/Soap/u/6.0</url>
       <userName>nandipatisunil@gmail.com</userName>
       <password>****</password>
       <loginRefresh>30</loginRefresh>
       <timeout>600</timeout>
   </sfdcLogin>
   <notify>
       <notifyEmail>sunil.nandipati@xyz.com</notifyEmail>
       <from>sunil.nandipati@xyz.com</from>
       <host>https://exchange.xyz.com</host>
   <port>25</port>
       <user>sunil.nandipati@xyz.com</user>
       <password>****</password>
       <service>com.sforce.mail.SMTPNotification</service>
   </notify>
   <attachments>
       <largeAttachmentDirectory>C:\\EmailAgent\\</largeAttachmentDirectory>
       <largeAttachmentURLPrefix>C:\\EmailAgent\\</largeAttachmentURLPrefix>
       <largeAttachmentSize>5</largeAttachmentSize>
   </attachments>
   <services>
       <com.sforce.mail.EmailService>C:\\EmailAgent\\email2case.txt</com.sforce.mail.EmailService>
   </services>
</configFile>

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
com.sforce.ws.ConnectionException: Unexpected element. Parser was expecting elem
ent 'urn:partner.soap.sforce.com:accessibilityMode' but found 'urn:partner.soap.
sforce.com:currencySymbol'
       at com.sforce.ws.bind.TypeMapper.verifyTag(TypeMapper.java:272)
       at com.sforce.ws.bind.TypeMapper.verifyElement(TypeMapper.java:294)
       at com.sforce.soap.partner.wsc80.GetUserInfoResult.loadFields(GetUserInf
oResult.java:355)
       at com.sforce.soap.partner.wsc80.GetUserInfoResult.load(GetUserInfoResul
t.java:347)
       at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:437)
       at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:362)
       at com.sforce.soap.partner.wsc80.LoginResult.loadFields(LoginResult.java
:236)
       at com.sforce.soap.partner.wsc80.LoginResult.load(LoginResult.java:203)
       at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:437)
       at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:362)
       at com.sforce.soap.partner.wsc80.LoginResponse_element.loadFields(LoginR
esponse_element.java:68)
       at com.sforce.soap.partner.wsc80.LoginResponse_element.load(LoginRespons
e_element.java:59)
       at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:437)
       at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:362)
       at com.sforce.ws.transport.SoapConnection.bind(SoapConnection.java:119)
       at com.sforce.ws.transport.SoapConnection.receive(SoapConnection.java:93
)
       at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:76)
       at com.sforce.soap.partner.wsc80.PartnerConnection.login(PartnerConnecti
on.java:499)
       at com.sforce.mail.GenericClient.login(GenericClient.java:264)
       at com.sforce.mail.GenericClient.getConnection(GenericClient.java:178)
       at com.sforce.mail.GenericClient.<init>(GenericClient.java:134)
       at com.sforce.mail.ImapClient.<init>(ImapClient.java:40)
       at com.sforce.mail.EmailService.loadService(EmailService.java:153)
       at com.sforce.SalesforceAgent.main(SalesforceAgent.java:139)
2007-06-07 21:35:08,376 [main] INFO  Will try 2 more time(s).


Appreciate any kind of help.

Rgds,
Sunil Nandipati.

Sunil NandipatiSunil Nandipati
I figured it out ... its my SMTP and IMAP.
NazeerNazeer
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.

Thanks
Nazeer
bhughesbhughes

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?

narendra.metacunarendra.metacu
I am also getting the same problem , how can we solve the same problem?