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
Posts: 5
Registered: ‎02-27-2012
My Device: BlackBerry 9930
My Carrier: Vodafone
Accepted Solution

Not able to connect to internet through blackberry simulator

Hi! I am using Windows7-32 bit and Blackberry Java plugin for Eclipse version 1.5.0 and net.rim.ejde.componentpack7.0.0_7.0.0.33 components package. I am not able to connect to any external URL through the simulator browser. Whenever i try to hit any URL, I get an error "Unable to find the requested server".

When i start the MDS server, I get the following log:

 

 

 

12-02-27 20:00:32.106 IST>:[0]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, Admin. Task- HTTP Proxy Mappings>
12-02-27 20:00:32.117 IST>:[1]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, Admin. Task- refresh media management>
12-02-27 20:00:32.184 IST>:[2]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, The push service is ready to receive requests>
12-02-27 20:00:32.251 IST>:[3]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = J2SE 1.7.0_02 Charsets supported:Big5,Big5-HKSCS,EUC-JP,EUC-KR,GB18030,GB2312,GBK,I
Thai,IBM00858,IBM01140,IBM01141,IBM01142,IBM01143,IBM01144,IBM01145,IBM01146,IBM01147,IBM01148,IBM01149,IBM037,IBM1026,IBM1047,IBM273,IBM277,IBM278,IBM280,IB
4,IBM285,IBM297,IBM420,IBM424,IBM437,IBM500,IBM775,IBM850,IBM852,IBM855,IBM857,IBM860,IBM861,IBM862,IBM863,IBM864,IBM865,IBM866,IBM868,IBM869,IBM870,IBM871,I
18,ISO-2022-CN,ISO-2022-JP,ISO-2022-JP-2,ISO-2022-KR,ISO-8859-1,ISO-8859-13,ISO-8859-15,ISO-8859-2,ISO-8859-3,ISO-8859-4,ISO-8859-5,ISO-8859-6,ISO-8859-7,ISO
59-8,ISO-8859-9,JIS_X0201,JIS_X0212-1990,KOI8-R,KOI8-U,Shift_JIS,TIS-620,US-ASCII,UTF-16,UTF-16BE,UTF-16LE,UTF-32,UTF-32BE,UTF-32LE,UTF-8,windows-1250,window
251,windows-1252,windows-1253,windows-1254,windows-1255,windows-1256,windows-1257,windows-1258,windows-31j,x-Big5-HKSCS-2001,x-Big5-Solaris,x-euc-jp-linux,x-
-TW,x-eucJP-Open,x-IBM1006,x-IBM1025,x-IBM1046,x-IBM1097,x-IBM1098,x-IBM1112,x-IBM1122,x-IBM1123,x-IBM1124,x-IBM1364,x-IBM1381,x-IBM1383,x-IBM33722,x-IBM737,
BM833,x-IBM834,x-IBM856,x-IBM874,x-IBM875,x-IBM921,x-IBM922,x-IBM930,x-IBM933,x-IBM935,x-IBM937,x-IBM939,x-IBM942,x-IBM942C,x-IBM943,x-IBM943C,x-IBM948,x-IBM
,x-IBM949C,x-IBM950,x-IBM964,x-IBM970,x-ISCII91,x-ISO-2022-CN-CNS,x-ISO-2022-CN-GB,x-iso-8859-11,x-JIS0208,x-JISAutoDetect,x-Johab,x-MacArabic,x-MacCentralEu
e,x-MacCroatian,x-MacCyrillic,x-MacDingbat,x-MacGreek,x-MacHebrew,x-MacIceland,x-MacRoman,x-MacRomania,x-MacSymbol,x-MacThai,x-MacTurkish,x-MacUkraine,x-MS93
213,x-MS950-HKSCS,x-MS950-HKSCS-XP,x-mswin-936,x-PCK,x-SJIS_0213,x-UTF-16LE-BOM,X-UTF-32BE-BOM,X-UTF-32LE-BOM,x-windows-50220,x-windows-50221,x-windows-874,x
ndows-949,x-windows-950,x-windows-iso2022jp>
12-02-27 20:00:32.254 IST>:[4]:<MDS-CS_MDS>:<INFO >:<LAYER = SCM, DefaultJobPool Pool size = 10>
12-02-27 20:00:32.255 IST>:[5]:<MDS-CS_MDS>:<INFO >:<LAYER = SCM, DefaultJobPool Queue length = 20>
12-02-27 20:00:32.255 IST>:[6]:<MDS-CS_MDS>:<INFO >:<LAYER = SCM, maxMem: 518979584 maxPoolSize: 10>
12-02-27 20:00:32.268 IST>:[7]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = SERVICE_BOOK, LOWERSERVICE = GME>
12-02-27 20:00:32.269 IST>:[8]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = SRPH, LOWERSERVICE = GME>
12-02-27 20:00:32.269 IST>:[9]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = CMIME, LOWERSERVICE = GME>
12-02-27 20:00:32.269 IST>:[10]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = IPPP, LOWERSERVICE = GME>
12-02-27 20:00:32.269 IST>:[11]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = GME, LOWERSERVICE = MDP>
12-02-27 20:00:32.270 IST>:[12]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = REG, LOWERSERVICE = MDP>
12-02-27 20:00:32.270 IST>:[13]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = MDP, LOWERSERVICE = GPAK>
12-02-27 20:00:32.270 IST>:[14]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = GPAK, LOWERSERVICE = UDP>
12-02-27 20:00:32.289 IST>:[15]:<MDS-CS_MDS>:<EVENT>:<LAYER = SCM, MDS-CS MDS_STARTMDS; >
12-02-27 20:00:32.290 IST>:[16]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, LAYER = SRPH, EVENT = Initialization>
12-02-27 20:00:32.325 IST>:[17]:<MDS-CS_MDS>:<INFO >:<maxMem: 518979584 maxQueueSize: 250>
12-02-27 20:00:32.329 IST>:[18]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, LAYER = SRPH, EVENT = Started>
12-02-27 20:00:32.338 IST>:[19]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = Initialization>
12-02-27 20:00:32.338 IST>:[20]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = Started>
12-02-27 20:00:32.338 IST>:[21]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, EVENT = Started, THREAD = SRPHprotocolMainThread>
12-02-27 20:00:32.339 IST>:[22]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, EVENT = Started, THREAD = SRPHListenOnDatagramStatus>
12-02-27 20:00:32.341 IST>:[23]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = Started, THREAD = MdpLayerHigherLayerListeningThread:GME>
12-02-27 20:00:32.342 IST>:[24]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = Started, THREAD = MdpLayerDatagramGC>
12-02-27 20:00:32.345 IST>:[25]:<MDS-CS_MDS>:<DEBUG>:<LAYER = UDP, EVENT = Initialization>
12-02-27 20:00:32.346 IST>:[26]:<MDS-CS_MDS>:<DEBUG>:<LAYER = UDP, EVENT = Started>
12-02-27 20:00:32.346 IST>:[28]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = Started, THREAD = MdpLayerHigherLayerListeningThread:REG>
12-02-27 20:00:32.346 IST>:[29]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = Started, THREAD = MdpLayerLowerLayerListeningThread:GPAK>
12-02-27 20:00:32.347 IST>:[30]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, EVENT = Started, THREAD = SRPHQueuesManager>
12-02-27 20:00:32.346 IST>:[27]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, EVENT = Started, THREAD = SRPHListenForClientsPackets>
12-02-27 20:00:32.353 IST>:[31]:<MDS-CS_MDS>:<DEBUG>:<LAYER = UDP, EVENT = Started, THREAD = UdpLayerReceiverThread>
12-02-27 20:00:32.356 IST>:[32]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SB, EVENT = Started, THREAD = ListenForClientsStatus>
12-02-27 20:00:32.356 IST>:[33]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SB, EVENT = Started, THREAD = ListenOnDatagramStatus>
12-02-27 20:00:32.356 IST>:[34]:<MDS-CS_MDS>:<DEBUG>:<LAYER = UDP, EVENT = Started, THREAD = UdpLayerSenderThread:GPAK>
 27, 2012 8:00:32 PM org.apache.catalina.startup.Embedded start
