Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry Push Development

Reply
Highlighted
New Developer
Posts: 3
Registered: ‎02-17-2011
My Device: Not Specified

Not able to PUSH--MDS Issue---Urgent help needed!!

Hello,

 

I am trying to implement PUSH using the MDS server. I have a Rhosync Server running on port 9292 which sends a http request to MDS on port 8080. My tomcat is running on port 8081.

 

I am using my machine ip address and not localhost or 127.0.0.1 while specifying MDS details for Rhosync server. MDS runs on my local machine.

I also start MDS server before running the Blackberry simulator.

--------------------------------------

:development:
  :mdsserver: 10.16.12.187
  :mdsserverport: 8080

---------------------------------------

 

Here are the MDS logs which i get.

(Notice the default port 7778 which the MDS is using.....)

kindly suggest where can I change the port in MDS configuration....I think I am using MDS simulator(which comes with Blackberry JDE 4.6.0)

----------------------------------------------------------------------------------------------------

<2011-02-17 18:00:32.078 IST>:[236]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = P
apServlet: request from 10.16.12.187 658 bytes...>
<2011-02-17 18:00:32.421 IST>:[237]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = P
apServlet senderAddress = http://manus-ci:8080/pap>
<2011-02-17 18:00:32.453 IST>:[238]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = M
apping PAP request to push request for pushID: pushID:89919236>
<2011-02-17 18:00:32.500 IST>:[239]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = P
ushServlet: POST request from [UNKNOWN @ 10.16.12.187] to [PAPDEST=WAPPUSH%3D210
0000A%253A100%2FTYPE%3DUSER%40rim.net&PORT=100&REQUESTURI=/] : -1 bytes...>
<2011-02-17 18:00:32.500 IST>:[240]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = s
ubmitting push message with id: pushID:89919236>
<2011-02-17 18:00:32.500 IST>:[241]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = E
xecuting push submit command for pushID: pushID:89919236>
<2011-02-17 18:00:32.500 IST>:[242]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = P
ushing message to: 2100000a>
<2011-02-17 18:00:32.500 IST>:[243]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = N
umber of active push connections:1>
<2011-02-17 18:00:32.500 IST>:[244]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = a
dded server-initiated connection = -669646848, push id = pushID:89919236>
<2011-02-17 18:00:32.500 IST>:[245]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = A
vailable threads in DefaultJobPool = 9 running JobRunner: DefaultJobRunner-5>
<2011-02-17 18:00:32.609 IST>:[246]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = -669646
848, HTTPTRANSMISSION =>
<2011-02-17 18:00:32.609 IST>:[246]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = -669646
848, HTTPTRANSMISSION = [Transmission Line Section]Smiley Embarassed
<2011-02-17 18:00:32.609 IST>:[246]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = -669646
848, HTTPTRANSMISSION = POST / HTTP/1.1>
<2011-02-17 18:00:32.609 IST>:[246]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = -669646
848, HTTPTRANSMISSION = [Headers Section]: 8 headers>
<2011-02-17 18:00:32.609 IST>:[246]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = ReceivedFromServer, DEVICEPIN = 2100000a, CONNECTIONID = -669646
848, HTTPTRANSMISSION = [Parameters Section]: 3 parameters>
<2011-02-17 18:00:32.609 IST>:[247]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
CreatedSendingQueue, DEVICEPIN = 2100000a>
<2011-02-17 18:00:32.843 IST>:[248]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
Sending, TAG = 186515462, DEVICEPIN = 2100000a, VERSION = 16, CONNECTIONID = -66
9646848, SEQUENCE = 0, TYPE = CONNECTION-REQUEST, CONNECTIONHANDLER = http, PROT
OCOL = TCP, PARAMETERS = [manus-ci/10.16.2.78:100], SIZE = 0>
<2011-02-17 18:00:32.843 IST>:[249]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = -669646848, H
TTPTRANSMISSION =>
<2011-02-17 18:00:32.843 IST>:[249]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = -669646848, H
TTPTRANSMISSION = [Transmission Line Section]Smiley Embarassed
<2011-02-17 18:00:32.843 IST>:[249]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = -669646848, H
TTPTRANSMISSION = POST / HTTP/1.1>
<2011-02-17 18:00:32.843 IST>:[249]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = -669646848, H
TTPTRANSMISSION = [Headers Section]: 9 headers>
<2011-02-17 18:00:32.843 IST>:[249]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = -669646848, H
TTPTRANSMISSION = [Parameters Section]: 3 parameters>
<2011-02-17 18:00:32.890 IST>:[251]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = F
inished JobRunner: DefaultJobRunner-5, available threads in DefaultJobPool = 10,
 time spent = 390ms>
