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
Administrator
MSohm
Posts: 14,065
Registered: ‎07-09-2008
My Carrier: Bell

Error 400 - Blackberry simulator, MDS on PC with proxy

Quote from the previous forums:


Guest
Error 400 - Blackberry simulator, MDS on PC with proxy
Posted: Jan 7, 2008 12:24 PM
 
Hi all,

Completely new to using this simulator so please excuse the basic question! I'm running the MDS simulator and a BlackBerry 8700g simulator and trying to browse to the home page just to see it working. I'm getting the error:

Error 400: Bad request.

Showing the details gives me the error: Unknown host

My PC is running a reverse proxy (CCProxy) which should in theory automatically pass any HTTP requests through the proxy server at my company, and I initially suspect a problem with this. How does the MDS simulator work? Would it pass HTTP requests straight through using my reverse proxy or does it need to be configured separately for the proxy server we have here? There is no possibility of getting out to the internet without the proxy (even for developers) so I really need some help getting this running here.

Many thanks,
Caroline

 


msohm

Posts: 2,288
Registered: Jul, 2005

Re: Error 400 - Blackberry simulator, MDS on PC with proxy
Posted: Jan 8, 2008 3:47 PM
 
Please see the following developer knowledge base article.

How To - Configure the BlackBerry MDS simulator to work behind a proxy
http://tinyurl.com/34fbhs

Mark Sohm
BlackBerry Developer Journal
www.blackberrydeveloperjournal.com

 

codemonkey57

Posts: 7
Registered: Mar, 2008

Re: Error 400 - Blackberry simulator, MDS on PC with proxy
Posted: Jul 16, 2008 11:51 AM
 
Hi,

I've followed the steps in the KB article to enable proxy support for an MDS simulator. But this only seems to work for HTTP URL's. When I try to access an HTTPS URL from a Device Simulator I get a generic "The selected server returned an error when attempting to fulfill your request."

I tried adding the following lines under the HTTPS_HANDLER:
application.handler.https.proxyEnabled = true
application.handler.https.proxyHost={my proxy here}
application.handler.https.proxyPort={my proxy port here}

How can I configure the MDS simulator to allow my device simulator to access HTTPS url's?

Thanks!

Ryan

 

Are you pointing the MDS Simulator to your local proxy, or your companies proxy?  Do you get the same results in both cases?

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
Please use plain text.
Developer
ryandevore
Posts: 46
Registered: ‎07-12-2008

Re: Error 400 - Blackberry simulator, MDS on PC with proxy

I'm pointing it at my companies proxy (the one I use in Internet Explorer).  Those are the only proxy settings I've ever dealt with at work.

Please use plain text.
Administrator
MSohm
Posts: 14,065
Registered: ‎07-09-2008
My Carrier: Bell

Re: Error 400 - Blackberry simulator, MDS on PC with proxy

Please follow the steps below to enable verbose logging in the MDS Simulator.

 

How To - Enable HTTP and HTML logging in the Mobile Data Service Simulator
Article Number: DB-00156

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800738/800792/801079/...

 

Also add these lines if they are not present in the rimpublic.property file.

 

Logging.file.location=logs Logging.file.log.level=4

 

 

Then restart the MDS Simulator, make an HTTPS request and post the [date]_MDS_MDS.txt file located in your logs directory.

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
Please use plain text.
Developer
ryandevore
Posts: 46
Registered: ‎07-12-2008

Re: Error 400 - Blackberry simulator, MDS on PC with proxy

Here you go....I enabled the settings, launched a device simulator, and tried to browse to an https website.

 