O: Starting tomcat server
12-02-27 20:00:32.792 IST>:[35]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Initialization>
12-02-27 20:00:32.796 IST>:[36]:<MDS-CS_MDS>:<INFO >:<LAYER = IPPP, Sending Queue Size per device =200>
12-02-27 20:00:32.817 IST>:[37]:<MDS-CS_MDS>:<INFO >:<LAYER = SCM, DefaultJobPool Queue length = 2000>
12-02-27 20:00:32.820 IST>:[38]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Started>
12-02-27 20:00:32.827 IST>:[39]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, THREAD = ListenOnDatagramStatus, EVENT = Started>
12-02-27 20:00:32.828 IST>:[45]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, THREAD = ConnectionsMonitorPollingImpl-0, EVENT = Started>
12-02-27 20:00:32.828 IST>:[44]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, THREAD = ConnectionsMonitorPollingImpl-2, EVENT = Started>
12-02-27 20:00:32.828 IST>:[43]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, THREAD = ConnectionsMonitorPollingImpl-4, EVENT = Started>
12-02-27 20:00:32.828 IST>:[42]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, THREAD = ListenForClientsPackets, EVENT = Started>
12-02-27 20:00:32.828 IST>:[41]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, THREAD = QueuesManager, EVENT = Started>
12-02-27 20:00:32.827 IST>:[40]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, THREAD = ConnectionsMonitorEventDrivenImpl, EVENT = Started>
12-02-27 20:00:32.830 IST>:[48]:<MDS-CS_MDS>:<INFO >:<LAYER = SCM, Cmimep2pExecutorJobPool Pool size = 32>
12-02-27 20:00:32.832 IST>:[49]:<MDS-CS_MDS>:<INFO >:<LAYER = SCM, Cmimep2pExecutorJobPool Queue length = 64>
12-02-27 20:00:32.832 IST>:[50]:<MDS-CS_MDS>:<INFO >:<LAYER = SCM, Cmimep2pExecutorJobPool Queue length = 200>
12-02-27 20:00:32.832 IST>:[51]:<MDS-CS_MDS>:<INFO >:<LAYER = SCM, Cmimep2pPushExpiredExecutorJobPool Pool size = 32>
12-02-27 20:00:32.829 IST>:[47]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, THREAD = ConnectionsMonitorPollingImpl-1, EVENT = Started>
12-02-27 20:00:32.829 IST>:[46]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, THREAD = ConnectionsMonitorPollingImpl-3, EVENT = Started>
 27, 2012 8:00:32 PM org.apache.catalina.core.StandardEngine start
