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
mpatilmpatil 

Email 2 Case Agent Error

I am trying to set up email2Case Agentand getting this error. 
Tried almost everything but couldnt 
I will appreciate any help.


2014-11-04 12:33:04,803 [main] ERROR Failed to connect to SFDC service
com.sforce.ws.ConnectionException: Unexpected element. Parser was expecting elem
ent 'urn:partner.soap.sforce.com:passwordExpired' but found 'urn:partner.soap.sf
orce.com:metadataServerUrl'
        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.wsc.LoginResult.loadFields(LoginResult.java:2
11)
        at com.sforce.soap.partner.wsc.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.wsc.LoginResponse_element.loadFields(LoginRes
ponse_element.java:68)
        at com.sforce.soap.partner.wsc.LoginResponse_element.load(LoginResponse_
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.wsc.PartnerConnection.login(PartnerConnection
.java:734)
        at com.sforce.mail.GenericClient.login(GenericClient.java:323)
        at com.sforce.mail.GenericClient.getConnection(GenericClient.java:189)
        at com.sforce.mail.GenericClient.<init>(GenericClient.java:142)
        at com.sforce.mail.ImapClient.<init>(ImapClient.java:40)
        at com.sforce.mail.ImapSSLClient.<init>(ImapSSLClient.java:31)
        at com.sforce.mail.EmailService.loadService(EmailService.java:159)
        at com.sforce.SalesforceAgent.main(SalesforceAgent.java:138)
2014-11-04 12:33:04,833 [main] INFO  Will try 2 more time(s).
Best Answer chosen by mpatil
mpatilmpatil
Update.
I figured it out by myself


Manisha

All Answers

mpatilmpatil
Update.
I figured it out by myself


Manisha
This was selected as the best answer
FabienneIshimweFabienneIshimwe
Manisha would you mind sharing how you fixed it? I have been having the same issue for the past few days, driving me crazy
Sushant BatraSushant Batra
Do we know what was done to resolve this