I have reopened the jira. We need to add this to docs. Guess this is the issue Dushan has reported as well.
On Wed, Aug 19, 2015 at 9:53 AM, Aaquibah Nashry <[email protected]> wrote: > Hi, > > @Malaka: Yes, i have imported it to the client-truststore.jks. > @Bhathiya: This was the same issue. > > I had imported the cert from the login page with cn login.salesforce.com. > Once i got a cn of *.salesforce.com it works. > > Thank you all > > Regards, > > M.R.Aaquibah Nashry > *Intern, Engineering**| **WSO2, Inc.* > Mobile : +94 773946123 > Tel : +94 112662541 > Email : [email protected] <[email protected]> > > On Tue, Aug 18, 2015 at 7:32 PM, Bhathiya Jayasekara <[email protected]> > wrote: > >> When was using Salesforce connector once, I faced a certificate issue. >> Mentioning about this in case it helps you. >> >> I initially imported the cert of login.salesforce.com, it worked fine >> for login. But its CN was login.salesforce.com. So every request which >> were sent to ap1.salesforce.com, after login, failed because of the >> mismatched CN. So I also had to import cert of ap1.salesforce.com, of >> which CN was *.salesforce.com, to make other requests successful. >> >> Thanks, >> Bhathiya >> >> On Tue, Aug 18, 2015 at 9:19 AM, Malaka Silva <[email protected]> wrote: >> >>> Have you imported it to client-truststore.jks? >>> >>> >>> https://docs.wso2.com/display/ESB481/Setting+Up+Keystores+for+a+Client+and+a+Service >>> >>> On Tue, Aug 18, 2015 at 6:39 PM, Aaquibah Nashry <[email protected]> >>> wrote: >>> >>>> Hi Malaka, >>>> >>>> I did import the .crt file from salesforce.com into the <esb >>>> home>/repository/resources/security folder. Is this the one you are >>>> referring to? >>>> If so, it didnt work. >>>> >>>> Regards, >>>> >>>> M.R.Aaquibah Nashry >>>> *Intern, Engineering**| **WSO2, Inc.* >>>> Mobile : +94 773946123 >>>> Tel : +94 112662541 >>>> Email : [email protected] <[email protected]> >>>> >>>> On Tue, Aug 18, 2015 at 6:33 PM, Malaka Silva <[email protected]> wrote: >>>> >>>>> Maybe the issue is related to [1]. >>>>> >>>>> Can you try importing the certificate to truststore pls? >>>>> >>>>> @Kesavan - Did you experience this behavior intermittently? >>>>> >>>>> [1] https://wso2.org/jira/browse/ESBCONNECT-60 >>>>> >>>>> >>>>> >>>>> On Tue, Aug 18, 2015 at 5:33 PM, Aaquibah Nashry <[email protected]> >>>>> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> the sequence previously worked with the getUserInfo. >>>>>> >>>>>> i added an onError=fault, the logs are as follows: >>>>>> >>>>>> [2015-08-18 17:22:45,644] INFO {SERVICE_LOGGER} - To: , MessageID: >>>>>> urn:uuid:cb25cf91-f7fa-4681-beeb-c769ffebe7f4, Direction: request, STATE >>>>>> = >>>>>> Before sf_auth sequence >>>>>> [2015-08-18 17:22:45,644] INFO {SERVICE_LOGGER} - To: , MessageID: >>>>>> urn:uuid:cb25cf91-f7fa-4681-beeb-c769ffebe7f4, Direction: request, text = >>>>>> An unexpected error occured, message = null, Envelope: <?xml >>>>>> version="1.0" >>>>>> encoding="utf-8"?><soapenv:Envelope xmlns:soapenv=" >>>>>> http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><y>AM data >>>>>> written successfully into pipeline >>>>>> table</y></soapenv:Body></soapenv:Envelope> >>>>>> [2015-08-18 17:22:45,648] INFO {SERVICE_LOGGER} - Connection = >>>>>> Login to Salesforce ..... >>>>>> [2015-08-18 17:22:46,928] WARN {SERVICE_LOGGER} - ERROR_CODE : >>>>>> 101500 ERROR_MESSAGE : Error in Sender >>>>>> >>>>>> >>>>>> I have attached the logs after enabling wire logs. >>>>>> >>>>>> Regards, >>>>>> >>>>>> M.R.Aaquibah Nashry >>>>>> *Intern, Engineering**| **WSO2, Inc.* >>>>>> Mobile : +94 773946123 >>>>>> Tel : +94 112662541 >>>>>> Email : [email protected] <[email protected]> >>>>>> >>>>>> On Tue, Aug 18, 2015 at 2:54 PM, Malaka Silva <[email protected]> >>>>>> wrote: >>>>>> >>>>>>> Why are you adding getUserInfo, since you are not using the response >>>>>>> from it? >>>>>>> >>>>>>> Also try adding onError attribute to your sequence and check. eg: >>>>>>> onError="fault" >>>>>>> >>>>>>> More on wire logs with [1] >>>>>>> >>>>>>> [1] >>>>>>> http://mytecheye.blogspot.com/2013/09/wso2-esb-all-about-wire-logs.html >>>>>>> >>>>>>> On Tue, Aug 18, 2015 at 2:46 PM, Aaquibah Nashry <[email protected]> >>>>>>> wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> 1) I couldn't find the line to enable wire logs in my log4j file. >>>>>>>> Is it okay if i add the line to it? >>>>>>>> (log4j.logger.org.apache.synapse.transport.http.wire=DEBUG) >>>>>>>> >>>>>>>> 2) My init config is in the sequence *sf_auth* as below: >>>>>>>> >>>>>>>> <salesforce.init xmlns="http://ws.apache.org/ns/synapse"> >>>>>>>> <username>[email protected]</username> >>>>>>>> <password>p1ne@pplelrY5ZpMQVqPyPramkfIdKDYE6</password> >>>>>>>> <loginUrl>https://login.salesforce.com/services/Soap/u/27.0 >>>>>>>> </loginUrl> >>>>>>>> </salesforce.init> >>>>>>>> >>>>>>>> 3) When i added the logs, i find that error occurs at >>>>>>>> <salesforce.getUserInfo configKey="*sf_auth* >>>>>>>> "></salesforce.getUserInfo> >>>>>>>> >>>>>>>> The error logs are as follows: >>>>>>>> >>>>>>>> [2015-08-18 14:42:22,950] INFO {SERVICE_LOGGER} - To: , >>>>>>>> MessageID: urn:uuid:4ca4be55-4b42-4b9f-89c3-3fc4b534a1a2, Direction: >>>>>>>> request, STATE = Before sf_auth sequence >>>>>>>> [2015-08-18 14:42:22,958] INFO {SERVICE_LOGGER} - Connection = >>>>>>>> Login to Salesforce ..... >>>>>>>> [2015-08-18 14:42:26,100] WARN {SERVICE_LOGGER} - ERROR_CODE : >>>>>>>> 101500 ERROR_MESSAGE : Error in Sender >>>>>>>> >>>>>>>> >>>>>>>> I have attached the sequence. >>>>>>>> >>>>>>>> Thanks >>>>>>>> >>>>>>>> Regards, >>>>>>>> >>>>>>>> M.R.Aaquibah Nashry >>>>>>>> *Intern, Engineering**| **WSO2, Inc.* >>>>>>>> Mobile : +94 773946123 >>>>>>>> Tel : +94 112662541 >>>>>>>> Email : [email protected] <[email protected]> >>>>>>>> >>>>>>>> On Tue, Aug 18, 2015 at 2:30 PM, Malaka Silva <[email protected]> >>>>>>>> wrote: >>>>>>>> >>>>>>>>> Seems like an error when sending the message out. >>>>>>>>> >>>>>>>>> Can you put some logs in your mediation flow and identify with >>>>>>>>> point it's failing? >>>>>>>>> >>>>>>>>> Also enabling wire logs will also help to find the failing point. >>>>>>>>> Also share the salesfore.init config. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Tue, Aug 18, 2015 at 2:19 PM, Aaquibah Nashry <[email protected]> >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>>> Hi, >>>>>>>>>> >>>>>>>>>> I am trying to get data from salesforce using salesforce >>>>>>>>>> connector by writing a proxy. I get the following error when i run >>>>>>>>>> the >>>>>>>>>> sequence/proxy: >>>>>>>>>> >>>>>>>>>> [2015-08-18 14:06:31,815] INFO {SERVICE_LOGGER} - Connection = >>>>>>>>>> Login to Salesforce ..... >>>>>>>>>> [2015-08-18 14:06:38,933] WARN {SERVICE_LOGGER} - ERROR_CODE : >>>>>>>>>> 101500 ERROR_MESSAGE : Error in Sender >>>>>>>>>> >>>>>>>>>> I have attached a sequence i have written for the above task. >>>>>>>>>> >>>>>>>>>> What could be the reason for this? Please help. >>>>>>>>>> >>>>>>>>>> Thanks in advance. >>>>>>>>>> Regards, >>>>>>>>>> >>>>>>>>>> M.R.Aaquibah Nashry >>>>>>>>>> *Intern, Engineering**| **WSO2, Inc.* >>>>>>>>>> Mobile : +94 773946123 >>>>>>>>>> Tel : +94 112662541 >>>>>>>>>> Email : [email protected] <[email protected]> >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> Dev mailing list >>>>>>>>>> [email protected] >>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> >>>>>>>>> Best Regards, >>>>>>>>> >>>>>>>>> Malaka Silva >>>>>>>>> Senior Tech Lead >>>>>>>>> M: +94 777 219 791 >>>>>>>>> Tel : 94 11 214 5345 >>>>>>>>> Fax :94 11 2145300 >>>>>>>>> Skype : malaka.sampath.silva >>>>>>>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 >>>>>>>>> Blog : http://mrmalakasilva.blogspot.com/ >>>>>>>>> >>>>>>>>> WSO2, Inc. >>>>>>>>> lean . enterprise . middleware >>>>>>>>> http://www.wso2.com/ >>>>>>>>> http://www.wso2.com/about/team/malaka-silva/ >>>>>>>>> <http://wso2.com/about/team/malaka-silva/> >>>>>>>>> >>>>>>>>> Save a tree -Conserve nature & Save the world for your future. >>>>>>>>> Print this email only if it is absolutely necessary. >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> >>>>>>> Best Regards, >>>>>>> >>>>>>> Malaka Silva >>>>>>> Senior Tech Lead >>>>>>> M: +94 777 219 791 >>>>>>> Tel : 94 11 214 5345 >>>>>>> Fax :94 11 2145300 >>>>>>> Skype : malaka.sampath.silva >>>>>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 >>>>>>> Blog : http://mrmalakasilva.blogspot.com/ >>>>>>> >>>>>>> WSO2, Inc. >>>>>>> lean . enterprise . middleware >>>>>>> http://www.wso2.com/ >>>>>>> http://www.wso2.com/about/team/malaka-silva/ >>>>>>> <http://wso2.com/about/team/malaka-silva/> >>>>>>> >>>>>>> Save a tree -Conserve nature & Save the world for your future. Print >>>>>>> this email only if it is absolutely necessary. >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> Best Regards, >>>>> >>>>> Malaka Silva >>>>> Senior Tech Lead >>>>> M: +94 777 219 791 >>>>> Tel : 94 11 214 5345 >>>>> Fax :94 11 2145300 >>>>> Skype : malaka.sampath.silva >>>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 >>>>> Blog : http://mrmalakasilva.blogspot.com/ >>>>> >>>>> WSO2, Inc. >>>>> lean . enterprise . middleware >>>>> http://www.wso2.com/ >>>>> http://www.wso2.com/about/team/malaka-silva/ >>>>> <http://wso2.com/about/team/malaka-silva/> >>>>> >>>>> Save a tree -Conserve nature & Save the world for your future. Print >>>>> this email only if it is absolutely necessary. >>>>> >>>> >>>> >>> >>> >>> -- >>> >>> Best Regards, >>> >>> Malaka Silva >>> Senior Tech Lead >>> M: +94 777 219 791 >>> Tel : 94 11 214 5345 >>> Fax :94 11 2145300 >>> Skype : malaka.sampath.silva >>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 >>> Blog : http://mrmalakasilva.blogspot.com/ >>> >>> WSO2, Inc. >>> lean . enterprise . middleware >>> http://www.wso2.com/ >>> http://www.wso2.com/about/team/malaka-silva/ >>> <http://wso2.com/about/team/malaka-silva/> >>> >>> Save a tree -Conserve nature & Save the world for your future. Print >>> this email only if it is absolutely necessary. >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> *Bhathiya Jayasekara* >> *Senior Software Engineer,* >> *WSO2 inc., http://wso2.com <http://wso2.com>* >> >> *Phone: +94715478185 <%2B94715478185>* >> *LinkedIn: http://www.linkedin.com/in/bhathiyaj >> <http://www.linkedin.com/in/bhathiyaj>* >> *Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>* >> *Blog: http://movingaheadblog.blogspot.com >> <http://movingaheadblog.blogspot.com/>* >> > > -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ <http://wso2.com/about/team/malaka-silva/> Save a tree -Conserve nature & Save the world for your future. Print this email only if it is absolutely necessary.
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
