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

Java Development

Reply
New Developer
dacut
Posts: 4
Registered: ‎12-05-2008
My Device: Not Specified

Can't connect to MDS simulator unless /clear-flash is passed to fledge.

Here's one which recently cropped up and has me scratching my head.

 

I've been running the 8820 v4.2.2.160 simulator + MDS 4.1.2 without any issues.  I recently installed the 8820 v4.5.0.22 simulator alongside it for testing purposes.

 

Since then, I've been unable to connect from the simulator through the MDS simulator to access any services (including the BlackBerry home page from the browser) unless I pass /clear-flash to fledge.  The message I get is the usual, "Unable to connect to the selected Mobile Data Service, please try again later.  If the problem persists please contact your administrator."

 

I've thrown SysInternals' ProcMon at the problem.  Here's what I see when I'm able to connect:

fledge.exe    4436    TCP Reconnect    localhost:2339 -> localhost:3563    SUCCESS    Length: 0
fledge.exe    4436    TCP Reconnect    localhost:2339 -> localhost:3563    SUCCESS    Length: 0
fledge.exe    4436    TCP Disconnect    localhost:2339 -> localhost:3563    SUCCESS    Length: 0
fledge.exe    4436    TCP Reconnect    localhost:2343 -> localhost:45654    SUCCESS    Length: 0
fledge.exe    4436    TCP Reconnect    localhost:2343 -> localhost:45654    SUCCESS    Length: 0
fledge.exe    4436    TCP Disconnect    localhost:2343 -> localhost:45654    SUCCESS    Length: 0
fledge.exe    4436    UDP Send    localhost:19780 -> localhost:19781    SUCCESS    Length: 11
fledge.exe    4436    UDP Send    localhost:19780 -> localhost:19781    SUCCESS    Length: 343
fledge.exe    4436    UDP Receive    localhost:19780 -> localhost:19781    SUCCESS    Length: 11
fledge.exe    4436    UDP Receive    localhost:19780 -> localhost:19781    SUCCESS    Length: 86

... followed by many more lines showing UDP transfers between fledge and MDS.

 

When unsuccessful (i.e., without /clear-flash), I just get the inital TCP handshake and then ... nothing:

fledge.exe    4536    TCP Reconnect    localhost:2360 -> localhost:3563    SUCCESS    Length: 0
fledge.exe    4536    TCP Reconnect    localhost:2360 -> localhost:3563    SUCCESS    Length: 0
fledge.exe    4536    TCP Disconnect    localhost:2360 -> localhost:3563    SUCCESS    Length: 0
fledge.exe    4536    TCP Reconnect    localhost:2361 -> localhost:45654    SUCCESS    Length: 0
fledge.exe    4536    TCP Reconnect    localhost:2361 -> localhost:45654    SUCCESS    Length: 0
fledge.exe    4536    TCP Disconnect    localhost:2361 -> localhost:45654    SUCCESS    Length: 0

 

I've tried uninstalling/reinstalling various components (including reverting to what should have been the initial state), as well as uninstalling all device and MDS simulators, blasting away any lingering files, and re-installing just 8820 v4.2.2.160 + MDS 4.1.2.  No luck.

 

When unsuccessful, MDS shows no activity in its console log apart from the usual expire records/statistics save messages.

 

I am aware of this KB article, but it doesn't seem to apply to me:

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800792/801079/Support...

 

BlackBerry Development Advisor
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Can't connect to MDS simulator unless /clear-flash is passed to fledge.

Do both versions of BlackBerry Simulator fail to connect or is jus version 4.2.2 failing?  Are you running both simulators at the same time or one after the other?  Only one instance of BlackBerry Simulator should be run at one time.  Note that it is recommended to restart the MDS Simulator when changing BlackBerry Simulators.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
dacut
Posts: 4
Registered: ‎12-05-2008
My Device: Not Specified

Re: Can't connect to MDS simulator unless /clear-flash is passed to fledge.

I'm only running one instance at a time (in fact, only the 4.2.2 simulator is installed now).

 

However, I think I got it running (at least, it seems to be working now).  I found an extra configuration directory in %HOMEPATH%\net\rim\fledge-2 which had a number of files, probably mixed and matched between various levels of 4.2.2 installed over time (I've been toying with both 4.2.2.116 and 4.2.2.160).  I removed it and reinstalled the simulator -- so far, so good.

 

I'll update this if it breaks again.  Thanks!