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
Developer
BriGuy
Posts: 67
Registered: ‎09-01-2009
My Device: Blackberry 9000 Bold
My Carrier: Rogers
Accepted Solution

Push via MDS Simulator and Win7

Hello all,

 

I have a new computer with Win7 Professional installed and I've been having trouble getting the BlackBerry Simulator to recognize the push in my application.  I also have my old WinXP computer that gets the push with my "in development" BlackBerry application.  I.e. It works on WinXP but not on Win7.

 

I am using Eclipse Galileo with the BlackBerry plug-in.  Developing with BlackBerry JRE v4.6.0.23 on BlackBerry Simulator 9000.  The MDS Simulator is installed in C:\BlackBerry Email and MDS Services Simulators 4.1.4, to avoid some of the security restrictions of C:\Program Files.

 

Simulator configuration in the "rimpublic.property" file is to remove the # from the line "push.application.reliable.ports=100" at the bottom of the file.  No other changes are made.  The MDS web server starts on port 8080 (the default).

 

On the WinXP machine, I launch the MDS Simulator, then I launch my Eclipse application and the BlackBerry Simulator starts.  I will exit my application and go to the web browser and launch a website (doesn't matter which one) and I will see the MDS Simulator working.  I.e. It will be showing entries in the MDS Dos Window.  This is what I expect. Then I launch my app and send the push and everything works fine.

 

On the Win7 computer I am using the same BlackBerry Simulator version 4.1.4, the same Eclipse version, and the same BlackBerry Simulator version.  When I access a website on the BlackBerry, nothing is happening in the MDS Simulator Dos window.  I do get a web page, but I expect something to happen in the MDS Simulator Dos window.  

 

This is where I think the problem lies, but I'm not sure.  The push sample instructions say to launch the website on the BlackBerry browser to get the push to work properly.  Is this right or am I mis-interpreting this?

 

Additionally on the Win7 machine, even though the BlackBerry web browser does not do what I expect on the MDS Simulator, if I push my data anyway, I see the MDS recognizing the push.

 

Long story short, my BlackBerry application will not recognize the push from my .Net push application on Win7, but works fine on WinXP.

 

I've been looking at the for the last 2 days and have research it extensively, but there is just not much info on this type of problem.

 

Any suggestions / help would be greatly appreciated?

 

Here is some information displayed in the MDS Simulator Dos window after I send my push.

 

 

<2010-07-16 09:11:26.080 CDT>:[127]:<MDS-CS_MDS>:<ERROR>:<LAYER = IPPP, HANDLER
= http, Failed to load SlipStream native text compression library; error report
follows:>
<2010-07-16 09:11:26.081 CDT>:[128]:<MDS-CS_MDS>:<ERROR>:<LAYER = IPPP, HANDLER
= http,   Path: "yk" Error: "no yk in java.library.path">
<2010-07-16 09:11:26.082 CDT>:[129]:<MDS-CS_MDS>:<ERROR>:<LAYER = IPPP, HANDLER
= http,   Path: "C:\BlackBerry Email and MDS Services Simulators 4.1.4\MDS/../..
/bin/yk.dll" Error: "Can't load library: C:\BlackBerry Email and MDS Services Si
mulators 4.1.4\MDS/../../bin/yk.dll">
<2010-07-16 09:11:26.082 CDT>:[130]:<MDS-CS_MDS>:<ERROR>:<LAYER = IPPP, HANDLER
= http,   Path: "C:\BlackBerry Email and MDS Services Simulators 4.1.4\MDS/../..
/bin/Windows 7-x86/libyk.so" Error: "Can't load library: C:\BlackBerry Email and
 MDS Services Simulators 4.1.4\MDS/../../bin/Windows 7-x86/libyk.so">
<2010-07-16 09:11:26.083 CDT>:[131]:<MDS-CS_MDS>:<ERROR>:<LAYER = IPPP, HANDLER
= http,   Path: "C:\BlackBerry Email and MDS Services Simulators 4.1.4\MDS/bin/W
indows 7-x86/libyk.so" Error: "Can't load library: C:\BlackBerry Email and MDS S
ervices Simulators 4.1.4\MDS/bin/Windows 7-x86/libyk.so">
<2010-07-16 09:11:26.084 CDT>:[132]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, Transcod
er [vnd.rim.html] text/html->application/vnd.rim.html>
<2010-07-16 09:11:26.084 CDT>:[133]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, Transcod
er [vnd.rim.html] text/plain->application/vnd.rim.html>
<2010-07-16 09:11:26.084 CDT>:[134]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, Transcod
er [vnd.rim.html] application/xhtml+xml->application/vnd.rim.html>
<2010-07-16 09:11:26.084 CDT>:[135]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, Transcod
er [vnd.rim.html] application/vnd.wap.xhtml+xml->application/vnd.rim.html>
<2010-07-16 09:11:26.088 CDT>:[136]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, Transcod
er [vnd.rim.css] text/css->text/css>
<2010-07-16 09:11:26.090 CDT>:[137]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, Transcod
er [vnd.wap.multipart] multipart/related->application/vnd.wap.multipart.related>

<2010-07-16 09:11:26.091 CDT>:[138]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, Transcod
er [vnd.wap.multipart] multipart/alternative->application/vnd.wap.multipart.alte
rnative>
<2010-07-16 09:11:26.091 CDT>:[139]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, Transcod
er [vnd.wap.multipart] multipart/mixed->application/vnd.wap.multipart.mixed>
<2010-07-16 09:11:26.094 CDT>:[140]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, Transcod
er [vnd.wap.wml] text/vnd.wap.wml->application/vnd.wap.wmlc>
<2010-07-16 09:11:26.095 CDT>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = -60489728, HT
TPTRANSMISSION =>
<2010-07-16 09:11:26.095 CDT>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = -60489728, HT
TPTRANSMISSION = [Transmission Line Section]:>
<2010-07-16 09:11:26.095 CDT>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = -60489728, HT
TPTRANSMISSION = POST / HTTP/1.1>
<2010-07-16 09:11:26.095 CDT>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = -60489728, HT
TPTRANSMISSION = [Headers Section]: 9 headers>
<2010-07-16 09:11:26.095 CDT>:[141]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER
= HTTP, EVENT = SentToDevice, DEVICEPIN = 2100000a, CONNECTIONID = -60489728, HT
TPTRANSMISSION = [Parameters Section]: 3 parameters>
<2010-07-16 09:11:26.097 CDT>:[142]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = F
inished JobRunner: DefaultJobRunner-0, available threads in DefaultJobPool = 10,
 time spent = 723ms>
<2010-07-16 09:11:26.105 CDT>:[147]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
Sending, TAG = 1112604673, DEVICEPIN = 2100000a, VERSION = 16, CONNECTIONID = -6
0489728, SEQUENCE = 1, TYPE = DATA, SIZE = 8192>
<2010-07-16 09:11:26.126 CDT>:[152]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
Sending, TAG = 1112604674, DEVICEPIN = 2100000a, VERSION = 16, CONNECTIONID = -6
0489728, SEQUENCE = 2, TYPE = DATA, SIZE = 8192>
<2010-07-16 09:11:26.146 CDT>:[157]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
Sending, TAG = 1112604675, DEVICEPIN = 2100000a, VERSION = 16, CONNECTIONID = -6
0489728, SEQUENCE = 3, TYPE = DATA, SIZE = 8192>
<2010-07-16 09:11:26.166 CDT>:[162]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
Sending, TAG = 1112604676, DEVICEPIN = 2100000a, VERSION = 16, CONNECTIONID = -6
0489728, SEQUENCE = 4, TYPE = DATA, SIZE = 8192>

 

 

Thanks, Brian
--------------------------------------------------------------------------------------
To error is human, but to really mess things up requires admin rights.

If this post has helped, don't be shy and click the kudo's star !!!
Please use plain text.
Developer
BriGuy
Posts: 67
Registered: ‎09-01-2009
My Device: Blackberry 9000 Bold
My Carrier: Rogers

Re: Push via MDS Simulator and Win7

[ Edited ]

Upon further investigation and testing.  I finally got the HttpPushDemo working in Win7 with the Java Client and Java Server.  I did have to comment out the response code on the Java Push Server code.  I commented out the following line.

 

conn.setRequestProperty("X-RIM-Push-Reliability-Mode","APPLICATION");

 

 

This was based on information on this forum topic: Problem: Get a HTTP 400 Error when initiating HTTP-Push. (Thanks to "hacker" for that solution).

 

I cannot get the push to work consistently.  When it works I do not get the error message I posted above.  When it doesn't work I get the message posted above.  It looks like it is a problem loading some of the MDS simulator libraries, but I'm not sure why.

 

The MDS simulator does not seem to recognize when I access a website with the BlackBerry browser and I believe this is why I cannot get ACK.  That said, I don't need ACK anyway.

 

As indicated in the link to the post above, I also cannot get PAP push to work.  I think it is also related to the ACK,

Thanks, Brian
--------------------------------------------------------------------------------------
To error is human, but to really mess things up requires admin rights.

If this post has helped, don't be shy and click the kudo's star !!!
Please use plain text.
Developer
BriGuy
Posts: 67
Registered: ‎09-01-2009
My Device: Blackberry 9000 Bold
My Carrier: Rogers

Re: Push via MDS Simulator and Win7

Closing this thread as I started another one that is working on getting the httppushdemo working with Win7.  See here http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/MDS-Simulator-and-Win7/td-p/54780...

 

Thanks, Brian
--------------------------------------------------------------------------------------
To error is human, but to really mess things up requires admin rights.

If this post has helped, don't be shy and click the kudo's star !!!
Please use plain text.