<2011-02-17 18:00:32.875 IST>:[250]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
Sending, TAG = 186515463, DEVICEPIN = 2100000a, VERSION = 16, CONNECTIONID = -66
9646848, SEQUENCE = 1, TYPE = DATA, SIZE = 385>
<2011-02-17 18:00:32.953 IST>:[252]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
Sending, TAG = 186515464, DEVICEPIN = 2100000a, VERSION = 16, CONNECTIONID = -66
9646848, SEQUENCE = 2, TYPE = DATA, SIZE = 0>
<2011-02-17 18:00:32.953 IST>:[253]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = N
umber of active push connections:0>
<2011-02-17 18:00:33.125 IST>:[254]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
Notification, TAG = 186515462, STATE = DELIVERED>
<2011-02-17 18:00:33.156 IST>:[255]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
Receiving, TAG = 494794378, DEVICEPIN = 2100000a, VERSION = 16, CONNECTIONID = -
669646848, SEQUENCE = 0, TYPE = DISCONNECT-ORDER, SIZE = 0>
<2011-02-17 18:00:33.156 IST>:[256]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
Notification, TAG = 186515463, STATE = DELIVERED>
<2011-02-17 18:00:33.171 IST>:[257]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
Receiving, TAG = 494794379, DEVICEPIN = 2100000a, VERSION = 16, CONNECTIONID = -
669646848, SEQUENCE = 0, TYPE = DISCONNECT-ORDER, SIZE = 0>
<2011-02-17 18:00:33.187 IST>:[258]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
Notification, TAG = 186515464, STATE = DELIVERED>
<2011-02-17 18:00:33.265 IST>:[259]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = P
ush notification thread starting: Thread-16>
<2011-02-17 18:00:33.265 IST>:[260]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = D
evice connections: AVG latency (msecs)656>
<2011-02-17 18:00:33.281 IST>:[261]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = P
ush notification thread starting: Thread-25>
<2011-02-17 18:00:33.281 IST>:[269]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = P
ush notification thread starting: Thread-18>
<2011-02-17 18:00:33.281 IST>:[268]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = P
ush notification thread starting: Thread-22>
<2011-02-17 18:00:33.281 IST>:[267]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = P
ush notification thread starting: Thread-24>
<2011-02-17 18:00:33.281 IST>:[266]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = P
ush notification thread starting: Thread-17>
<2011-02-17 18:00:33.281 IST>:[265]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = P
ush notification thread starting: Thread-19>
<2011-02-17 18:00:33.281 IST>:[264]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = P
ush notification thread starting: Thread-21>
<2011-02-17 18:00:33.281 IST>:[263]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = P
ush notification thread starting: Thread-23>
<2011-02-17 18:00:33.281 IST>:[262]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, Removed
push connection:-669646848>
<2011-02-17 18:00:33.281 IST>:[271]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = N
otifying to URL = http://localhost:7778, pushId = pushID:89919236, destination =
 2100000A, result code = 5234 net.rim.protocol.iplayer.push.b: Push connection a
borted by device>
<2011-02-17 18:00:33.281 IST>:[270]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = P
ush notification thread starting: Thread-20>
Feb 17, 2011 6:00:34 PM org.apache.commons.httpclient.HttpMethodDirector execute
WithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request:
Connection refused: connect
Feb 17, 2011 6:00:34 PM org.apache.commons.httpclient.HttpMethodDirector execute
WithRetry
INFO: Retrying request
<2011-02-17 18:00:35.109 IST>:[272]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
RemovedSendingQueue, DEVICEPIN = 2100000a>
Feb 17, 2011 6:00:35 PM org.apache.commons.httpclient.HttpMethodDirector execute
WithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request:
Connection refused: connect
Feb 17, 2011 6:00:35 PM org.apache.commons.httpclient.HttpMethodDirector execute
WithRetry
INFO: Retrying request
Feb 17, 2011 6:00:36 PM org.apache.commons.httpclient.HttpMethodDirector execute
WithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request:
Connection refused: connect
Feb 17, 2011 6:00:36 PM org.apache.commons.httpclient.HttpMethodDirector execute
WithRetry
INFO: Retrying request
Feb 17, 2011 6:00:38 PM org.apache.commons.httpclient.HttpMethodDirector execute
WithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request:
Connection refused: connect
Feb 17, 2011 6:00:38 PM org.apache.commons.httpclient.HttpMethodDirector execute
WithRetry
INFO: Retrying request
Feb 17, 2011 6:00:39 PM org.apache.commons.httpclient.HttpMethodDirector execute
WithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request:
Connection refused: connect
Feb 17, 2011 6:00:39 PM org.apache.commons.httpclient.HttpMethodDirector execute
WithRetry
INFO: Retrying request
Feb 17, 2011 6:00:40 PM org.apache.commons.httpclient.HttpMethodDirector execute
WithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request:
Connection refused: connect
Feb 17, 2011 6:00:40 PM org.apache.commons.httpclient.HttpMethodDirector execute
WithRetry
INFO: Retrying request
<2011-02-17 18:00:41.265 IST>:[273]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = P
ush notification failed with error:net.rim.shared.command.d: could not connect t
o http://localhost:7778>

--------------------------------------------------------------------------------------------

 

Thanks in advance!