SCM 4.1.4.19 19 2007/07/10
<2008-07-25 23:18:13.364 PDT>:[2]:<MDS-CS_MDS>:<INFO >:<LAYER = SCM, J2SE 1.6.0_07 Charsets supported:Big5,Big5-HKSCS,EUC-JP,EUC-KR,GB18030,GB2312,GBK,IBM-Thai,IBM00858,IBM01140,IBM01141,IBM01142,IBM01143,IBM01144,IBM01145,IBM01146,IBM01147,IBM01148,IBM01149,IBM037,IBM1026,IBM1047,IBM273,IBM277,IBM278,IBM280,IBM284,IBM285,IBM297,IBM420,IBM424,IBM437,IBM500,IBM775,IBM850,IBM852,IBM855,IBM857,IBM860,IBM861,IBM862,IBM863,IBM864,IBM865,IBM866,IBM868,IBM869,IBM870,IBM871,IBM918,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-8859-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,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-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-MacCentralEurope,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-MS950-HKSCS,x-mswin-936,x-PCK,x-UTF-16LE-BOM,X-UTF-32BE-BOM,X-UTF-32LE-BOM,x-windows-50220,x-windows-50221,x-windows-874,x-windows-949,x-windows-950,x-windows-iso2022jp>
<2008-07-25 23:18:13.442 PDT>:[3]:<MDS-CS_MDS>:<INFO >:<LAYER = SCM, EVENT = Default Job Pool size = 10>
<2008-07-25 23:18:13.442 PDT>:[4]:<MDS-CS_MDS>:<INFO >:<LAYER = SCM, maxMem: 532742144 maxPoolSize: 10>
<2008-07-25 23:18:13.536 PDT>:[5]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = SRPH, LOWERSERVICE = GME>
<2008-07-25 23:18:13.536 PDT>:[6]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = IPPP, LOWERSERVICE = GME>
<2008-07-25 23:18:13.536 PDT>:[7]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = GME, LOWERSERVICE = MDP>
<2008-07-25 23:18:13.536 PDT>:[8]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = MDP, LOWERSERVICE = GPAK>
<2008-07-25 23:18:13.536 PDT>:[9]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = GPAK, LOWERSERVICE = UDP>
<2008-07-25 23:18:13.536 PDT>:[10]:<MDS-CS_MDS>:<EVENT>:<LAYER = SCM, EVENT = MDS-CS server has started>
<2008-07-25 23:18:13.599 PDT>:[11]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = Initialization>
<2008-07-25 23:18:13.599 PDT>:[12]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = Started>
<2008-07-25 23:18:13.646 PDT>:[13]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = Started, THREAD = MdpLayerDatagramGC>
<2008-07-25 23:18:13.646 PDT>:[14]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = Started, THREAD = MdpLayerLowerLayerListeningThread:GPAK>
<2008-07-25 23:18:13.646 PDT>:[15]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = Started, THREAD = MdpLayerHigherLayerListeningThread:GME>
<2008-07-25 23:18:13.677 PDT>:[16]:<MDS-CS_MDS>:<DEBUG>:<LAYER = UDP, EVENT = Initialization>
<2008-07-25 23:18:13.677 PDT>:[17]:<MDS-CS_MDS>:<DEBUG>:<LAYER = UDP, EVENT = Started>
<2008-07-25 23:18:13.677 PDT>:[18]:<MDS-CS_MDS>:<DEBUG>:<LAYER = UDP, EVENT = Started, THREAD = UdpLayerReceiverThread>
<2008-07-25 23:18:13.677 PDT>:[19]:<MDS-CS_MDS>:<DEBUG>:<LAYER = UDP, EVENT = Started, THREAD = UdpLayerSenderThread:GPAK>
<2008-07-25 23:18:14.083 PDT>:[20]:<MDS-CS_MDS>:<INFO >:<LAYER = IPPP, Sending Queue Size per device =200>
<2008-07-25 23:18:14.099 PDT>:[21]:<MDS-CS_MDS>:<INFO >:<LAYER = IPPP, IPPP: Receiving Queue Size =10>
<2008-07-25 23:18:14.099 PDT>:[22]:<MDS-CS_MDS>:<INFO >:<LAYER = IPPP, IPPP: Receiving Queue Size =10>
<2008-07-25 23:18:14.114 PDT>:[23]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, LAYER = IPPP, EVENT = Started>
<2008-07-25 23:18:14.114 PDT>:[24]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, LAYER = SRPH, EVENT = Initialization>
<2008-07-25 23:18:14.114 PDT>:[25]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Started, THREAD = ListenForClientsPackets>
<2008-07-25 23:18:14.114 PDT>:[26]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Started, THREAD = ConnectionsInputStreamesReader0>
<2008-07-25 23:18:14.114 PDT>:[27]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Started, THREAD = ListenOnDatagramStatus>
<2008-07-25 23:18:14.114 PDT>:[28]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Started, THREAD = QueuesManager>
<2008-07-25 23:18:14.114 PDT>:[29]:<MDS-CS_MDS>:<INFO >:<maxMem: 532742144 maxQueueSize: 250>
<2008-07-25 23:18:14.114 PDT>:[30]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, LAYER = SRPH, EVENT = Started>
<2008-07-25 23:18:14.114 PDT>:[31]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, EVENT = Started, THREAD = SRPHprotocolMainThread>
<2008-07-25 23:18:14.114 PDT>:[33]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, EVENT = Started, THREAD = SRPHQueuesManager>
<2008-07-25 23:18:14.114 PDT>:[32]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, EVENT = Started, THREAD = SRPHListenOnDatagramStatus>
<2008-07-25 23:18:14.114 PDT>:[34]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, EVENT = Started, THREAD = SRPHListenForClientsPackets>
<2008-07-25 23:18:14.130 PDT>:[35]:<MDS-CS_MDS>:<DEBUG>:<LAYER = GPAK, EVENT = Initialization>
<2008-07-25 23:18:14.130 PDT>:[36]:<MDS-CS_MDS>:<DEBUG>:<LAYER = GPAK, EVENT = Started>
<2008-07-25 23:18:14.130 PDT>:[37]:<MDS-CS_MDS>:<DEBUG>:<LAYER = GPAK, EVENT = Started, THREAD = GpakLayerHigherLayerListeningThread:MDP>
<2008-07-25 23:18:14.130 PDT>:[38]:<MDS-CS_MDS>:<DEBUG>:<LAYER = GPAK, EVENT = Started, THREAD = GpakLayerLowerLayerListeningThread:UDP>
<2008-07-25 23:18:14.630 PDT>:[39]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, Web Server Started>
<2008-07-25 23:18:23.333 PDT>:[40]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Expire records from device storage that are expired or older than 0 hours; 0>
<2008-07-25 23:18:23.333 PDT>:[41]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Expire records process ended; 0>
<2008-07-25 23:18:23.333 PDT>:[42]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = The push service is ready to receive requests>
<2008-07-25 23:18:23.333 PDT>:[43]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Admin. Task- pending push messages>
<2008-07-25 23:18:33.130 PDT>:[44]:<MDS-CS_MDS>:<WARNG>:<LAYER = SCM, EVENT = Cannot load GME compression library>
<2008-07-25 23:18:33.130 PDT>:[45]:<MDS-CS_MDS>:<WARNG>:<LAYER = SCM, EVENT = OS: Windows XP>
<2008-07-25 23:18:33.130 PDT>:[46]:<MDS-CS_MDS>:<WARNG>:<LAYER = SCM, EVENT = OS Arch: x86>
<2008-07-25 23:18:33.130 PDT>:[47]:<MDS-CS_MDS>:<WARNG>:<LAYER = SCM, EVENT = OS Version: 5.1>
<2008-07-25 23:18:33.130 PDT>:[48]:<MDS-CS_MDS>:<ERROR>:<Unknown packet destination: sync>
<2008-07-25 23:20:02.208 PDT>:[55]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Refresh device storage:6>
<2008-07-25 23:20:02.208 PDT>:[56]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Refresh device storage end; time:0>
<2008-07-25 23:20:02.208 PDT>:[57]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Receiving, TAG = 108609277, DEVICEPIN = 2100000b, VERSION = 16, CONNECTIONID = 1631052052, SEQUENCE = 0, TYPE = CONNECTION-REQUEST, CONNECTIONHANDLER = bsm, PROTOCOL = TCP, PARAMETERS = [bsmhandler:0], SIZE = 251>
<2008-07-25 23:20:02.208 PDT>:[58]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = CreatedReceivingQueue, DEVICEPIN:CONNECTIONID = 2100000b:1631052052, ReceivingQueueSize = 1>
<2008-07-25 23:20:02.208 PDT>:[59]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = StartExecuting, TAG = 108609277, DEVICEPIN = 2100000b, VERSION = 16, CONNECTIONID = 1631052052, SEQUENCE = 0, TYPE = CONNECTION-REQUEST, CONNECTIONHANDLER = bsm, PROTOCOL = TCP, PARAMETERS = [bsmhandler:0], SIZE = 251>
<2008-07-25 23:20:02.208 PDT>:[61]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Available threads in DefaultJobPool = 9 running JobRunner: DefaultJobRunner-1>
<2008-07-25 23:20:02.208 PDT>:[60]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = EndExecuting, TAG = 108609277, DEVICEPIN = 2100000b, VERSION = 16, CONNECTIONID = 1631052052, SEQUENCE = 0, TYPE = CONNECTION-REQUEST, CONNECTIONHANDLER = bsm, PROTOCOL = TCP, PARAMETERS = [bsmhandler:0], SIZE = 251>
<2008-07-25 23:20:02.224 PDT>:[62]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, HANDLER = BSM, DEVICEPIN = 2100000b, Successful Connect>
<2008-07-25 23:20:02.224 PDT>:[63]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Finished JobRunner: DefaultJobRunner-1, available threads in DefaultJobPool = 10, time spent = 16ms>
<2008-07-25 23:20:02.239 PDT>:[64]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = CreatedSendingQueue, DEVICEPIN = 2100000b>
<2008-07-25 23:20:02.239 PDT>:[67]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Sending, TAG = 902758400, DEVICEPIN = 2100000b, VERSION = 16, CONNECTIONID = 1631052052, SEQUENCE = 0, TYPE = DISCONNECT-ORDER, SIZE = 19>
<2008-07-25 23:20:02.239 PDT>:[68]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Device connections: AVG latency (msecs)0>
<2008-07-25 23:20:02.239 PDT>:[69]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = RemovedReceivingQueue, DEVICEPIN:CONNECTIONID = 2100000b:1631052052, ReceivingQueueSize = 0>
<2008-07-25 23:20:02.255 PDT>:[70]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Notification, TAG = 902758400, STATE = DELIVERED>
<2008-07-25 23:20:02.271 PDT>:[71]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Receiving, TAG = 108609278, DEVICEPIN = 2100000b, VERSION = 16, CONNECTIONID = 1631052053, SEQUENCE = 0, TYPE = CONNECTION-REQUEST, CONNECTIONHANDLER = , PROTOCOL = TCP, PARAMETERS = [www.bankofamerica.com:443], SIZE = 98>
<2008-07-25 23:20:02.271 PDT>:[72]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = CreatedReceivingQueue, DEVICEPIN:CONNECTIONID = 2100000b:1631052053, ReceivingQueueSize = 1>
<2008-07-25 23:20:02.271 PDT>:[73]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = StartExecuting, TAG = 108609278, DEVICEPIN = 2100000b, VERSION = 16, CONNECTIONID = 1631052053, SEQUENCE = 0, TYPE = CONNECTION-REQUEST, CONNECTIONHANDLER = , PROTOCOL = TCP, PARAMETERS = [www.bankofamerica.com:443], SIZE = 98>
<2008-07-25 23:20:02.271 PDT>:[74]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Available threads in DefaultJobPool = 9 running JobRunner: DefaultJobRunner-3>
<2008-07-25 23:20:02.271 PDT>:[75]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = EndExecuting, TAG = 108609278, DEVICEPIN = 2100000b, VERSION = 16, CONNECTIONID = 1631052053, SEQUENCE = 0, TYPE = CONNECTION-REQUEST, CONNECTIONHANDLER = , PROTOCOL = TCP, PARAMETERS = [www.bankofamerica.com:443], SIZE = 98>
<2008-07-25 23:20:02.271 PDT>:[76]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, TCP Thread: DefaultJobRunner-3 started>
<2008-07-25 23:20:02.536 PDT>:[77]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Finished JobRunner: DefaultJobRunner-3, available threads in DefaultJobPool = 10, time spent = 265ms>
<2008-07-25 23:20:02.552 PDT>:[78]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, www.bankofamerica.com>
<2008-07-25 23:20:02.552 PDT>:[79]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = QueueSize, DEVICEPIN = 2100000b, SendingQueueSize = 0>
<2008-07-25 23:20:02.552 PDT>:[82]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Sending, TAG = 902758401, DEVICEPIN = 2100000b, VERSION = 16, CONNECTIONID = 1631052053, SEQUENCE = 0, TYPE = ERROR, SIZE = 22, ERRORCODE = 127, ERRORMSG = [www.bankofamerica.com]>
<2008-07-25 23:20:02.552 PDT>:[83]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Device connections: AVG latency (msecs)281>
<2008-07-25 23:20:02.552 PDT>:[84]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, TCP Thread: ConnectionsInputStreamesReader0-DefaultJobRunner-3 stopped>
<2008-07-25 23:20:02.552 PDT>:[85]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = RemovedReceivingQueue, DEVICEPIN:CONNECTIONID = 2100000b:1631052053, ReceivingQueueSize = 0>
<2008-07-25 23:20:02.567 PDT>:[86]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Notification, TAG = 902758401, STATE = DELIVERED>
<2008-07-25 23:20:08.114 PDT>:[87]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = RemovedSendingQueue, DEVICEPIN = 2100000b>

