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

Web and WebWorks Development

Reply
New Developer
caldersj
Posts: 7
Registered: ‎03-20-2009
My Device: Not Specified

Problems connecting device simulator to MDS simulator

I know there are many similar posts on this subject, but I haven't found the answer to my specific issue, so here goes.

 

I can start the MDS simulator.  I know it is running, because I can connect to it from IE7 using http://localhost:8080 and I get a status page that updates the time every time I refresh. 

 

However, when I run the device simulator and try to use the browser, I get 'Unable to connect to the selected Mobile Data Service' regardless of what address I enter.  I've tried external addresses like Blackberry and Google, and internal addresses like localhost.  The response is virtually instanteous, like it didn't even try - not like the timeout you get when trying to get to a non-existent page.

 

There is no firewall running.  I've also tried switching off anti-virus (Symantec) to no avail.  I'm running XP Service Pack 3.

 

Is it possible it could be a Java setup issue, e.g. JAVA_HOME or suchlike? What does the browser do if there is a Java issue?  Could it behave like it can't connect to MDS or would it fail in a more basic way?

 

I'm running the 8310 simulator version 4.5.0 (though the Help-About menu reports BlackBerry Smartphone Simulator 2.9.0.61).  The MDS simulator is 4.1.4.  The status page mentioned above also shows various connection stats, and these all remain at zero whatever I do, so I believe there is a very basic connectivity issue.

 

Many thanks for any pointers.

 

Please use plain text.
Developer
jwargo
Posts: 395
Registered: ‎12-18-2008
My Device: BlackBerry Torch 9800
My Carrier: AT&T

Re: Problems connecting device simulator to MDS simulator

Every time I've ever launched MDS then launched the simulator, it finds it just fine. You're not modifying the command line to fledge, are you? I remember seeing in the rimpublic.properties file in the MDS Simulator settings for different simulators. 
Please use plain text.
New Developer
macest
Posts: 8
Registered: ‎03-31-2009
My Device: Not Specified

Re: Problems connecting device simulator to MDS simulator

Hi,

I have similar problem - using 8300 simulator can't connect to MDS. In 9000 simulator work just fine but not in 8300.

What can I do about it?

I only pasted JAVA_HOME setting to run.bat because had an error before.

Please help...

 

Please use plain text.
New Developer
caldersj
Posts: 7
Registered: ‎03-20-2009
My Device: Not Specified

Re: Problems connecting device simulator to MDS simulator

I tried installing and running the 9000 simulator and it worked perfectly first time.  So there seems to be something about the 8310 simulator, rather than the environment or java setup.

 

 

Please use plain text.
Developer
abarber
Posts: 189
Registered: ‎08-13-2008
My Device: Not Specified

Re: Problems connecting device simulator to MDS simulator

What version of MDS are you using?

 

I have tried MDS version 4.1.4

and 

Simulator 8310 version  4.5.0.55

 

It works fine for me I can navigate to any webpage.

Please use plain text.
New Developer
macest
Posts: 8
Registered: ‎03-31-2009
My Device: Not Specified

Re: Problems connecting device simulator to MDS simulator

BlackBerry® Email and MDS Services Simulator Package v4.1.2
Please use plain text.
New Developer
macest
Posts: 8
Registered: ‎03-31-2009
My Device: Not Specified

Re: Problems connecting device simulator to MDS simulator

I installed BlackBerry Email and MDS Services Simulators 4.1.4 and run it with BlackBerry Smartphone Simulators 4.5.0 - 4.5.0.81 (8300) and it still the same - can't connect to MDS from device simulator.

That's what I have in cmd now:

 

