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
Developer
Posts: 264
Registered: ‎10-05-2010
My Device: Not Specified

Eclipse Email Simulator with MDS?

I give up. How on earth to you get the BB Simulator under Eclipse to send and receive email?

 

Surfing the web from the simulator works fine. But email can not connect: "General Send Failure"...

 

I am running Windows 7 64 bit. I have Eclipse installed outside the Windows Program Files tree so permissions should not be a problem. e.g.

 

D:\Programs\Eclipse_35\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25\components\MDS\config

 

I configured the rimpublic.property in that folder as follows:

 

[Simulator]
#[CDK_MODIFICATIONS for Running Multiple Simulators]
# Each simulator instance must have a unique IPPP port assignment
# ie. Simulator fledge.exe command lines must have: 
#	 /ignore-data-port-conflicts /app-param=IPPPSourcePort: <port>
#Simulator.2100000a=MDS,simulator@pushme.com
Simulator.2100000a=MDS,my.email@gmail.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

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

#Common settings for both standalone and connect mode
Email.personal    =My Email
Email.address     =my.email@gmail.com
Email.deviceId    =2100000a

#Connect mode settings
Email.pop3Server  =pop.gmail.com
Email.smtpServer  =smtp.gmail.com
Email.smtpPort    =995
Email.pop3Port    =587
Email.userId	=myemail
Email.password	=mypassword
Email.pollInterval=10

 

MDS seems to poll at that rate so I know I got the right config file. But still I am unable to send or receive email.

 

Has anyone got this working?

 

Thanks

Peter

 

Highlighted
Developer
Posts: 264
Registered: ‎10-05-2010
My Device: Not Specified

Re: Eclipse Email Simulator with MDS?

This is so frustrating... I tried Eclipse 3.6/BB SDK 1.3 and got the same result...

 

Looking at the log, it appears that is is working. Yet... still no email? How is it supposed to look?

 

