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


Festo Pneumatic Manifold 573606 w/ (7) Solenoid Valves picture

Festo Pneumatic Manifold 573606 w/ (7) Solenoid Valves

$250.00



Numatics Manifold Block w/ (5) Solenoid Valves 061BB400M picture

Numatics Manifold Block w/ (5) Solenoid Valves 061BB400M

$150.00



Solenoid, picture

Solenoid,

$26.46



ASCO Stainless Solenoid Valve 8262H226, 120V 1/4

ASCO Stainless Solenoid Valve 8262H226, 120V 1/4" NPT, 2-Way, Normally Closed

$49.00



DORMEYER 2005-M-1 Solenoid,Laminated,1/8 - 1 in,Continuous 4X240 DORMEYER 2005-M picture

DORMEYER 2005-M-1 Solenoid,Laminated,1/8 - 1 in,Continuous 4X240 DORMEYER 2005-M

$37.87



Cole Hersee (24059-BP) 12V Insulated SPST Continuous Duty Solenoid picture

Cole Hersee (24059-BP) 12V Insulated SPST Continuous Duty Solenoid

$35.24







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