Please use plain text.
Administrator
MSohm
Posts: 14,065
Registered: ‎07-09-2008
My Carrier: Bell

Re: Error 400 - Blackberry simulator, MDS on PC with proxy

Since this is an HTTPS connection, less information about the connection is logged.  There isn't anything conclusive in the log file.  Are you able to reproduce this using an unencrypted HTTP connection?  Is this happening when using the BlackBerry Browser, a third party application in the BlackBerry Simulator or both?
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
Please use plain text.
Developer
ryandevore
Posts: 46
Registered: ‎07-12-2008

Re: Error 400 - Blackberry simulator, MDS on PC with proxy

I've seen the same behavior when using the Blackberry Browser and calling our webservice (SOAP over https).  I have not seen any problems with HTTP.

Please use plain text.
Administrator
MSohm
Posts: 14,065
Registered: ‎07-09-2008
My Carrier: Bell

Re: Error 400 - Blackberry simulator, MDS on PC with proxy

Does this happen consistently with any public HTTPS sites?  If so, please provide an example URL, the model and handheld software version of the BlackBerry Simulator (found under Options, About) along with the version of MDS Simulator you are using.
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
Please use plain text.
Developer
ryandevore
Posts: 46
Registered: ‎07-12-2008

Re: Error 400 - Blackberry simulator, MDS on PC with proxy

