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 Contributor
mick_mcgovern
Posts: 3
Registered: ‎12-11-2012
My Device: Emulator

Local connection timed out after ~ 120000

Ho,

 

I'm new to this.

 

I've got the latest Eclipse plugin and tried the Connection API example using the non blocking sender destination.

 

I'm getting the following exception

 

Local connection timed out after ~ 120000

 

From the destination.send - caught in the onMessageFailed method of the listener.

 

Question: Is there something special I need to do to configure the emulator for networking? I mean going out to the internet from the host PC.

 

Thanks

Michael

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Local connection timed out after ~ 120000

welcome to the support forums.

did you launch the MDS simulator? if not, do so
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
New Contributor
mick_mcgovern
Posts: 3
Registered: ‎12-11-2012
My Device: Emulator

Re: Local connection timed out after ~ 120000

Thanks for the response.

 

Not what the MDS emulator is.

 

I do a "Run as" or "Debug as"  from Eclipse and that launches an emulator. I select the app and go through a few screens and then select a button that runs the HTTP GET (the Communications API example code). When debugging I can see the 'timed out' exception after a couple of minutes. When not run in debug the emualtor returns (after a couple of minutes ) with an unhandled exception message (though in debug the code is going into the onMessageFailure method so I'm not sure why it is 'unhandled').

New Contributor
mick_mcgovern
Posts: 3
Registered: ‎12-11-2012
My Device: Emulator

Re: Local connection timed out after ~ 120000

I'll try the run/debug configuration setting

 

"Launch Mobile Data System Connection Service (MDS-CS) with simulator"

Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: Local connection timed out after ~ 120000

Can I recommend that you review this:

 

http://supportforums.blackberry.com/t5/Java-Development/Networking-Transports-II/ta-p/446742

 

so that you understand the issues with communicating from a mobile device.