O: Starting Servlet Engine: Apache Tomcat/6.0.28
12-02-27 20:00:32.932 IST>:[52]:<MDS-CS_MDS>:<DEBUG>:<LAYER = GPAK, EVENT = Initialization>
12-02-27 20:00:32.932 IST>:[53]:<MDS-CS_MDS>:<DEBUG>:<LAYER = GPAK, EVENT = Started>
12-02-27 20:00:32.944 IST>:[54]:<MDS-CS_MDS>:<DEBUG>:<LAYER = GPAK, EVENT = Started, THREAD = GpakLayerHigherLayerListeningThread:MDP>
12-02-27 20:00:32.944 IST>:[55]:<MDS-CS_MDS>:<DEBUG>:<LAYER = GPAK, EVENT = Started, THREAD = GpakLayerLowerLayerListeningThread:UDP>
 27, 2012 8:00:33 PM org.apache.catalina.startup.ContextConfig defaultWebConfig
O: No default web.xml
 27, 2012 8:00:33 PM org.apache.catalina.core.ApplicationContext log
O: AdministrationController (Status):init
 27, 2012 8:00:33 PM org.apache.catalina.core.ApplicationContext log
O: C:\Eclipse\plugins\net.rim.ejde.componentpack7.0.0_7.0.0.33\components\MDS\Servers\MDS1
 27, 2012 8:00:33 PM org.apache.catalina.core.ApplicationContext log
