Hi all,
I have a Flex application to authenticate with server via RemoteObject.
It is working normally with http (i.e. amf channel)
However when I try to login via https, the first access time, Flex application always return Fault error. Subsequent login is OK.
From server side, I see user has been logged in successfully at first time.
Is it because the certificate is not trusted? Any idea?
Thank you,
Anh
This is the log that I have from client side:
LoginCommand Fault: (mx.rpc.events::FaultEvent)#0
bubbles = false
cancelable = true
currentTarget = (null)
eventPhase = 2
fault = (mx.rpc::Fault)#1
content = (Object)#2
errorID = 0
faultCode = "Client.Error.MessageSend"
faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'https://172.52.22.218:9443/MyApplication/messagebroker/amfsecure'"
faultString = "Send failed"
message = "faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'https://172.52.22.218:9443/MyApplication/messagebroker/amfsecure''"
name = "Error"
rootCause = (mx.messaging.events::ChannelFaultEvent)#3
bubbles = false
cancelable = false
channel = (mx.messaging.channels::SecureAMFChannel)#4
authenticated = false
channelSets = (Array)#5
connected = false
connectTimeout = -1
enableSmallMessages = true
endpoint = "https://172.52.22.218:9443/MyApplication/messagebroker/amfsecure"
failoverURIs = (Array)#6
id = (null)
mpiEnabled = false
netConnection = (flash.net::NetConnection)#7
client = (mx.messaging.channels::SecureAMFChannel)#4
connected = false
objectEncoding = 3
proxyType = "none"
uri = "https://172.52.22.218:9443/MyApplication/messagebroker/amfsecure"
piggybackingEnabled = false
polling = false
pollingEnabled = true
pollingInterval = 3000
protocol = "https"
reconnecting = false
recordMessageSizes = false
recordMessageTimes = false
requestTimeout = -1
uri = "https://172.52.22.218:9443/MyApplication/messagebroker/amfsecure"
url = "https://172.52.22.218:9443/MyApplication/messagebroker/amfsecure"
useSmallMessages = false
channelId = (null)
connected = false
currentTarget = (mx.messaging.channels::SecureAMFChannel)#4
eventPhase = 2
faultCode = "Channel.Connect.Failed"
faultDetail = "NetConnection.Call.Failed: HTTP: Failed: url: 'https://172.52.22.218:9443/MyApplication/messagebroker/amfsecure'"
faultString = "error"
reconnecting = false
rejected = false
rootCause = (Object)#8
code = "NetConnection.Call.Failed"
description = "HTTP: Failed"
details = "https://172.52.22.218:9443/MyApplication/messagebroker/amfsecure"
level = "error"
target = (mx.messaging.channels::SecureAMFChannel)#4
type = "channelFault"
headers = (null)
message = (mx.messaging.messages::ErrorMessage)#9
body = (Object)#2
clientId = (null)
correlationId = "F4E42A7F-5E56-B704-CDB6-87826108D443"
destination = ""
extendedData = (null)
faultCode = "Client.Error.MessageSend"
faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'https://172.52.22.218:9443/MyApplication/messagebroker/amfsecure'"
faultString = "Send failed"
headers = (Object)#10
messageId = "B549C02F-9EDF-7C6E-C89F-878261572A73"
rootCause = (mx.messaging.events::ChannelFaultEvent)#3
timestamp = 0
timeToLive = 0
messageId = "B549C02F-9EDF-7C6E-C89F-878261572A73"
statusCode = 0
target = (null)
token = (mx.rpc::AsyncToken)#11
message = (mx.messaging.messages::RemotingMessage)#12
body = (Array)#13
[0] (com.mydomain.model.dto::LoginDTO)#14
statuscode = "0"
userName = "myusername"
clientId = (null)
destination = ""
headers = (Object)#15
messageId = "F4E42A7F-5E56-B704-CDB6-87826108D443"
operation = "authenticate"
source = (null)
timestamp = 0
timeToLive = 0
responders = (Array)#16
[0] (com.mydomain.controller::LoginCommand)#17
result = (null)
type = "fault"