Thanks

 

 

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-
122,x-IBM1123,x-IBM1124,x-IBM1381,x-IBM1383,x-IBM33722,x-IBM737,x-IBM833,x-IBM834,x-IBM856,x-IBM874,x-IBM875,x-IBM921,x-IBM922,x-IBM930,x-IBM933,x-IBM935,x-IB
,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-MacCentralEurope,x-MacCroatian,x-MacCyril
i,x-MacTurkish,x-MacUkraine,x-MS932_0213,x-MS950-HKSCS,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-50
<2011-04-25 15:10:03.630 EDT>:[1]:<MDS-CS_MDS>:<INFO >:<LAYER = SCM, EVENT = Default Job Pool size = 10>
<2011-04-25 15:10:03.631 EDT>:[2]:<MDS-CS_MDS>:<INFO >:<LAYER = SCM, maxMem: 518979584 maxPoolSize: 10>
<2011-04-25 15:10:03.881 EDT>:[3]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = SRPH, LOWERSERVICE = GME>
<2011-04-25 15:10:03.882 EDT>:[4]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = CMIME, LOWERSERVICE = GME>
<2011-04-25 15:10:03.883 EDT>:[5]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = IPPP, LOWERSERVICE = GME>
<2011-04-25 15:10:03.884 EDT>:[6]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = GME, LOWERSERVICE = MDP>
<2011-04-25 15:10:03.885 EDT>:[7]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = MDP, LOWERSERVICE = GPAK>
<2011-04-25 15:10:03.886 EDT>:[8]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = GPAK, LOWERSERVICE = UDP>
<2011-04-25 15:10:03.890 EDT>:[9]:<MDS-CS_MDS>:<EVENT>:<LAYER = SCM, EVENT = MDS-CS server has started>
<2011-04-25 15:10:04.056 EDT>:[10]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = Initialization>
<2011-04-25 15:10:04.060 EDT>:[11]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = Started>
<2011-04-25 15:10:04.063 EDT>:[12]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = Started, THREAD = MdpLayerHigherLayerListeningThread:GME>
<2011-04-25 15:10:04.063 EDT>:[13]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = Started, THREAD = MdpLayerLowerLayerListeningThread:GPAK>
<2011-04-25 15:10:04.064 EDT>:[14]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = Started, THREAD = MdpLayerDatagramGC>
<2011-04-25 15:10:04.083 EDT>:[15]:<MDS-CS_MDS>:<DEBUG>:<LAYER = UDP, EVENT = Initialization>
<2011-04-25 15:10:04.085 EDT>:[16]:<MDS-CS_MDS>:<DEBUG>:<LAYER = UDP, EVENT = Started>
<2011-04-25 15:10:04.087 EDT>:[17]:<MDS-CS_MDS>:<DEBUG>:<LAYER = UDP, EVENT = Started, THREAD = UdpLayerSenderThread:GPAK>
<2011-04-25 15:10:04.089 EDT>:[18]:<MDS-CS_MDS>:<DEBUG>:<LAYER = UDP, EVENT = Started, THREAD = UdpLayerReceiverThread>
25-Apr-2011 3:10:04 PM org.apache.catalina.startup.Embedded start
INFO: Starting tomcat server
<2011-04-25 15:10:05.306 EDT>:[19]:<MDS-CS_MDS>:<INFO >:<LAYER = IPPP, Sending Queue Size per device =200>
<2011-04-25 15:10:05.342 EDT>:[20]:<MDS-CS_MDS>:<INFO >:<LAYER = IPPP, IPPP: Receiving Queue Size =20>
<2011-04-25 15:10:05.343 EDT>:[21]:<MDS-CS_MDS>:<INFO >:<LAYER = IPPP, IPPP: Receiving Queue Size =20>
<2011-04-25 15:10:05.397 EDT>:[22]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, LAYER = IPPP, EVENT = Started>
<2011-04-25 15:10:05.402 EDT>:[23]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Started, THREAD = ConnectionsInputStreamesReader0>
<2011-04-25 15:10:05.403 EDT>:[25]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Started, THREAD = ConnectionsInputStreamesReader2>
<2011-04-25 15:10:05.405 EDT>:[26]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, LAYER = SRPH, EVENT = Initialization>
<2011-04-25 15:10:05.402 EDT>:[24]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Started, THREAD = ConnectionsInputStreamesReader1>
<2011-04-25 15:10:05.408 EDT>:[28]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Started, THREAD = ListenForClientsPackets>
<2011-04-25 15:10:05.405 EDT>:[27]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Started, THREAD = ConnectionsInputStreamesReader3>
<2011-04-25 15:10:05.411 EDT>:[29]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Started, THREAD = QueuesManager>
<2011-04-25 15:10:05.413 EDT>:[30]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Started, THREAD = ListenOnDatagramStatus>
<2011-04-25 15:10:05.418 EDT>:[32]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Started, THREAD = IPLayerHttpClientIdleConnectionTimeoutThread>
<2011-04-25 15:10:05.413 EDT>:[31]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Started, THREAD = ConnectionsInputStreamesReader4>
<2011-04-25 15:10:05.423 EDT>:[33]:<MDS-CS_MDS>:<INFO >:<maxMem: 518979584 maxQueueSize: 250>
<2011-04-25 15:10:05.446 EDT>:[34]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, LAYER = SRPH, EVENT = Started>
<2011-04-25 15:10:05.456 EDT>:[35]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, EVENT = Started, THREAD = SRPHprotocolMainThread>
<2011-04-25 15:10:05.465 EDT>:[36]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, EVENT = Started, THREAD = SRPHListenForClientsPackets>
<2011-04-25 15:10:05.469 EDT>:[37]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, EVENT = Started, THREAD = SRPHQueuesManager>
<2011-04-25 15:10:05.476 EDT>:[39]:<MDS-CS_MDS>:<DEBUG>:<LAYER = GPAK, EVENT = Initialization>
<2011-04-25 15:10:05.483 EDT>:[40]:<MDS-CS_MDS>:<DEBUG>:<LAYER = GPAK, EVENT = Started>
<2011-04-25 15:10:05.472 EDT>:[38]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, EVENT = Started, THREAD = SRPHListenOnDatagramStatus>
<2011-04-25 15:10:05.501 EDT>:[41]:<MDS-CS_MDS>:<DEBUG>:<LAYER = GPAK, EVENT = Started, THREAD = GpakLayerHigherLayerListeningThread:MDP>
<2011-04-25 15:10:05.512 EDT>:[42]:<MDS-CS_MDS>:<DEBUG>:<LAYER = GPAK, EVENT = Started, THREAD = GpakLayerLowerLayerListeningThread:UDP>
25-Apr-2011 3:10:05 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
25-Apr-2011 3:10:06 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
25-Apr-2011 3:10:06 PM org.apache.catalina.startup.ContextConfig defaultWebConfig
INFO: No default web.xml
25-Apr-2011 3:10:06 PM org.apache.catalina.core.ApplicationContext log
INFO: AdministrationController (Status):init
25-Apr-2011 3:10:06 PM org.apache.catalina.core.ApplicationContext log
INFO: D:\Programs\Eclipse_36\plugins\net.rim.ejde.componentpack4.5.0_4.5.0.28\components\MDS
25-Apr-2011 3:10:06 PM org.apache.catalina.core.ApplicationContext log
INFO: AdministrationController (Statistics):init
25-Apr-2011 3:10:06 PM org.apache.catalina.core.ApplicationContext log
INFO: D:\Programs\Eclipse_36\plugins\net.rim.ejde.componentpack4.5.0_4.5.0.28\components\MDS
25-Apr-2011 3:10:07 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
25-Apr-2011 3:10:07 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
<2011-04-25 15:10:07.171 EDT>:[43]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, Web Server Started>
<2011-04-25 15:10:13.434 EDT>:[44]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Expire records from device storage that are expired or older than 0 hours; 0>
<2011-04-25 15:10:13.437 EDT>:[45]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Expire records process ended; 0>
<2011-04-25 15:10:13.448 EDT>:[46]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Admin. Task- refresh media management>
<2011-04-25 15:10:13.451 EDT>:[47]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = The push service is ready to receive requests>
<2011-04-25 15:10:13.454 EDT>:[48]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Admin. Task- pending push messages>
<2011-04-25 15:11:36.838 EDT>:[49]:<MDS-CS_MDS>:<DEBUG>:<LAYER = CMIME, Checking for new messages...>
<2011-04-25 15:11:37.573 EDT>:[50]:<MDS-CS_MDS>:<DEBUG>:<LAYER = CMIME, Count[262] LastIndex[262]>
<2011-04-25 15:12:07.577 EDT>:[51]:<MDS-CS_MDS>:<DEBUG>:<LAYER = CMIME, Checking for new messages...>
<2011-04-25 15:12:08.389 EDT>:[52]:<MDS-CS_MDS>:<DEBUG>:<LAYER = CMIME, Count[262] LastIndex[262]>
<2011-04-25 15:12:38.392 EDT>:[53]:<MDS-CS_MDS>:<DEBUG>:<LAYER = CMIME, Checking for new messages...>
<2011-04-25 15:12:39.065 EDT>:[54]:<MDS-CS_MDS>:<DEBUG>:<LAYER = CMIME, Count[262] LastIndex[262]>

 

 