SCM 4.1.4.19 19 2007/07/10
<2009-04-01 10:19:12.187 CEST>:[2]:<MDS-CS_MDS>:<INFO >:<LAYER = SCM, J2SE 1.5.0
_18 Charsets supported:Big5,Big5-HKSCS,EUC-JP,EUC-KR,GB18030,GB2312,GBK,IBM-Thai
,IBM00858,IBM01140,IBM01141,IBM01142,IBM01143,IBM01144,IBM01145,IBM01146,IBM0114
7,IBM01148,IBM01149,IBM037,IBM1026,IBM1047,IBM273,IBM277,IBM278,IBM280,IBM284,IB
M285,IBM297,IBM420,IBM424,IBM437,IBM500,IBM775,IBM850,IBM852,IBM855,IBM857,IBM86
0,IBM861,IBM862,IBM863,IBM864,IBM865,IBM866,IBM868,IBM869,IBM870,IBM871,IBM918,I
SO-2022-CN,ISO-2022-JP,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-8859-8,ISO-8859-9,JI
S_X0201,JIS_X0212-1990,KOI8-R,Shift_JIS,TIS-620,US-ASCII,UTF-16,UTF-16BE,UTF-16L
E,UTF-8,windows-1250,windows-1251,windows-1252,windows-1253,windows-1254,windows
-1255,windows-1256,windows-1257,windows-1258,windows-31j,x-Big5-Solaris,x-euc-jp
-linux,x-EUC-TW,x-eucJP-Open,x-IBM1006,x-IBM1025,x-IBM1046,x-IBM1097,x-IBM1098,x
-IBM1112,x-IBM1122,x-IBM1123,x-IBM1124,x-IBM1381,x-IBM1383,x-IBM33722,x-IBM737,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-IBM949,x-IBM9
49C,x-IBM950,x-IBM964,x-IBM970,x-ISCII91,x-ISO-2022-CN-CNS,x-ISO-2022-CN-GB,x-is
o-8859-11,x-JIS0208,x-JISAutoDetect,x-Johab,x-MacArabic,x-MacCentralEurope,x-Mac
Croatian,x-MacCyrillic,x-MacDingbat,x-MacGreek,x-MacHebrew,x-MacIceland,x-MacRom
an,x-MacRomania,x-MacSymbol,x-MacThai,x-MacTurkish,x-MacUkraine,x-MS950-HKSCS,x-
mswin-936,x-PCK,x-windows-50220,x-windows-50221,x-windows-874,x-windows-949,x-wi
ndows-950,x-windows-iso2022jp>
<2009-04-01 10:19:12.218 CEST>:[3]:<MDS-CS_MDS>:<INFO >:<LAYER = SCM, EVENT = De
fault Job Pool size = 10>
<2009-04-01 10:19:12.218 CEST>:[4]:<MDS-CS_MDS>:<INFO >:<LAYER = SCM, maxMem: 53
2742144 maxPoolSize: 10>
<2009-04-01 10:19:12.453 CEST>:[5]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Co
nnected, TOPSERVICE = SRPH, LOWERSERVICE = GME>
<2009-04-01 10:19:12.453 CEST>:[6]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Co
nnected, TOPSERVICE = IPPP, LOWERSERVICE = GME>
<2009-04-01 10:19:12.453 CEST>:[7]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Co
nnected, TOPSERVICE = GME, LOWERSERVICE = MDP>
<2009-04-01 10:19:12.453 CEST>:[8]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Co
nnected, TOPSERVICE = MDP, LOWERSERVICE = GPAK>
<2009-04-01 10:19:12.453 CEST>:[9]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Co
nnected, TOPSERVICE = GPAK, LOWERSERVICE = UDP>
<2009-04-01 10:19:12.468 CEST>:[10]:<MDS-CS_MDS>:<EVENT>:<LAYER = SCM, EVENT = M
DS-CS server has started>
<2009-04-01 10:19:12.562 CEST>:[11]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = I
nitialization>
<2009-04-01 10:19:12.562 CEST>:[12]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = S
tarted>
<2009-04-01 10:19:12.562 CEST>:[13]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = S
tarted, THREAD = MdpLayerDatagramGC>
<2009-04-01 10:19:12.562 CEST>:[14]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = S
tarted, THREAD = MdpLayerHigherLayerListeningThread:GME>
<2009-04-01 10:19:12.562 CEST>:[15]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = S
tarted, THREAD = MdpLayerLowerLayerListeningThread:GPAK>
<2009-04-01 10:19:12.578 CEST>:[16]:<MDS-CS_MDS>:<DEBUG>:<LAYER = UDP, EVENT = I
nitialization>
<2009-04-01 10:19:12.578 CEST>:[17]:<MDS-CS_MDS>:<DEBUG>:<LAYER = UDP, EVENT = S
tarted>
<2009-04-01 10:19:12.593 CEST>:[18]:<MDS-CS_MDS>:<DEBUG>:<LAYER = UDP, EVENT = S
tarted, THREAD = UdpLayerReceiverThread>
<2009-04-01 10:19:12.593 CEST>:[19]:<MDS-CS_MDS>:<DEBUG>:<LAYER = UDP, EVENT = S
tarted, THREAD = UdpLayerSenderThread:GPAK>
2009-04-01 10:19:13 org.apache.catalina.startup.Embedded start
INFO: Starting tomcat server
<2009-04-01 10:19:13.687 CEST>:[20]:<MDS-CS_MDS>:<INFO >:<LAYER = IPPP, Sending
Queue Size per device =200>
<2009-04-01 10:19:13.718 CEST>:[21]:<MDS-CS_MDS>:<INFO >:<LAYER = IPPP, IPPP: Re
ceiving Queue Size =10>
<2009-04-01 10:19:13.718 CEST>:[22]:<MDS-CS_MDS>:<INFO >:<LAYER = IPPP, IPPP: Re
ceiving Queue Size =10>
<2009-04-01 10:19:13.718 CEST>:[23]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, LAYER =
IPPP, EVENT = Started>
<2009-04-01 10:19:13.734 CEST>:[24]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
Started, THREAD = ConnectionsInputStreamesReader0>
<2009-04-01 10:19:13.734 CEST>:[25]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, LAYER =
SRPH, EVENT = Initialization>
<2009-04-01 10:19:13.734 CEST>:[26]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
Started, THREAD = ListenOnDatagramStatus>
<2009-04-01 10:19:13.734 CEST>:[27]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
Started, THREAD = QueuesManager>
<2009-04-01 10:19:13.734 CEST>:[28]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT =
Started, THREAD = ListenForClientsPackets>
<2009-04-01 10:19:13.750 CEST>:[29]:<MDS-CS_MDS>:<INFO >:<maxMem: 532742144 maxQ
ueueSize: 250>
<2009-04-01 10:19:13.750 CEST>:[30]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, LAYER =
SRPH, EVENT = Started>
<2009-04-01 10:19:13.750 CEST>:[31]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, EVENT =
Started, THREAD = SRPHprotocolMainThread>
<2009-04-01 10:19:13.765 CEST>:[32]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, EVENT =
Started, THREAD = SRPHListenForClientsPackets>
<2009-04-01 10:19:13.765 CEST>:[34]:<MDS-CS_MDS>:<DEBUG>:<LAYER = GPAK, EVENT =
Initialization>
<2009-04-01 10:19:13.765 CEST>:[35]:<MDS-CS_MDS>:<DEBUG>:<LAYER = GPAK, EVENT =
Started>
<2009-04-01 10:19:13.781 CEST>:[36]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, EVENT =
Started, THREAD = SRPHListenOnDatagramStatus>
<2009-04-01 10:19:13.765 CEST>:[33]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, EVENT =
Started, THREAD = SRPHQueuesManager>
<2009-04-01 10:19:13.781 CEST>:[37]:<MDS-CS_MDS>:<DEBUG>:<LAYER = GPAK, EVENT =
Started, THREAD = GpakLayerHigherLayerListeningThread:MDP>
<2009-04-01 10:19:13.796 CEST>:[38]:<MDS-CS_MDS>:<DEBUG>:<LAYER = GPAK, EVENT =
Started, THREAD = GpakLayerLowerLayerListeningThread:UDP>
2009-04-01 10:19:13 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
2009-04-01 10:19:13 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
2009-04-01 10:19:14 org.apache.catalina.startup.ContextConfig defaultWebConfig
INFO: No default web.xml
2009-04-01 10:19:14 org.apache.catalina.core.ApplicationContext log
INFO: AdministrationController (Status):init
2009-04-01 10:19:14 org.apache.catalina.core.ApplicationContext log
INFO: C:\Program Files\Research In Motion\BlackBerry Email and MDS Services Simu
lators 4.1.4\MDS
2009-04-01 10:19:14 org.apache.catalina.core.ApplicationContext log
INFO: AdministrationController (Statistics):init
2009-04-01 10:19:14 org.apache.catalina.core.ApplicationContext log
INFO: C:\Program Files\Research In Motion\BlackBerry Email and MDS Services Simu
lators 4.1.4\MDS
2009-04-01 10:19:14 org.apache.coyote.http11.Http11BaseProtocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind:8080
        at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoi
