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


Super-Micro P4DC6+ Motherboard with 2 Xeon i processors with SCSI RAID picture

Super-Micro P4DC6+ Motherboard with 2 Xeon i processors with SCSI RAID

$200.00



NETWORK INSTRUMENT GIGASTOR- 2U (2X) XEON E5-2630- 64 GB PC3 RAM picture

NETWORK INSTRUMENT GIGASTOR- 2U (2X) XEON E5-2630- 64 GB PC3 RAM

$356.99



Trenton 92-506313-XXX W/ 2x Intel Xeon Processors & 4GB DDR2 RAM picture

Trenton 92-506313-XXX W/ 2x Intel Xeon Processors & 4GB DDR2 RAM

$439.99



POSEIDON XEON D-1500 PRODRIVE TECH BOX picture

POSEIDON XEON D-1500 PRODRIVE TECH BOX

$500.00



1 pc  used   X5DPL-IGM-DC server motherboard Xeon picture

1 pc used X5DPL-IGM-DC server motherboard Xeon

$734.27



 Processor Socket LGA1366 ServerCPU Matching pair Intel Xeon X5680 3.33GHz SLBV5 picture

Processor Socket LGA1366 ServerCPU Matching pair Intel Xeon X5680 3.33GHz SLBV5

$55.09







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