BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 12-16-2008, 05:39 AM   #1
Mikaël Donini
Knows Where the Search Button Is
 
Join Date: Sep 2008
Model: 7100T
PIN: N/A
Carrier: none
Posts: 32
Default Connector.open fails only the first time

Please Login to Remove!

Dear Forum,

I have written a very simple application that performs an http connection:

My code line is the following:

Code:
httpConnector = (HttpConnection)Connector.open("www.google.com");
The first time I execute this code on my Blackberry device, the following message is displayed:

"Your application has requested a http connection to www.google.com."

Then, I click on the button "Allow this connection". When clicking on it, then my device hangs and is locked. I must force a reboot to retrieve my device.

The second time the code is executed, it works properly.

Is it a defect? Do you know if I can workaround?

I use JDE 4.3.0.93 on Blackberry 8110.

Thanks in advance,

Mikaël Donini, Arkadin France.

Last edited by Mikaël Donini; 12-16-2008 at 05:41 AM..
Offline  
Old 12-16-2008, 08:39 AM   #2
Ivanov
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Posts: 310
Default

is your connection code executed in a separate thread?
__________________
Blessed is the end user who expects nothing, for he/she will not be disappointed. (Franklin's Rule)
Offline  
Old 12-16-2008, 09:26 AM   #3
Mikaël Donini
Knows Where the Search Button Is
 
Join Date: Sep 2008
Model: 7100T
PIN: N/A
Carrier: none
Posts: 32
Default Thank you : it works now ....

You are right: it works perfectly with an invokeLater separate thread.

Have a nice day,

Mikaël.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


New In Box Schneider TSXMRPC001M Memory Card Module picture

New In Box Schneider TSXMRPC001M Memory Card Module

$519.99



2 - RAM DRAM Tray-Container Box For Server PC Memory DIMM DDR4 DDR5- Fits 100 picture

2 - RAM DRAM Tray-Container Box For Server PC Memory DIMM DDR4 DDR5- Fits 100

$20.99



2 - RAM DRAM Tray-Container Box For Server PC Memory DIMM Modules - Fits 100 NEW picture

2 - RAM DRAM Tray-Container Box For Server PC Memory DIMM Modules - Fits 100 NEW

$21.90



Desktop Memory Case Tray Case for PC DDR DRAM RAM DIMM Modules - 2 fits 100 New picture

Desktop Memory Case Tray Case for PC DDR DRAM RAM DIMM Modules - 2 fits 100 New

$20.50



1PC Micron 8GB PC4-2400T DDR4 Memory MTA18ASF1G72HZ-2G3B1ZG Laptop RAM -  NEW picture

1PC Micron 8GB PC4-2400T DDR4 Memory MTA18ASF1G72HZ-2G3B1ZG Laptop RAM - NEW

$159.00



Dental Endo NiTi Gold Taper Heat Activated /Rotary Files Engine Use 21mm/25mm picture

Dental Endo NiTi Gold Taper Heat Activated /Rotary Files Engine Use 21mm/25mm

$234.68







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.