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: 4
Registered: ‎10-11-2011
My Device: Curve
My Carrier: Virgin Mobile

ConnectionFactory Version 7.0 HTTPS

I'm unable to get a proper https connection in OS 7.  The following code works in 5 and 6, but in 7 it returns a null descriptor.  If I use http://www.google.com, it works fine.  I tried messing with all of the other settings to no avail.  Any help would be greatly appreciated.

 

ConnectionFactory factory = new ConnectionFactory();
ConnectionDescriptor descriptor = factory.getConnection("https://www.google.com");//this.url);

 

 

Developer
Posts: 1,055
Registered: ‎01-25-2009
My Device: BlackBerry Bold 9650/BlackBerry Torch 9800

Re: ConnectionFactory Version 7.0 HTTPS

Before

 

factory.getConnection(...);

 

call:

 

factory.setEndToEndRequired(true);

 

 

 

Jerome Carty - Follow jcarty on Twitter@jcarty | #webworks-dev / #BlackberryDev on irc.freenode.net | My Apps
Click "Accept as Solution" if post solved your original issue.. Give like/thumbs up if you feel post is helpful
New Contributor
Posts: 4
Registered: ‎10-11-2011
My Device: Curve
My Carrier: Virgin Mobile

Re: ConnectionFactory Version 7.0 HTTPS

That didn't seem to do anything different.  If it helps any, I'm using a 9930 7.0 Simulator, compiling with JRE 5.0.  It runs for about a minute (I'm guessing the default timeout length) then just returns a null descriptor.  

 

Did you happen to try this yourself and see it working?

Developer
Posts: 1,055
Registered: ‎01-25-2009
My Device: BlackBerry Bold 9650/BlackBerry Torch 9800

Re: ConnectionFactory Version 7.0 HTTPS

I have it running in production code right now. So, I am sure that it works. Try another simulator if possible. You can download another here:

http://us.blackberry.com/developers/resources/simulators.jsp
Jerome Carty - Follow jcarty on Twitter@jcarty | #webworks-dev / #BlackberryDev on irc.freenode.net | My Apps
Click "Accept as Solution" if post solved your original issue.. Give like/thumbs up if you feel post is helpful
Highlighted
New Contributor
Posts: 4
Registered: ‎10-11-2011
My Device: Curve
My Carrier: Virgin Mobile

Re: ConnectionFactory Version 7.0 HTTPS

I think I figured out it was a default setting on the simulator itself.  I had to go into "Manage Connections" and select Wifi, then select Default WLAN.  After I did that, https started working as usual.  That's very strange that I'd be able to browse and even do a getConnection on http until I changed that setting.