O: AdministrationController (Statistics):init
 27, 2012 8:00:33 PM org.apache.catalina.core.ApplicationContext log
O: C:\Eclipse\plugins\net.rim.ejde.componentpack7.0.0_7.0.0.33\components\MDS\Servers\MDS1
 27, 2012 8:00:33 PM org.apache.catalina.core.ApplicationContext log
O: AdministrationController (Proxy Mappings):init
 27, 2012 8:00:33 PM org.apache.catalina.core.ApplicationContext log
O: C:\Eclipse\plugins\net.rim.ejde.componentpack7.0.0_7.0.0.33\components\MDS\Servers\MDS1
 27, 2012 8:00:33 PM org.apache.catalina.core.ApplicationContext log
O: AdministrationController (AccessControl):init
 27, 2012 8:00:33 PM org.apache.catalina.core.ApplicationContext log
O: C:\Eclipse\plugins\net.rim.ejde.componentpack7.0.0_7.0.0.33\components\MDS\Servers\MDS1
 27, 2012 8:00:33 PM org.apache.catalina.core.ApplicationContext log
O: AdministrationController (Configuration):init
 27, 2012 8:00:33 PM org.apache.catalina.core.ApplicationContext log
O: C:\Eclipse\plugins\net.rim.ejde.componentpack7.0.0_7.0.0.33\components\MDS\Servers\MDS1
 27, 2012 8:00:33 PM org.apache.catalina.core.ApplicationContext log
O: AdministrationController (Device Mappings):init
 27, 2012 8:00:33 PM org.apache.catalina.core.ApplicationContext log
O: C:\Eclipse\plugins\net.rim.ejde.componentpack7.0.0_7.0.0.33\components\MDS\Servers\MDS1
 27, 2012 8:00:33 PM org.apache.catalina.startup.ContextConfig defaultWebConfig
O: No default web.xml
 27, 2012 8:00:33 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
O: Using a shared selector for servlet write/read
 27, 2012 8:00:33 PM org.apache.coyote.http11.Http11NioProtocol init
O: Initializing Coyote HTTP/1.1 on http-8081
 27, 2012 8:00:33 PM org.apache.coyote.http11.Http11NioProtocol start
O: Starting Coyote HTTP/1.1 on http-8081
12-02-27 20:00:33.671 IST>:[56]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, Web Server Started>
12-02-27 20:00:37.169 IST>:[57]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, Admin. Task- HTTP Proxy Mappings>
12-02-27 20:00:37.169 IST>:[58]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, Admin. Task- refresh media management>

 

 

 

 

Any help would be appreciated.

 

Thanks in advance

Mayank Garg

Tata Consultancy Services

 

 

 

 

 

BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Not able to connect to internet through blackberry simulator

Do you need to connect through a proxy server?  If so, refer to the following articles.

 

Force the BlackBerry Smartphone Simulator Browser to use the MDS-CS Simulator

 

Configure the BlackBerry MDS Simulator to work behind a proxy

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 Contributor
Posts: 5
Registered: ‎02-27-2012
My Device: BlackBerry 9930
My Carrier: Vodafone

Re: Not able to connect to internet through blackberry simulator

Hi Mark,

 

Thanks for the reply. Yes, I need to connect through the proxy server.

 

1.  Modify the batch file and/or command used to start the BlackBerry Smartphone Simulator, appending the following command where the IP address refers to the IP address used by machine running the MDS-CS Simulator.

 

/app-param=MdsIP=127.0.0.1 

 

