2008-12-04 37 views
1

是否有人突然遇到來自其用戶嘗試使用as3salesforce.swc從Flex應用程序連接到salesforce.com的登錄錯誤?從Flex連接到salesforce.com的登錄錯誤

我得到以下錯誤...刪除密碼,以保護無辜...

App Domain = null 
Api Server name = na3.salesforce.com 
_internalServerUrl = https://na3.salesforce.com/services/Soap/u/14.0 
loading the policy file: https://na3.salesforce.com/services/Soap/cross-domain.xml 
Your application must be running on a https server in order to use https to communicate with salesforce.com! 
login with creds 
loading the policy file: https://na3.salesforce.com/services/crossdomain.xml 
Your application must be running on a https server in order to use https to communicate with salesforce.com! 
invoke login 
intServerUrl is null 
intServerUrl = https://na3.salesforce.com/services/Soap/u/14.0 
_invoke login 
'5A5D3012-7717-E3C2-9B39-FFBBFF1F1B47' producer set destination to 'DefaultHTTPS'. 
Method name is: login 
'direct_http_channel' channel endpoint set to http://localhost/pm_server/pm/ 
'5A5D3012-7717-E3C2-9B39-FFBBFF1F1B47' producer sending message 'E32C7199-72C1-B258-B483-FFBC1641173D' 
'direct_http_channel' channel sending message: 
(mx.messaging.messages::HTTPRequestMessage)#0 
    body = "<se:Envelope xmlns:se="http://schemas.xmlsoap.org/soap/envelope/"><se:Header xmlns:sfns="urn:partner.soap.sforce.com"/><se:Body><login xmlns="urn:partner.soap.sforce.com" xmlns:ns1="sobject.partner.soap.sforce.com"><username>[email protected]</username><password>******</password></login></se:Body></se:Envelope>" 
    clientId = (null) 
    contentType = "text/xml; charset=UTF-8" 
    destination = "DefaultHTTPS" 
    headers = (Object)#1 
    httpHeaders = (Object)#2 
    Accept = "text/xml" 
    SOAPAction = """" 
    X-Salesforce-No-500-SC = "true" 
    messageId = "E32C7199-72C1-B258-B483-FFBC1641173D" 
    method = "POST" 
    recordHeaders = false 
    timestamp = 0 
    timeToLive = 0 
    url = "https://na3.salesforce.com/services/Soap/u/14.0" 
'5A5D3012-7717-E3C2-9B39-FFBBFF1F1B47' producer connected. 
Method name is: login 
Error: Ignoring policy file at https://na3.salesforce.com/crossdomain.xml due to meta-policy 'by-content-type'. 

'5A5D3012-7717-E3C2-9B39-FFBBFF1F1B47' producer acknowledge of 'E32C7199-72C1-B258-B483-FFBC1641173D'. 
responseType: Fault 
Saleforce Soap Fault: sf:INVALID_LOGIN 
INVALID_LOGIN: Invalid username, password, security token; or user locked out. 
Comunication Error : sf:INVALID_LOGIN : INVALID_LOGIN: Invalid username, password, security token; or user locked out. : [object Object] 

回答

2

顯然沒有其他人那裏是建立在salesforce.com ..

YIPPEE的頂部Flex應用程序,我是第一個。

總之,我發現這是salesforce.com截至2008年12月6日的一個錯誤。問題在於,由於salesforce上的負載平衡,處理登錄的腳本無法充分滿足必要的重定向。 com服務器。

應該可以去通過salesforce.com的一個URL,如API的WWW前門...

"https://www.salesforce.com/services/Soap/u/13.0"; 

,其中13代表你的靶向他們的API的版本。但是,所有用戶實際上都被分配到特定的服務器,所以前門應該將登錄請求重定向到適當的地方,而如果您來自Flex,則不會。

一個workround是指定服務器的URL,如...

"https://na5.salesforce.com/services/Soap/u/13.0"; 

...這是我在做什麼。如果您是單一用戶不斷訪問相同資源並且您的帳戶仍然連接到該服務器,那很好。但是,如果...

  1. 您分發您的應用程序,因此任何人誰擁有salesforce.com企業帳戶可以登錄或
  2. 您的帳戶被感動,因爲一些內部負載平衡(這是發生在我身上)

那麼提供固定服務器的方法將不起作用。

這個錯誤(據我瞭解)是www路由不能充分重定向到你的主機服務器。最後的情報是,它會很快被修復。

我希望我能記住這爲答案...

+0

你需要通過www.salesforce.com登錄,但你需要加載特定的彎曲政策文件,而不是默認的一個。 (我把這個放在你的其他問題之一中)。 developer.force.com論壇是提問的好地方http://community.salesforce.com/sforce?category.id=developers – superfell 2008-12-07 06:20:51