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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Developer
Biswas
Posts: 49
Registered: ‎07-16-2008

Problem in Wi-Fi Connection

Hi,

 

The Wi-Fi Network connection throwing an IOException "java.io.IOException: Open tunnel - max timeout"

 

This is the request i used :

StreamConnection stream = (StreamConnection)Connector.open("http://mob.i-waves.com/ServerWebApp/Sathyam/sathyamjava.asp?id=1|*;interface=wifi");

 

I m using JDE - 4.3.0 and BB device simulator 8120.

 

Should i change any setting in my simulator to make it run?

 

I think i m missing something here.

 

Thanks

 

 

 

 

Please use plain text.
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Carrier: ***

Re: Problem in Wi-Fi Connection

[ Edited ]

Do you have started MDS simulator along with your device simulator ?

 

MDS simulator provides internet access  to the device simulator.

Message Edited by tbilisoft on 09-01-2009 01:05 PM
Please use plain text.
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Carrier: ***

Re: Problem in Wi-Fi Connection

You can download MDS Simulator from here:

 

https://www.blackberry.com/Downloads/entry.do?code=060AD92489947D410D897474079C1477

 

It is listed as "Blackberry Email and MDS Services Simulator Package"

Please use plain text.
Developer
peter_strange
Posts: 17,718
Registered: ‎07-14-2008

Re: Problem in Wife Connection

I didn't think the Simulator supported Wi-Fi, or does that depend on the device?  I will have to give it try!

 

Rather than running the MDS Simulator, you can just append ";deviceside=true" to the connection URL (in pace of anything else) and that will work on the simulator.  Using ";deviceside=true" will test your network processing, but clearly not whether Wi-Fi works!  I'll have a go at testing this and come back to you, unless someone else already knows if you really can use ";interface=wifi" on the simulator?

Please use plain text.
New Developer
Biswas
Posts: 49
Registered: ‎07-16-2008

Re: Problem in Wi-Fi Connection

Hi,

 

I have started MDS.

 

And i also tried using http Connection:

 

conn = (HttpConnection)Connector.open(url+";interface=wifi");

 

But no luck.

 

Still i m having same exception : java.io.IOException: Open tunnel - max timeout

 

Thanks.

Please use plain text.
Developer
peter_strange
Posts: 17,718
Registered: ‎07-14-2008

Re: Problem in Wi-Fi Connection

Found it:

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=12151&query.id=40...

 

Sorry you can't test ";interrace=wifi" on the simulator. :smileysad:

Please use plain text.
New Developer
Biswas
Posts: 49
Registered: ‎07-16-2008

Re: Problem in Wi-Fi Connection

Hi,

 

Thanks tor your reply.

 

 

Please use plain text.