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



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


Mitsubishi FR-A540-0.75K-NA AC DRIVE INVERTER 1 HP 380-480 VAC 50/60 HZ 4.1 AMP  picture

Mitsubishi FR-A540-0.75K-NA AC DRIVE INVERTER 1 HP 380-480 VAC 50/60 HZ 4.1 AMP

$649.99



1PC USED A54MA30B Mitsubishi F500/A500/A540 Series 30-37KW Drive Main Board #CZ picture

1PC USED A54MA30B Mitsubishi F500/A500/A540 Series 30-37KW Drive Main Board #CZ

$255.00



Radiomatic Flo-One Beta Radio-Chromatography Detector A-500 Model A525 [E2FL] picture

Radiomatic Flo-One Beta Radio-Chromatography Detector A-500 Model A525 [E2FL]

$245.00



1PC Used A500 7.5KW 380V FR-A540-7.5K-CH Fast Shipping picture

1PC Used A500 7.5KW 380V FR-A540-7.5K-CH Fast Shipping

$376.05



Commodore Amiga Time Base Corrector VT-2000 TBC II Digital Processing picture

Commodore Amiga Time Base Corrector VT-2000 TBC II Digital Processing

$239.99



NEW Mitsubishi inverter A500 3.7KW 220V FR-A520-3.7K Fast Ship picture

NEW Mitsubishi inverter A500 3.7KW 220V FR-A520-3.7K Fast Ship

$550.00







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