Subject: Openconnection Method is getting called repeatedly
Hi,
I have Created a dll using Matrix. This dll will be registered as a COM Component and I am calling the Openconnection and send message from Classic Asp Page.
Below is my code snippet in asp page
Attached is my code snippet for dll.
In the Logs I always see
This means method openconnection is getting called even after successful login. Could you please help me why Open Connection is getting called even after successful login
I have Created a dll using Matrix. This dll will be registered as a COM Component and I am calling the Openconnection and send message from Classic Asp Page.
Below is my code snippet in asp page
- function OpenOFConnection()
- dim xmppDomainName,xmppServerName,adminServiceAccount,adminPassword,userListArr,touser,int_cnt
- dim xmppPort : xmppPort = 5222
- dim retryCount : retryCount =1
- if objOpenFire.GetConnectionStatus() = "False" then
- ' Get the XMPP Domain Name
- xmppDomainName = GetXmppDomainNameFromDB
- ' Get XMPP Server Name
- xmppServerName = GetXmppServerNameFromDB
- xmppPort = GetXmppServerPortFromDB
- ' Get Service Account for Admin
- adminServiceAccount = GetUserNameFromDB
- ' Get the Password of Service Account
- adminPassword = GetServiceAccountPassword(adminServiceAccount)
- dim connected : connected=false
- dim errMessage
- dim resource,objWSHNetwork
- on error resume next
- resource = objWSHNetwork.ComputerName
- ' Create Boradcast Object
- objOpenFire.Intialize xmppDomainName,adminServiceAccount,resource,adminPassword,xmppServerName,xmppPort
- ' Open the connection
- do while (OpenOFConnection = false)
- objOpenFire.OpenConnection(null)
- if objOpenFire.GetConnectionStatus = "True" then
- OpenOFConnection=true
- end if
- if retryCount > 500 then
- exit do
- end if
- retryCount = retryCount +1
- loop
- end if
- on error goto 0
- end function
Attached is my code snippet for dll.
In the Logs I always see
BroadCast : 9/2/2017 12:42:41 PM : Login Successful.
BroadCast : 9/2/2017 12:42:41 PM : Sending Message To. xyz@xmppdomain.com
BroadCast : 9/2/2017 12:42:45 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:42:45 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:43:05 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:43:05 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:43:25 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:43:25 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:43:45 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:43:46 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:43:48 PM : Sending Message To. xyz@xmppdomain.com
BroadCast : 9/2/2017 12:44:06 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:44:06 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:44:26 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:44:26 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:44:46 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:44:46 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:45:06 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:45:06 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:45:26 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:45:26 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:45:46 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:45:46 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:46:06 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:46:06 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:46:26 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:46:26 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:46:46 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:46:46 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:47:06 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:47:06 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:47:26 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:47:26 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:47:46 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:47:47 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:48:07 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:48:07 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:48:27 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:48:27 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:48:47 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:48:47 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:49:07 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:49:07 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:42:41 PM : Sending Message To. xyz@xmppdomain.com
BroadCast : 9/2/2017 12:42:45 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:42:45 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:43:05 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:43:05 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:43:25 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:43:25 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:43:45 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:43:46 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:43:48 PM : Sending Message To. xyz@xmppdomain.com
BroadCast : 9/2/2017 12:44:06 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:44:06 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:44:26 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:44:26 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:44:46 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:44:46 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:45:06 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:45:06 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:45:26 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:45:26 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:45:46 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:45:46 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:46:06 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:46:06 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:46:26 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:46:26 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:46:46 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:46:46 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:47:06 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:47:06 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:47:26 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:47:26 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:47:46 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:47:47 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:48:07 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:48:07 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:48:27 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:48:27 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:48:47 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:48:47 PM : Session Error...The Open method cannot be called on an active stream.
BroadCast : 9/2/2017 12:49:07 PM : Not Connected. Getting New Connection...
BroadCast : 9/2/2017 12:49:07 PM : Session Error...The Open method cannot be called on an active stream.
This means method openconnection is getting called even after successful login. Could you please help me why Open Connection is getting called even after successful login
The author has attached one file to this post:
Matrix_Dll_Code.txt 7.1 kBytes
You have no permission to open this file.
You have no permission to open this file.
This post was edited 3 times, last on 2017-09-03, 14:09 by Alex.