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
Posts: 10
Registered: ‎12-02-2009
My Device: Not Specified

Widget in simulator can not access web resources through a proxy

Hi,

 

I have my BlackBerry environment up and running on my PC:

- the MDS is configured with proper proxy settings

- the browser in the simulator can access web resources both internally and externally through the proxy

 

I create a simple Widget that should load an external web page on startup, some lines from config.xml:

<content src="http://www.domain1.com:8088/index.html" />
<access uri="http://www.domain1.com:8088" subdomains="true" />
<access uri="http://www.proxy1.com:8080" subdomains="true" />

 

The proxy listens to port 8080 and as you can see it is also whitelisted in the config.xml file. Now the problem - when I start the Widget the following error message pops up:

 

"Could not select proper transport descriptor for:

http://www.domain1.com:8088/index.html"

 

Running Wireshark in parallell shows there is no HTTP request sent for the start page.

 

When I connect my PC to another network not using any proxy, reconfigure MDS not to use proxy, it all works! The Widget starts and the web page is shown.

 

To me it is quite obvious the proxy connection that causes this "Could not select proper transport descriptor" error. I saw some other post on the same error message, but there was no infomation on proxies there.

 

My Widget needs to access an external server through our proxy. So this error is kind of frustrating since I can not run the simulator when my computer is connected to our office network.

 

Any ideas?

 

Environment:

- Simulator 5.0.0.252

- MDS 4.1.2

- Vista

 

Thanks,

/olle

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Widget in simulator can not access web resources through a proxy

I'll take this back to the team and see if they have any solutions for you.

 

Stay tuned...

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Visitor
Posts: 1
Registered: ‎02-10-2010
My Device: Blackberry Curve 8900
My Carrier: T-Mobile

Re: Widget in simulator can not access web resources through a proxy

any update on this.

 

I am having varied success in accessing urls within my corporate firewall.

 

Regards

Contributor
Posts: 36
Registered: ‎04-06-2010
My Device: Bold 9700
My Carrier: AT&T

Re: Widget in simulator can not access web resources through a proxy

Was there even an update on this?  I ran into the port issue today when trying to do some local development against a webserver not bound to port 80.   I ended up changing around my development environment to put my test server on 80, but I had hoped I wouldn't have to.

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Widget in simulator can not access web resources through a proxy

Hi hakason,

 

I was just talking with astanley, who also helps on the forums, and he mentioned a key item.  The MDS simulator is actually a web server itself.  When the MDS server runs it actually uses 8080 as its server listening port.

 

So when you are running the MDS simulator on the same machine as say an apache web server using 8080 you will have a port conflict.

 

I'm going to add this info to the Tips & Tricks thread 

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter