Network IO on OS5 coup

I am having some problems with my network code IO on OS5 of BlackBerry.

I get sporadic crashes and eventually TCP timeout exceptions during my IO operations.

I use the 5.0 network API to establish the connection works perfectly every time.

The problem is when you do the actual IO. I have a background worker thread serving a queue i/o requests. There is only a single background for all thread requests are serialized on this thread.

Completion notification is made through a delegate interface that is passed when the request is pending. The completion delegate is called on the thread of substantive work, but guests are free to repost this to the event via invokeLater thread make UI updates etc.

Notes:

I did some file download large treatment OS 5.0, including "BOLD", 9520 and 9700 devices.  All of these simulators are desperate, they lock themselves in the same reading that you have identified.  the 9520 is the best, rarely, it crashes and is a little better with BONES later.  However, the 9700 is a nightmare.

What I did, it is a mechanism of stall detection, code if I'm stuck in this loop, I therefore interrupt the flow, and try again.

Tags: BlackBerry Developers

Similar Questions

  • Problem OS5.0/6.0 detect the State of coverage in 2G networks

    if(CoverageInfo.isCoverageSufficient(CoverageInfo.COVERAGE_MDS)){
                    return true;
            }else{
                    return false;
    }
    

    This code works perfectly... If you in connected mode 3G (or WiFi). But if you in 2G (EDGE or GPRS) it doesn't work.

    What is it? Once again RIM bug or I missed something?

    @albertpv found the solution:

    use CoverageInfo.isCoverageSufficient with CoverageInfo.getCoverageStatus to get the required results.

    As I tested it isCoverageSufficient works in wireless / 3 G/CDMA, but not in 2G.

    ... getCoverageStatus working in 2G networks.

    So, just to test BOTH.

  • Socket RAW InputStream.availalble () in stream wireless network always 0?

    For all BlackBerry networking expert out there.

    The explanation of the problem will be quite long, so I'll try to structure the message to facilitate navigation.

    Introduction

    Recently, we went from HttpConnection to raw sockets in our application.  It wasn't an easy decision (a lot of extra code had to be written and debugged) - it stemmed from the fact that on different devices HttpConnection behaves very differently and sometimes we would just hang out here for always trying to read something, although enough bytes was available in the buffers of the system (I have seen it with my own eyes; can develop if anyone is interested).  There are other reasons, but this has been the main.

    Previously working solution

    Once we went to the outlets and implemented our own HttpConnection (not me - someone to increase their knowledge in networks of BB did this), our problems have disappeared. In order to reduce the chance of getting stuck forever, we check InputStream.available () of the socket and, if there is always a thread. Sleep() 0, for some small interval (makes me cringe, but well, the user makes a call blocking!) then read just one byte (hoping that there might be something).  It worked for all trackball/touchcpad devices and all kinds of connections (SDM is a separate issue, but we managed)...

    New problem

    ... until we have tested the Storm (5.0 Storm1 and Storm2 - both 5.0 behaved similarly) with all, but connections WiFi disabled.  We have connected WiFi router to the company (I then repeated the test at home with my wireless router and got the same results).  BB browser worked fine.  However, our code began fails on our internal waiting time.  When I connected the phone to the debugger and set up breakpoints, I quickly discovered that InputStream.available () always zero returns! I'm not kidding!

    Our code was constantly diverted waiting, waiting, reading another byte, read a byte...  Even when I changed the way that we on the download time was exceptionally slow (as in "unbearable").

    Worse still - when I tried to wait before making the first longer interval (100ms) read, followed by reading the characters one by one without waiting, the phone started rebooting randomly!

    Request

    Someone has seen something similar?  If so, what was your approach?  I won't sit idly while waiting the answers here - I have a few ideas to try-, but if anyone has been there, it would be nice if you can just push me in the right direction.

    Thanks in advance,

    Arkady.

    Other people have had problems with available().  I'm surprised that you managed to get that you have to be honest, I thought he always returned 0.

    We make socket connections, and always the transmission with a header field that contains prefix length.  So read on the Blackberry is basically

    (a) header to read

    (b) reading of data

    (c) to process the data

    (d) proceed to (a).

    Another user and I had problems recently with http and OS 5.0 using WiFi connections - circuit up to and/or time out when reading the response.  This is the thread

    http://supportforums.BlackBerry.com/T5/Java-development/network-IO-hang-on-OS5/m-p/541487

    I would recommend you change your implementation of socket and detection of data along these kinds of lines, in other words, how data should be read and set up some kind of detection/stall.

    Does make sense?

  • Windows 7 does not print on network printers

    Hello

    I have a network with 3 Windows 7 Machines and 3 network printers, all have static IP addresses.  Printers are all different manufacturers...

    I can't seem to print correctly to all printers of 2 machines, but having problems with the 3rd.

    Used to work, it has stopped working recently.

    Printers will install correctly and appear to be working, but then I get a yellow exclamation on printers.  When I try to print to the printer, the jobs go to the queue printing, and finally, I get a message in the queue - "printing error".  I do not receive a message printer offline."

    I can successfully ping command on the ip addresses of printers, and appropriate answers.

    The only way I am able to use these printers on this particular machine is if I connect to them by another machine of work (shared printers) is not a viable solution, as I then have the machine on that printers are shared from to be able to print.

    I tried a lot of different things; creating a user profile, uninstall and reinstall the printers, unchecking SMTP in the advanced settings of the printers, deleted and then recreated ports, the system restore when printers were working properly, etc.

    I have scanned for viruses, etc.

    When I try to print to a specific printer, the software that is installed to manage the printer will also open as if work goes to print, but it never did and finally error.

    I did a lot of research in the forums and tried almost all outside to reload the operating system.  It is a last resort...

    Any help would be greatly appreciated...

    It is a coup in the water, but on the only other thing I can think of.

    You can reset the print subsystem in its default state by running the following Microsoft Fixit routine--> http://go.microsoft.com/?linkid=9829711

    I suggest you uninstall all software related to printers using the control panel > programs and features before running the Fixit.  Close all open applications before running the Fixit.

    The Fixit allows uninstalling all printers and requires a reboot after the execution.  After the reboot, reinstall using freshly downloaded software from the website of the manufacturer of the printer.

    Details of what the routine Fixit are described here--> http://blogs.technet.com/b/askperf/archive/2012/02/24/microsoft-fixit-for-printing.aspx?Redirected=true&PageIndex=1

  • How can I configure network server in blackberry phones smart blackBerry bold 9700

    How can I configure network server in blackberry bold 9700

    I want that my third-party applications to access the organization intranet using your organization's network.

    When I tried to change the permissions of third-party application, it shows RIMconnections, interactions, data from the user... don't allow, deny permission is there.

    How can I set thesehttp://docs.blackberry.com/en/smartphone_users/deliverables/23895/Third_party_application_connection...

    Yes, if you read the link you posted, these settings are for OS6 and higher devices.

    Not for OS5 and you're on OS5.

  • network i/o control ver 3.0 in vSphere 6.0

    Hello

    I want to know how the network IO control.

    Thus, when allow us control of network IO, it will automatically set type of traffic.

    I wonder if there is a part of the traffic that we do not use, but the actions already defined by activating network control. The actions will count for all if it their types not in use?

    example:

    Traffic Type                                                                                                                  Shares Value

    Traffic of fault tolerance (FT)

    50

    Management traffic

    50

    NFS traffic

    50

    Traffic of the Virtual Machine

    100

    Virtual SAN traffic

    50

    iSCSI traffic

    50

    vMotion traffic

    50

    POS traffic

    50

    Traffic VR

    50

    In this vds, we only use it for the traffic of the Virtual Machine.

    What calculation will happen if congested port for traffic of the virtual machine only happens

    a. 100 / (50 + 50 + 50 + 100 + 50 + 50 + 50 + 50 + 50) * the uplink port speed

    b. 100 / 100 * the uplink port speed (since only machine available in this vDS virtual traffic)

    If (a) correct, it is recommended (best practical or not) to reduce all shares of port to 1 (can not stock value set to 0)?

    Thank you.

    The coup actions only when there is a conflict. So, basically, if you have no traffic currently active for the types of traffic, other traffic of the Virtual Machine, then all the bandwidth will be available for your virtual machines.

    Similarly, when you launch vMotion, which has half as many shares as the VM traffic, your bandwidth will be divided like vMotion 1/3 and 2/3 for the virtual machines.

    Hope that makes sense.

  • Mini iPad won't find new wifi network

    Recently, we got a new router and each of our devices picked up the network very well except for my ipad. When you go into the wifi settings it shows no network at all.

    Hello

    Try a reboot press and hold the power button / stop and menu button hold both down until you see the apple logo.

    It may take 30 seconds

    See you soon

    Brian

    PS make sure that its not on airplane mode.

  • I changed internet service providers and my phone and I have pad connected to the network of again very well, but my Apple TV not!... of ideas?

    MY Apple TV will not pick up wi fi network

    Can you elaborate?

  • How can I connect to a wifi network when I get the message 'safety recommendation' when I try to join?

    I have problems connecting to the WiFi at the hotel, as I have upgraded to iOS 10. When I try to join, I get a message "safety recommendation", and then it does nothing else. Prior to the update of the iOS, it would open an another Popup screen that lets me enter the password for the hotel but is not past with iOS 10. How do go?

    Please read use captives Wi - Fi networks on your iPhone, iPad or iPod touch - Apple Support.

    You may need to deselect Auto-Join and/or auto-connect on some networks in captivity. Otherwise, it may seem to connect for a second or two, only to disconnect immediately, leaving you without the possibility to open a session.

  • iPad connects to the network, is unable to connect to Internet

    Received my new iPad. Automatically, it connects to my home network but does not connect to the Internet. I rebooted the router and the iPad, but the same thing. Same problem with the old iPad. That is what it is?

    Hello. When you go into settings > WiFi and tap the current network, that see you the IP address and other network settings, or they are all empty? You use DHCP to configure?

  • 6 ios10.0.2 iPhone no service/network?

    IPhone 6

    IOS 10.0.2

    16GB

    After that I updated the version of iOS to the latest version from 9 to 10 and 10.0.2 I couldn't get any service in the phone

    no service

    No network

    I tried all the solutions, but did not successfully

    pls help

    Ymah995 wrote:

    IPhone 6

    IOS 10.0.2

    16GB

    After that I updated the version of iOS to the latest version from 9 to 10 and 10.0.2 I couldn't get any service in the phone

    no service

    No network

    I tried all the solutions, but did not successfully

    pls help

    If you do not have cellular service on your phone, then you contact your phone provider and let them know that you can't get their service on your phone.

  • Bluetooth network is not available

    Been trying for a while to use AirDrop on my MacBook Pro (Version OS X El Capitan 10.11.6) and my iPhone 6 s more.

    Just realized today that it might not work because the Bluetooth on the Pro does not work. With each device I try a pairing, it says that the network is not available and that I need to make sure that network access is enabled. Trying to do this, system preferences > network > Bluetooth PAN, I get the same message. I need you to ensure that network access is enabled.

    Someone else had this problem? Any ideas on how to solve it?

    Open system preferences > Bluetooth. Make sure that Bluetooth is enabled.

  • Airport Express, Time Capsule and Airport Express using the same network

    Just moved into a new House and this is what I install.  I have 7 Port wired into the House.

    Closet of network in the Garage:

    • Cable modem
    • Airport Express
    • netgear switch 8 ports
    • It works pretty well.  All my wired connections work fine.  Wireless is quite good but cove not enough of space in my house.

    Think about adding my airport express capsule of time in my office - plugged into one of the hard wired connections.  Who works AND let me wish the WIFI?

    Thank you!

    Yes fine, assuming that first test you the Ethernet port in the office by connecting a computer (with WIFI disabled on the computer) using a spare Ethernet cable runs to ensure that the computer can get a good connection in this way.

    Put the airport Time Capsule to create a wireless network that uses the exact same wireless network name and password in your existing network. Apple installation "Wizard" automatically configure airport Time Capsule in the correct setting of the Bridge Mode for the device.

  • Tips to add a VPN router to my current network configuration

    Dear all

    My apologies if the answer to this question already exists, however, I searched in many situations and none seem to match what I'm after.

    I currently have an ISP modem/router in Bridge mode connected to a TC of Apple which is my wireless router, I have 2 Express airport connected to this acting as the extensors of the range.  I have a VPN service through the MyPrivate network I activate on the desired device when required and everything works fine.

    What I want to do now is to be able to use my AppleTV and burning Amazon via the VPN as well so you need to add a VPN router in the configuration.  I want to finish with 2 wireless networks running together for these devices who need VPN and those who are not.  I don't want to lose the opportunity to extend the network to express it however airport.

    If someone could explain to me if this is possible and if so how do I set up the network.

    Thanks in advance

    Mark

    Basically you would need a device that supports VPN-passthrough and VLANS for your goals of networking. MyPrivate network, seems to be a VPN SSL, which is a user-server configuration. In other words, you install a client VPN on your Mac and you connect to the VPN network MyPrivate server to establish a VPN tunnel.

    Networking two or more "separated", should be using a router that supports VLAN services. Each segment of VIRTUAL local area network, in essence, would be a separate, she either wired or wireless network or a combination of both. This would probably be the 'easiest' part for the installation program.

    Now how combining the two would be the question, and I don't know what would be the best way, or even if it is possible.

    A few thoughts:

    • Use a router that supports VLANS. Create at least two VIRTUAL LAN segments. One for Apple TV & Burns, one for Internet access in general. Connect the device to VPN client host on the first segment, and configure for Internet sharing.
    • Download a dedicated VPN network application that supports hosting of third-party VPN clients, like yours. You would still need a router that supports VLAN to provided separate network segments.
    • Hire a consultant network. Let them know what you the goals of networking and ask them to offer potential solutions.
  • How can I add a password to an existing network of the time capsule?

    How can I add a password to an existing network of the time capsule?

    I guess you mean that time Capsule has already been configured to provide a signal of wireless network, correct?

    Do you mean that the network has no password at all right now... or... do you mean that the network has an existing password, but you want to change the password?

    What operating system are you using on the iMac that you list in your profile?

Maybe you are looking for

  • "Your iCloud account settings are obsolete" notification keeps popping up on my PC Windows 10.

    The notification Windows 10: "your iCloud account settings are outdated." keeps popping up. When I click my email on the notification appears and "Remedy" by logging in. Which does not stop the notification. I opened up to date Apple and he tells me

  • I got a pop up ad appear.

    : I called the number, but I don't give any personal information. While the guy told me the code to download the system, I hung up. Should I be worried? All I have while on the phone was force quit safari, press SHIFT and safari and enter the website

  • HP PAVILION DV6-7006ED battery replacmented failed

    Hello people, so I bougt garage a new battery for my HP PAVILION DV6-7006ED, HP MU06. But after I received the item, I noticed that he was not inside the laptop.  But accoarding to this site, it must be ablte to adapt, or it's me and I got all wrong

  • S220HQL monitor screen cut out.

    I bought an Acer S220HQL monitor and the display on it frequently, but briefly, cutting. Instances of this issue are erratic, but when it happens, it will "blink" black for a second or second half every 10 seconds or more. Sometimes I can spend hours

  • The spare economy is no longer work in windows mail.

    The spare economy is no longer work Original title: Windows Mail.