The URL I used to get the debug log was https://www.bankofamerica.com

 

The simulator I'm using right now is a Curve 8320 (4.2.2.161).  When I try to go to the URL in the simulator, it says "The selected server returned an error when attempting to fulfill your request."  The error comes up almost immediately.

 

In my code, I tried the following:

HttpsConnection conn = null; try { conn = (HttpsConnection)Connector.open("https://www.bankofamerica.com"); } catch (Exception ex) { System.out.println(ex.toString()); ex.printStackTrace(); }

 

And the output was:

net.rim.device.cldc.io.ippp.SocketBaseIOException: www.bankofamerica.com
No stack trace

 

 

 

 

 

Please use plain text.
Administrator
MSohm
Posts: 14,065
Registered: ‎07-09-2008
My Carrier: Bell

Re: Error 400 - Blackberry simulator, MDS on PC with proxy

I tried this using the same BlackBerry Simulator and MDS Simulator version 4.1.4 and was able to load the site.  What version of MDS Simulator are you using?
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
Please use plain text.
Developer
ryandevore
Posts: 46
Registered: ‎07-12-2008

Re: Error 400 - Blackberry simulator, MDS on PC with proxy

I'm using 4.1.4 as well.

 

It works fine for me as well if I'm not inside our corporate firewall.   Are you using a proxy to get to the internet?  If so, how is the proxy configured in the MDS config file?

Please use plain text.