Developer
Posts: 264
Registered: ‎10-05-2010
My Device: Not Specified

Re: Eclipse Email Simulator with MDS?

The MDS is accepting new emails for the device. I can see the message fly by as it polls. And surfing from the simulator works. But how do I get the email app on the phone to see or send emails through MDS?

Developer
Posts: 264
Registered: ‎10-05-2010
My Device: Not Specified

Re: Eclipse Email Simulator with MDS?

[ Edited ]

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARRRRRRRRRRRRRGGGGGGHHHHH!!!!!!!!!

 

Windows Firewall! 

 

I hate computers...

 

I still have a problem sending email because I am on Bell Sympatico and they block SMTP port 25 and seemingly any other port that is not authenticated. Since MDS seems not to have any authentication options, I don't know where to go from here.

 

Any ideas?

 

 

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

Re: Eclipse Email Simulator with MDS?

You can use standalone mode instead of connected.  This works locally on your PC and doesn't need to connect to any mail servers.  To use this you'll need to create a POP/SMTP account in your mail client that points to localhost (it'll connect to the MDS SImulator).  You can then send email between your mail client and the BlackBerry smartphone simulator via the MDS Simulator (no external network access needed).  

 

Note that this can still be blocked by windows firewall and/or virus scanners that try to scan email.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.