nt.java:297)
        at org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.j
ava:138)
        at org.apache.catalina.connector.Connector.initialize(Connector.java:101
6)
        at org.apache.catalina.startup.Embedded.start(Embedded.java:826)
        at net.rim.application.ipproxyservice.TomcatThread.startTomcat(TomcatThr
ead.java:807)
        at net.rim.application.ipproxyservice.TomcatThread.run(TomcatThread.java
:510)
<2009-04-01 10:19:14.828 CEST>:[39]:<MDS-CS_MDS>:<ERROR>:<LAYER = SCM, Lifecycle
Exception:  Protocol handler initialization failed: java.net.BindException: Addr
ess already in use: JVM_Bind:8080>
<2009-04-01 10:19:14.828 CEST>:[39]:<MDS-CS_MDS>:<ERROR>:<LAYER = SCM,  at org.a
pache.catalina.connector.Connector.initialize(Connector.java:1018)>
<2009-04-01 10:19:14.828 CEST>:[39]:<MDS-CS_MDS>:<ERROR>:<LAYER = SCM,  at org.a
pache.catalina.startup.Embedded.start(Embedded.java:826)>
<2009-04-01 10:19:14.828 CEST>:[39]:<MDS-CS_MDS>:<ERROR>:<LAYER = SCM,  at net.r
im.application.ipproxyservice.TomcatThread.startTomcat(TomcatThread.java:807)>
<2009-04-01 10:19:14.828 CEST>:[39]:<MDS-CS_MDS>:<ERROR>:<LAYER = SCM,  at net.r
im.application.ipproxyservice.TomcatThread.run(TomcatThread.java:510)>
<2009-04-01 10:19:22.078 CEST>:[40]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = E
xpire records from device storage that are expired or older than 0 hours; 0>
<2009-04-01 10:19:22.078 CEST>:[41]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = E
xpire records process ended; 0>
<2009-04-01 10:19:22.093 CEST>:[42]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = T
he push service is ready to receive requests>
<2009-04-01 10:19:22.093 CEST>:[43]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = A
dmin. Task- pending push messages>

