Strange connection problem

This happens on the Simulator and the current device.  I did it on 8800, 8703e, 8320 and 7100i.  OS 4.1 and 4.2.  Also tried on multiple media.  Tried with and without a BES.

I am able to create an http connection initially, and everything works fine.  I log in, I get my data.  Large.

However, when I leave my application and go to the Blackberry Desktop and turn the Wi - Fi market then re - enter my app and try to make the same connection, it will not work.

When you run the debugger, it seems to try and make the ' status int = httpConn.getResponseCode (); »

line of code and won't go further.  It will be expire.  In fact, he gets caught by the try catch statement.  The Exception toString is ' java.io.InterruptedIOException: Local connection timed out after ~ 120000'

My connection code is...

     StreamConnection s = null;      String finalUrl = "";       finalUrl = "http://" + login.url + directoryPath + filename + local.getUrlPlus();       try {           s = (StreamConnection) Connector.open(finalUrl);            HttpConnection httpConn = (HttpConnection) s;           httpConn.setRequestMethod(HttpConnection.POST);         httpConn.setRequestProperty("user-agent", "BB DOC");            httpConn.setRequestProperty("content-type", "application/x-www-form-urlencoded");           httpConn.setRequestProperty("connection", "close");         byte d[] = data.getBytes();         httpConn.setRequestProperty("content-length", Integer.toString(d.length));          OutputStream os = s.openOutputStream();         os.write(d);            if (os != null)             os.close();         int status = httpConn.getResponseCode();            if (status == HttpConnection.HTTP_OK) {             InputStream input = s.openInputStream();                //parses the content returned               input.close();          } else {                ;//Had a server connection problem                      }           s.close();          httpConn.close();       } catch (IOException e) {                   ;//Catches the timeout here.        }

Seems the only way to solve this problem is to restart the Simulator.

Only occurs when the wireless is displayed/hidden market.  Sound like something not be reset or something.  I have simulated this when the unit is made of coverage and brought back in coverage, but the error never occurred.  Only when the wireless is turned on and the.

What of even weirder, is that I have been using the same connection code for over a year without any problems.

Someone at - he already experienced this?  Its driving me crazy.

Any help would be more then appreciated.  Thank you!

This seems to be a matter of BlackBerry Simulator.  I was able to reproduce and checked that it has been fixed in version 4.3.0 the BlackBerry Simulator.

Tags: BlackBerry Developers

Similar Questions

  • Strange internet connectivity problem

    Hello!

    I'm having a connectivity problem I have never met before. I use a wireless router from Apple with internet cable.

    Yesterday, my computer would be is no longer in contact with my router wi - fi. I get a message that the network could not be attached (I ran the Diagnostics wireless, but it's a whole lot of sense to me empty files). However, I also have a Roku, and which IS connected to the WiFi without problem. I completely stopped and restarted the computer, no joy. Reset the modem and the router, no joy. Still works with Roku, not with the computer. But the weird part is, I have Optimum Online, which allows subscribers to log-in to its hotspots, and it worked! I am connected Optimum wi - fi network on my computer right now.

    So I don't know where is the problem! It is not the router, because this is related work with Roku and is not the computer, because it is connected and working with the Optimum hotspot. What gives?

    Try this!

    Go to the Apple menu > System Preferences > network

    Select a Wi - Fi connection in the sidebar and then click on the button "Advanced...". "in the lower right corner of the screen

    In the list of preferred networks, delete the name of your Wi - Fi network

    Click on the "OK" button to save that change and then 'apply' in the network preferences window.

    Now, go to the Applications folder > utilities > Keychain Access

    Make sure that "Login" keychain is selected and "All items" in the category is selected in the sidebar

    Use the search field to find items that Keychain with the name of your Wi - Fi network and remove

    Quit Keychain Access

    Now try and access your Wi - Fi network

  • Strange keyboard problem - Portege A100

    I have a Portege A100 some three years now.
    There is a problem with the keyboard, only the keys 5tgb - a diagonal line.
    As soon as the PC is often placed on these keys don't work at all. After a while, if I press hard, especially if I turn on caps lock shift, the key to start work and then more or less work. Sometimes turning the PC and trie still the problem using shift often makes it worse. Sometimes the keys work, but only with a delay. No other keys are affected.
    I am confused as to if it's a hardware problem (are these keys connected even if a single connector?) or a strange software problem, perhaps related to the traditional Chinese microsoft input method editor that I recently downloaded.

    Any help or advice would be welcome.

    Alan Watson

    Hello

    The keys are connected on the map as the rest of the keyboard keys.
    There are not connected separately. To me, it looks like a hardware would be malfunctions.
    Why? Well, it's not easy to say. Sometimes loses keyboard cable affects the use of the keyboard. But maybe the entire keyboard needs to be replaced.

    We must consider this possibility I think you should contact the ASP in your country. If the warranty is valid replacement should be done for free.

  • Home wireless network connection problems

    What should I do if I normally connect to the wireless network does not appear?  It is not a network card problem, because I can connect to other wireless and school and other places.  I tried to reset the router, ping and by unplugging and seeing what I could understand on the computer at home, but nothing does.  Any ideas or suggestions would be greatly appreciated.

    Thank you.

    Hello

    Have you tried other computers to connect to your router? You use both wire and wireless
    connection?

    Unplug the modem and Router 3 + minutes. And then reconnect the modem - when it is running
    Plug in the router - when it is running - restart the computer. This is known as a hard reset.

    Check with your router manufacturer support.

    -----------------------------------------------------

    Check this box:

    Strange problem with Internet under Vista
    http://www.catonett.com/blog/archives/194

    Windows Vista cannot obtain an IP address from certain routers or some non-Microsoft DHCP servers
    http://support.Microsoft.com/kb/928233/en-us

    ----------------------------------------------------

    And:

    Network connection problems
    http://windowshelp.Microsoft.com/Windows/en-us/help/33307acf-0698-41ba-B014-ea0a2eb8d0a81033.mspx

    I hope this helps.

  • Signal connect problem

    Hi all

    I have a problem strange connection of signals to the slot machines. I have the following code:

    Container container = root->findChild ("timeline_container");
    m_pForeignWindow = (ForeignWindowControl *) (container-> at (0));

    m_pForeingWindow is not null here

    Boolean success = connect (m_pForeignWindow,
    SIGNAL (windowAttached (screen_window_t, const QString &, const QString &)),.
    This,
    SLOT (onWindowAttached (screen_window_t, const QString &, const QString &)));))

    success is true here

    success = QObject::connect (m_pForeignWindow,
    SIGNAL (touch(TouchEvent *)),
    m_timeline,
    CRACK (onTouch(TouchEvent *)));

    success is false here

    Research with the debugger, I got the following message:

    Object::connect: No such signal bb::cascades:ForeignWindowControl:touch(TouchEvent_*)

    but this signal exists for all objects in VisualNode... What I am doing wrong?

    Kind regards.

    See if it actually compiles.  FDI in the current beta version is infamous for being reported wrong these errors, so I suggest to turn them off.

    Window-> Preferences-> C / C++-> the analysis of Code-> Qt syntax problem

  • Network host connectivity problem

    Hi all
    I have a bit of a strange an ESXi 5 U1 host connectivity problem. The host has a network card in the 10.0.0.0/24 subnet, and from there it can ping both devices but cannot ping to two other devices. To explain a little better:
    There are two hosts with identical hardware (HP ProLiant DL380 G6) both built with the same picture of ESXi 5 U1 from HP.
    There is an IP address on the switch (Cisco 3750 gigabit) management.
    There are two servers running Openfiler, which I'll use for ISCSI data banks.
    All these devices are in the same VLAN in the 10.0.0.0/24 subnet. host 1 is identical to the 2 host configuration (bar IP address and host name, etc.). Host can ping all devices on the subnet 1 and maybe ping by all devices on the seubnet. 2, the one with the issue of the host can ping and ping the Cisco FoxyCode and host 1, but cannot ping or ping by one of the two boxes openfiler.
    Research on the openfiler boxes I see missing entries in the arp (marked as incomplete) table. Host 2 he entered complete arp for the openfiler boxes. A trace of the wireshark package shows the openfilers sending arp requests but no response from host 2. The Cisco and host 1 to get the answers.
    I have patched the critical fixes host 2 until the last critical and no, applied the latest versions of firmware HP etc. Swapped, cables, tried different switch ports and even different NICs on host 2, all to nothing does not. The Cisco ports configured all identically from host 1. The openfiler boxes are set up with interfaces servile and the Cisco switch ports are etherchannelled for these. There is no etherchannel or link aggregation etc for guests, straight connection to the front in the VLAN.
    Interestingly, all devices also has an interface in the 192.168.2.0/sous-reseau 24 for management and all devices can see all other devices here absolutely fine.
    If anyone has any ideas on where to go from here please let me know, I'm going crazy trying to understand this one!

    ts999 wrote:

    The openfiler boxes are set up with interfaces servile and the Cisco switch ports are etherchannelled for these.

    I wonder if the Etherchannels in Openfiler servers might not work. Depending on how the switch load balances executives, this could cause a host to work and the other is not.

  • AppStore connection problem!

    Hello

    I'm running a 21.5 "iMac with OS X El Captan 10.11.5. My problem is that I am not able to connect to iCloud and the App Store on my Mac.

    The error I get is "there was an error connecting to server Apple ID"

    The same username and password works perfectly well on the site of iCloud, my app store on the iPhone and the iPad, but not on Mac.

    What is the way my iMac communicates via the internet? We have a firewall. And oh, the software update for El Capitan is downloading as I type; He didn't even ask for IDs, just started downloading automatically. The same thing happened yesterday with the updates listed on the tab Update on the app store - they have been is downloaded yesterday without asking my login details but it was a rare event; connection problems I described above took place during the last month or so.

    How can I fix?

    Thank you!!

    Try disconnecting all the services using your Apple ID on your iMac, iTunes, FaceTime, iMessage and try to sing.

    If you cannot connect to the iTunes Store - Apple Support

  • Connection problems can not connect I forgot my password I did ' get the confirmation email.

    Cannot connect connection problems I forgot my password I have request a Reset password but I did ' t get the confirmation email.

    Go through the logon process. When you enter your name / password
    should be a link I forgot the password. Site more to have that.

  • Why do I get "Connection problem" on my laptop, when I try to access my e-mail account Yahoo with the new version of Firefox?

    Since I updated firefox to 29.0.1 on my desktop, I can't access my account at Yahoo.com from my ASUS laptop. "Connection problem" appears when he tries to retrieve new messages. I received mail on the ASUS 12/03/13, but from now on I get this message and no new mail arrives at the ASUS.

    Some problems occurs when your Internet security program was set to trust to the
    a previous version of Firefox, but no longer recognizes your updated as version
    level of confidence. Now how do I solve the problem: to allow Firefox to connect to the Internet
    Once again:

    • Make sure your Internet security software is up-to-date (for example, you are using the latest version)
    • Delete Firefox to list your program of trusted or recognized programs, then add it again. For detailed instructions, see Configure the firewall so that Firefox can access the Internet.
  • Icloud connection problems

    Hi - I've changed my Apple ID a year ago.

    For these last days, I get messages saying: my Mac cannot connect with icloud and gives the e-mail address of old and obsolete, that I stopped using it a year ago. I ' ved checked my details with the system Apple ID. Everything is up-to-date. Checked the system does not recognize the old e-mail address or the password tied to it.  How to stop the message saying that there is a connection problem?  Thank you very much

    Can you go into System Preferences/iCloud and log out of the old ID? Then log in with the ID of the new?

  • connection problems with the version 6.18.0.106

    Hello

    I have Windows XP and I have always used an earlier version of Skype, but now the old version is retired and I can't use it. So I download the new version 6.18.0.106, but this one has a connection problems. Every 4 seconds, I am offline and then online again for 4 seconds. My connection is OK and my provider does not block Skype calls. Is there anyone who knows how to fix?

    Try to uninstall the latest version and install the older version of Skype 6.14.0.104:

    http://download.Skype.com/MSI/SkypeSetup_6.14.0.104.msi

  • Connection problems: Win7, Skype 6.14

    Hello

    I had connection problems since just after I did a windows update last night. (no idea if it's just a coincidence?)

    I read through several other posts here, tried reinstalling Skype several times (also re-installed an older version), checked the compatibility mode and still no joy. Oh, I restarted a few times too.

    I'm trying to connect using my Skype username and password (I don't have an account of ms) but the screen is just stuck there, it says signing in and the whirly thing (term techy lol) is just Dervishes round and round.

    I luuuurv my Skype, absolutely essential for me because I work from home, so I hope someone can help. PLEEEEASE :-)

    Thank you

    Try to uninstall the currently installed version and install the older version of Skype 6.9.0.106 using this msi installer:

    http://download.Skype.com/MSI/SkypeSetup_6.9.0.106.msi

  • LJ pro M177fw: eprint center connection problem

    Hello

    today I am trying to add my new printer to my eprint account, but I do not remember my pwd, so I want to co reset the password.

    By e-mail, I received a link

    http://h30495.www3.HP.com/reset_password/xxxxxxxxxxxxxxx

    but it didn't work, the Web server show this error:

    SERVER ERROR

    Oops! Only, something was wrong with our server.

    Try refreshing the page.

    I tried different browser and pc, but I can not reset my pwd.

    Is there a solution to this problem?

    Is the server down for ever?

    Thank you and best regards.

    Roberto

    Hey @Roberto_ITALY,

    Thanks for posting in the Forum from HP Support.

    I understand that you are unable to claim your HP Color LaserJet Pro MFP M177fw in your account ePrint Center due to a connection problem.  I would like to help.

    I don't see this particular error with password resets from time to time.  I have a workaround that can clear up this place for you:

    • Click here.  This will bring you to <www.snapfish.com >.  As the Snapfish site is linked directly with ePrint Center and HP connected, you can try to reset your password as follows - click the connection icon and then "forgot your password":

    • Enter the e-mail address that you use to connect to the ePrint Center and click on submit.
    • You should receive a message of automatic reset of password by email - the reset as expected before and then try to use this new password to Snapfish to connect downtown ePrint.
    • If this does not solve your problem of access ePrint Center, please call our Cloud Services to 855-785-2777. If you do not live in the United States / Canada region, please click the link below to get help from your region number.

      http://WWW8.HP.com/us/en/contact-HP/WW-phone-assist.html

    I hope this helps.  If my suggestion worked in your favor, feel free to give me a virtual h.o.t. by clicking on the 'Thumbs Up' icon below.

    Have a great day!

  • Connection problems. Cursor "turns" without touching the keys. Keypad lock. Tracpad disconnects. Need to close and restart before both work again. Any guidance will be appreciated.

    CONNECTION PROBLEMS.

    CURSOR "Runs" AFTER I TOUCH a BUTTON AND THEN the KEYBOARD LOCKS AND TRAC PAD DISCONNECTS.

    NEED TO SHUT DOWN I HAVE MAC AND TURN IT BACK ON AND KEYBOARD WORKS OK.

    IT IS AN INTERMIITANT BUT AN ANNOYING PROBLEM AND I WOULD GREATLY APPRECIATE SOME GUIDANCE.

    Thank you

    Hello

    Please, do not type in capital letters, which is considered yelling that I am sure that you are trying to do.

    Have you had the opportunity to read If your Apple wireless mouse, keyboard or the trackpad will not work as expected - Apple Support ?

  • Satellite C855-5347 - strange temperature problem

    I have an old C855 5347 of 3 years with a strange temporary problem, right of the touch pad between her and the corner got warm enough. I wonder what is in this area that make heat. Speccy time show Ok, all vents are clear.

    Any ideas appreciated!

    Phil

    I can only imagine that HDD produces so much heat. In fact, it is placed in the Middle, under the touchpad, but I still think it's the HARD drive.

Maybe you are looking for