Another problem with socket: socket does not receive the although it is ready

Hello!

I read a lot of discussion about the casings, but I wasn't able to find a working solution:

I know that RIM has changed many things in this regard in the OS 5.0, but I would like to improve my old 4.7 code so that it works on both BONES.

I have a socket connection between my desktop pc and my BlackBerry storm (and "BOLD"). It works fine on 4.7 well everything what socket sends is mixed to the top when it arrives. That is not the real problem, but if someone has a tip for me - would be great!

For this I use wap2.

5.0 it sends all clear (large), but my code reception does not work. He knows what data happens by checking. the InputReaderStream ready(). I think it works, it's always a good time. Then, I'm reading by. read(). Still, it blocks and waits while there is something. But it does start to read something (!) until the connection is closed by the other side (my desktop pc).

Can you give me a clue what I'm doing wrong?

This only happens on the device, not in the Simulator!

That's what I tried:

-with the help of a DataInputStream (I wasn't able to find a difference)

-using another overload of. read()

P.S. Get rid of InputStreamReader and use the InputStream.read (void) method directly to read a byte at a time.

Tags: BlackBerry Developers

Similar Questions

  • I have a problem with my laptop does not connect to the internet. It connects to our wireless very well, but it doesn't have an internet connection.

    I have a problem with my laptop does not connect to the internet. It connects to our wireless very well, but it doesn't have an internet connection. It connects to other networks wifi very well with Internet access, is that the wireless in my house what it connects to. When I diagnose the problem, it says "Cannot communicate with DNS server (208.67.222.222)", and then under that it says: "languished network diagnostics remote hosts, but had not received a response." It connects to the Internet through an ethernet cable, but it is rather annoying pulling the cable autour. I currently have Windows Vista Home Premium. Thank you!

    original title: Internet connectivity problem

    Hello

    Now, you may need to contact the support of Panda Internet Security centre to change the settings so that wireless is enabled through it.

    Support link: http://www.pandasecurity.com/homeusers/support/

  • When I print, the photo viewer rises and am OBLIGED to print from that program. The problem is, that it does not work - the colors are inverted and incorrect. All attempts to correct in the color management failed.

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • When I print, the photo viewer rises and am OBLIGED to print from that program.  The problem is, that it does not work - the colors are inverted and incorrect.  All attempts to correct in the color management failed.  Some images are color reversed negatively. and others not when the print window picture viewer options are increasing. and every time I print a normal color on the picture he reverse out come.
    • Recent changes to your computer
    • What you have already tried to solve the problem

    didn't work :/

    ==============================================
    It may be interesting to try to remove all color profiles in the color management.

    Windows 7 - change color management settings
    http://Windows.Microsoft.com/en-us/Windows7/change-color-management-settings

    If this does not work... update or just reinstall your printer driver may be worth a try.

    Good luck...

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • EX 60 does not receive the CUCM phonebook directory

    Cisco EX60 is registered on the CUCM, but it does not receive the phone book. IP phones receive the directory.

    Cisco Services for user data is active and running.

    CUCM system version: 9.1.1.20000 - 5

    EX60 software version: TC6.3.1.f768649

    You must mention the URL of the directory on your EX60 in order to extract the CUCM directory.

    EX60 login go to Configuration > server directory > URL and mention of the URL in this format:

    https://: 8443/cucm-uds/users

    First, you can test by opening this URL in a browser to verify if it is correct.

  • Problems with outlook express, do not receive or send,

    Problem 1: receive error host 'pop.gmail.com' messages could not be found. Check the name of the server. server pop.gmail.com protocol POP3, port 995, secure Yes (SSL), socket error 11001 error # ox 800CCCoD and smtp.gmail.com, port 465 SMTP Protocol, secure SSL, 11001 socket error, error # 0x800CCCoD, firewall does not help send work. Internet explorer opens to the home page, click Favorites or another message search gets can not display the page, internet Explorer only works in safe mode. I ran several different viruses, antimalware programs that so-called and correction. I got to the point where they come back with 0 errors. Have a single program of virus on the system right now. Windows XP Edition family, internet explorer, version 8. Previously a number of computer virus and spyware. Hope that those who are eliminated.  He had spyware who have attempted to enter the passwords, credit card information above. Now outlook express opens with the sign - in window request access code. Never had to do before. The user does not remember the original codes.

    Problem 2:

    Another problem existed before the problem mentioned above: 2 computer user, has clearwire.net for internet service.

    This user 2 uses a computer with an internet connection Wireless USB should be unplugged and reconnected every time they restart windows.

    Another computer, # 1, in their home network uses also a linksys USB to connect to clearwire wireless adapter and this computer should not be plugged and unplugged to connect to the internet.

    y at - it a simple way to solve this problem for daily hassle for the user of the computer 2 so they don't have to unplug & plug in the wireless USB adapter.

    Thank you much for the help

    What on earth does Internet Explorer have to do with sending & receiving mail in Outlook Express? It is not at all related.
     
    1: enable POP in your Gmail account:
    http://mail.Google.com/support/bin/answer.py?answer=13273
     
    2: configuration of your e-mail to Gmail client: Outlook Express and Outlook 2002:
    http://mail.Google.com/support/bin/answer.py?answer=13276&topic=1556 
     
    Configure your Outlook Express client to work with Gmail:
    http://mail.Google.com/support/bin/answer.py?answer=76147
  • I can't access my external hard drive with windows 7. How can I get my music out of her files? My pc with xp operating system can access it without problem. but my new pc with windows 7 does not see the hard drive.

    I bought a new pc to replace my old hp 14 months as the motherboard fried in. I bought a case of disk external hard to rocketfish to put the hard drive of my Windows 7 pc in. burned does not see the hard drive. my old pc with xp can access all the items on the external hard drive.

    Check that the drive appears in Device Manager.

    If so, go to disk management and assign a drive letter.

  • BlackBerry blackBerry 10 does not receive the emails from the exchange server

    Hello

    We have the problem that peripheral Blackberry doesn't synchronize with the server exchange since last week. This is valid for two (classic / Z30) among the four devices, the other ones (classic / Z10) are functioning normally. All have the 10.3.2.2474 version.

    I rebooted the unit and removed and rebuilt the e-mail account on the BB, but it doesn't help. Account settings are ok (no messages during installation). The device connects to the exchange server (for example, I can see the account's e-mail records in the options) and I can also send mails. But I don't get e-mails, calendar items, contacts, etc.

    Any ideas?

    Thank you

    Axel

    Hello

    I'm not 100% sure, but I think that there is a restart due to the update of the BONE last week. I don't know if this has coincided with the problem.

    I reloaded the OS yesterday via the LINK. It seemed to me that does not solve the problem because I have not yet received mail for a while. However, this morning the mails were back.

  • Pavilion dv6: Notebook does not receive the signal of 5 GHz

    Hi, recently I bought a new modem router with the capacity of 5 GHz. After the establishment of the net, my laptop does not have the SSID. Other devices receive the SSID and connect to. How can I check, discover and recognize the net working at 5 GHz

    Hello:

    Most likely your laptop is only a single wireless card band (2.4 GHz) (model ending in bgn suffix).

    Virtually no consumer class computer laptop HP made at the time came with a wireless card dual band (model ending in abgn or agn suffix).

    Even those made today... most of them still have cards of single band.

  • Importing APEX app with PL/SQL does not change the id as requested app

    Oracle DB XE 11 GR 1 material

    APEX 4.2.2

    RHEL 6.3

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

    The following code segment any an APEX application which has been exported successfully.  However, even when given a 'new' id of the application, the 'old' within the export application id is still used.

    What could be wrong? In other words, how can I make sure that the 'new' id of the application is used and it overrides the 'old' id of the application that comes with the APEX app export file?

    declare...

    wwv_flow_api.set_security_group_id (p_security_group_id = > v_secgrp_id);
    apex_application_install.set_application_id (t_new_app);  # does not change the new app app ID id
    ....

    exception
    while others
    .....
    end;
    /

    @APEX_export.sql;

    commit;

    Thank you.

    It turns out that the code above (6) works very well.  My development environment has a problem with the workspace is not found.  Tried the code in a test environment and it worked.

    Thank you.

  • I'm having a problem with the email of comdast especially for the outgoing with SMPT. Does not recognize the user name or password. Erased and the exact same re-admitted and do a little work and now 2 - 3 times a week same recurrs either on iphone, ipad a

    In the last 6 months + / _ my Comcast email not send mail as the smpt said that the name and the password not recognized. I can delete them both and then re-enter on my iphone and ipad, imac and it works again. It happens now 2 or 3 times each week. Comcast.com my website does not do this and can receive and send email without problem. Their support, explains what's happening with many of their apple using the client.

    All the answers in the group. Has not happened before. This could be with apple's IOS dates as google is not not the case.

    pdeyedoc

    You should probably get a different email.

    I know this isn't much of an answer or even very applicable but everyone I know eventually loses their emails from mobile provider or cable operator sends cause unless you stick with them forever, your account is deleted after you leave them.

    Gmail, yahoo, rocket mail, and even AOL don't do that.

  • 2542: problem with cartridge - mail does not

    I have a problem with printing (scratches on print). Contacted HP via support form and received a mail that I get a new cartridge. So far so good.

    In the HP E-mail additional requests for information (address details), replying to the email does not work, and there is also no way to share the info with HP. How to proceed?

    Hello

    I've included a list of country phone numbers support in the link below.

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

  • Having a problem with my page does not stop scrolling?

    Hi, I am very new to Muse and have been plugging away learning and design. I came across a new issue where when I go to preview my site, that my pages are not self limiting the amount of content I have on her page, if that makes sense.

    On one page, I have a picture of style small hovering with a small text below, does not come close taking over my office around, but there are still some amount scroll down on the page. On another page I have an image gallery and if you scroll down it just guard putting a space more photos below and you can scroll basically forever. Any contributions to this issue would be greatly appreciated.

    Thanks, Ben

    That's great! An easy solution: simply omit the widget!

    I paid for the widgets (like others) that presented of problems... when all else fails, stick to what provides the Muse. Frustrating at times, but they do not work.

    (Can also be useful to meet with the developer and asking for a solution/explanation)

  • I have problems with my DNS does not. It happens every day.

    I'm having problems recently with the DNS does not.  However, it is not a constant problem.  I have access to internet, and then a few hours later will have no access.  It went back and just 3 times in more than a few days., I do not have anything to temporarily solve the problem, it only happens on its own. This occurs regardless wireless or direct.  Thank you...

    original title: DNS is not responding

    Hello


    1. what operating system is installed on the computer?
    2. were there any changes (hardware or software) to the computer before the show?

    Method 1: Perform the steps mentioned below and see if the problem persists.
    a: click on the button "Start".
    b. in the search box, type "invite."
    c. in the list of results, right-click Guest, and then click run as administrator. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    d. at the command prompt, type ipconfig/flushdns.
     
    Method 2: Click on the link below and see if the problem occurs.
     
    Method 3: Click on the link below and see if the problem resolves.
     

    Hope this information helps.
  • Problem with complex schema does not

    Hello

    I created the fairly complicated pattern: http://i.imgur.com/Wt2Bo7w.png

    And when I'm playing with him (some pathfinder to the cutting edge etc.) Illustrator is "not responding" problem and after a few minutes it comes back to life (with process finished). It's weird because my machine is pretty good and Illustrator, while that "does not" use only 30% of my CPU and about 6 GB of ram (I've got 16 GB). Is there a way to make it faster? What would you recommend?

    Try using fill patterns.

    Or try to use overlays raster graphics

  • Problem with Photoshop CC does not work after update

    I downloaded and installed Photoshop CC yesterday and worked with it without any problems. This morning, the cloud said that there is an update

    So I installed which.

    Now, the program will open but it does not meet anything, I can't access any of the Menus or load an image. The only way I can close

    is the hit Control-Alt-Delete.

    What can I do to fix this?

    David

    Hi dneely101,

    Please see the Ko: http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html .

    Kind regards

    Romit Sinha

Maybe you are looking for