Please use plain text.
Developer
abarber
Posts: 189
Registered: ‎08-13-2008
My Device: Not Specified

Re: Problems connecting device simulator to MDS simulator

Try downloading 4.1.4 and see if that works.

 

 

I also tried  MDS 4.1.2 with the 8310 and it worked ok as well.

 

 

Can you paste the config file you are using for MDS.

 

 

Please use plain text.
New Developer
macest
Posts: 8
Registered: ‎03-31-2009
My Device: Not Specified

Re: Problems connecting device simulator to MDS simulator

If you mean rimpublic.property than here it goes:

 


[Logging]
Logging.level=4
Logging.console.log.level=4

[WebServer]
WebServer.Tomcat.transcoding=false
WebServer.listen.host=localhost
WebServer.listen.port=8080
WebServer.listen.sslport=8443
WebServer.servlet.push.port=81
WebServer.servlet.push.host=localhost
WebServer.servlet.sb.ssl=false
WebServer.servlet.sb.authentication=false

[IPPP]
IPPP.push.listen.tcp.port=81
IPPP.connection.MaxNumberOfKBytesToSend=256
IPPP.queue.flowcontrol.window.size=-1
IPPP.queue.flowcontrol.timeout=600000
IPPP.logging=true

[UDP]
UDP.receive.port=19781
UDP.send.default=19780
UDP.send.host=localhost
UDP.logging=false

