BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 02-02-2010, 09:33 AM   #1 (permalink)
New Member
 
Join Date: Feb 2010
Model: 9530
PIN: N/A
Carrier: Airtel India
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Strange Connection refused error in MDS log

Please Login to Remove!

I have developed a push server to push messages to MDS. I am using 'TRANSPORT' level reliable push. Hence there is a notification receiver thread available as a part of push server itself. The thread is responsible to listen on port 7779 for any confirmation from MDS for the pushed message.


I pass the header attribute 'X-RIM-Push-NotifyURL' with '[http]://10.74.4.6:7779' (remove [] brackets) as a value.


Just for simplicity I have kept MDS and Push Server on same machine, but in the real world deployment I want to put them on separate machines Hence for notify url I use IP address of the machine where Push Server (and hence notification receiver thread too) is available.


But I do not get the confirmation back......... The MDS log contain strange 'Connection refused' error message. Pl check the following logs.


Code:
<2010-02-02 19:39:43.062 GMT+05:30>:[174]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Notifying to URL = [http]://10.74.4.6:7779, pushId = 163
851306, destination = 2118340A, result code = 200>
<2010-02-02 19:39:43.250 GMT+05:30>:[175]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = RemovedSendingQueue, DEVICEPIN = 2118340a>
02-Feb-2010 19:39:44 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
02-Feb-2010 19:39:44 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
02-Feb-2010 19:39:45 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
02-Feb-2010 19:39:45 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
02-Feb-2010 19:39:46 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
02-Feb-2010 19:39:46 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
02-Feb-2010 19:39:48 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
02-Feb-2010 19:39:48 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
02-Feb-2010 19:39:49 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
02-Feb-2010 19:39:49 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
02-Feb-2010 19:39:50 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
02-Feb-2010 19:39:50 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
<2010-02-02 19:39:51.109 GMT+05:30>:[176]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Push notification failed with error:net.rim.shared.com
mand.d: could not connect to [http]://10.74.4.6:7779>


Kindly note when I use notify URL as '[http]://localhost:7779' (remove [] brackets) (The IP address is changed with localhost) it works absolutely fine and I get the confirmation back.
Offline  




Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.