2.  Start the MDS-CS Simulator.  Wait until it is fully started.

3.  Launch the BlackBerry Smartphone Simulator.

4.  Open the connection settings in the BlackBerry smartphone simulator and turn off the Wi-Fi® radio.

5.  In the BlackBerry Smartphone Simulator go to Options -> Service Book.

6.  Delete the TCP service books listed by highlighting them and choose Delete from the menu (these may not exist in all simulators).

7.  Use the browser.

 

 

I did these changes as well as the changes required in the rimpublic.property file for proxy configuration. When I start the browser and hit any URL(google) after completing the 6 steps mentioned above, I get a pop-up asking for Username, Domain and Password. I enter these details and then i am getting an error message "Unable to connect to the selected Mobile Data Service, please try again later. 

BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Not able to connect to internet through blackberry simulator

You shouldn't get a password prompt there.  Did you enter your proxy authentication information into the rimpublic.property file?  Do you see activity in the MDS-CS Simulator window when you attempt to browse?

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 Contributor
Posts: 5
Registered: ‎02-27-2012
My Device: BlackBerry 9930
My Carrier: Vodafone

Re: Not able to connect to internet through blackberry simulator

Hi Mark,

 

Yes, I have entered the proxy authentication information in the rimpublic.property file. I have defined the following three properties under [HTTP Handler] in that file :

 

application.handler.http.proxyEnabled = true
application.handler.http.proxyHost= (proxy we use)
application.handler.http.proxyPort=8080

 

 

And I am able to see the activity in MDS-CS simulator window also when I hit any URL from the simulator browser.

 

Thanks and Regards

Mayank Garg

BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Not able to connect to internet through blackberry simulator

You'll also need to enter the login and password for your proxy server in the rimpublic.property file.

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 Contributor
Posts: 5
Registered: ‎02-27-2012
My Device: BlackBerry 9930
My Carrier: Vodafone

Re: Not able to connect to internet through blackberry simulator

Hi Mark,

 

Thanks for your replies. Its working now by entering the username, Domain and password in the browser screen only.

 

Thanks and Regards

Mayank Garg

New Contributor
Posts: 8
Registered: ‎04-02-2013
My Device: Blackberry 9900
My Carrier: Airtel

Re: Not able to connect to internet through blackberry simulator

I am using Blackberry simulator version 7 (9900). I do not have any MDS-CS named folder. I have set below properties in my rimpublic.property file, but still unable to connect to internet. Please help me in solving this issue.

 

application.handler.http.logging = true
application.handler.http.CookieSupport = true
application.handler.http.AuthenticationSupport = true
application.handler.http.AuthenticationTimeout = 3600000
application.handler.http.device.connection.timeout = 120000
application.handler.http.server.connection.timeout = 120000
application.handler.http.proxyEnabled = true

application.handler.http.proxyAutoConfig = true

application.handler.http.proxyAutoConfig.ScriptCacheTime=0

 

Thanks in advance,

 

Ashish

Highlighted
New Contributor
Posts: 8
Registered: ‎04-02-2013
My Device: Blackberry 9900
My Carrier: Airtel

Re: Not able to connect to internet through blackberry simulator

I am using Blackberry simulator version 7 (9900). I do not have any MDS-CS named folder. I have set below properties in my rimpublic.property file, but still unable to connect to internet. Please help me in solving this issue.

 

application.handler.http.logging = true
application.handler.http.CookieSupport = true
application.handler.http.AuthenticationSupport = true
application.handler.http.AuthenticationTimeout = 3600000
application.handler.http.device.connection.timeout = 120000
application.handler.http.proxyEnabled = true

application.handler.http.proxyAutoConfig = true

application.handler.http.proxyAutoConfig.ScriptCacheTime=0

 

Thanks in advance,

 

Ashish

BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Not able to connect to internet through blackberry simulator

If you are using the browser, you'll also need to do this:

 

Force the BlackBerry Smartphone Simulator Browser to use the MDS-CS Simulator

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