[HTTP HANDLER]
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

[HTTPS HANDLER]
application.handler.https.allowUntrustedServer = false

[TLS HANDLER]
application.handler.tls.allowUntrustedServer = false
application.handler.tls.logging = true

[OCSP HANDLER]
application.handler.ocsp.StatusProviders = net.rim.protocol.iplayer.connection.handler.device.ocsp.OCSPProvider
application.handler.StatusProviders.OCSP.PrimaryResponderRank   = Default
application.handler.StatusProviders.OCSP.Responder.Default      = http://dhobbs-wnt.rim.net/ocsp
application.handler.StatusProviders.OCSP.UseDeviceResponders    = yes
application.handler.StatusProviders.OCSP.UseCertResponders      = yes
application.handler.ocsp.DebugLogging = no

[LDAP HANDLER]
application.handler.ldap.DEFAULT_SERVER = dhobbs-wnt
application.handler.ldap.DEFAULT_PORT   = 389
application.handler.ldap.DEFAULT_QUERY  = ou=people, o=rim.net
application.handler.ldap.DEFAULT_LIMIT  = 20
application.handler.ldap.COMPRESSION    = true
application.handler.ldap.logging        = false

[Database]
MDSName=MDS

[Simulator]
Simulator.2100000a=MDS,simulator@pushme.com
Simulator.2100000b=MDS,user2100000b@pushme.com
Simulator.2100000c=MDS,user2100000c@pushme.com
Simulator.2100000d=MDS,user2100000d@pushme.com
Simulator.2100000e=MDS,user2100000e@pushme.com
Simulator.2100000f=MDS,user2100000f@pushme.com


[ACL]
ACL.Authorization.Datastore=net.rim.shared.service.authorization.JDBCAuthorizationDatastore

[Java Security Property]
networkaddress.cache.ttl=0

[Email]
#Email.mode     =standalone
#Email.mode     =connect
Email.mode    =none

#Common settings for both standalone and connect mode
Email.personal    =Test User
Email.address     =myemail@mycompany.com
Email.deviceId    =2100000a

#Connect mode settings
Email.pop3Server  =popServer
Email.smtpServer  =smtpServer
Email.smtpPort    =25
Email.pop3Port    =110
Email.userId   =popUser
Email.password  =popPassword
Email.pollInterval=30

[SRPH]
SRPH.AuthenticationString=yb3z-iw9z-acbm-e722-bfbk-8fah-hnjj-vmcn-25a8-aqgy
SRPH.UID=S 00005
SRPH.listen.port=3200

#FS.sourceDir=mobitex_simulator
#FSLayer.logging=true
#push.application.reliable.ports=100

 

 

 


 

Please use plain text.
Developer
abarber
Posts: 189
Registered: ‎08-13-2008
My Device: Not Specified

Re: Problems connecting device simulator to MDS simulator

ok that looks good.

 

Try this

 

goto the 

 

C:\Program Files\Research In Motion\BlackBerry Smartphone Simulators 4.5.0\4.5.0.55 (8310)

 

Or the equivalent simulator that you are testing and delete all the *.dmp files.

 

The restart everything and try again.

 

Let me know how it goes

Please use plain text.