datagramconnection/messageconnection receive() does not block?

Hi, I wrote a SMS using JDE4.7 listener, the listener is in its own thread.  This runs in the simulators for 9530 (OS4.7), 8310 (OS4.5) and 8330 (OS4.3) seems to be very good.  However, when deploying on a live device, it seems work correctly for the 9530 (asbl, 4.7.0.75).

I have attached the live 8310 (att, OS4.5.0.110) and 8330 (asbl, OS4.3.0.127) to my debugger, and when starting the listening thread, the connection.receive () method does not seem to hang at all, it returns immediately with a "String index out of range:-2" exception.  I have also compiled this same code under JDE4.3, which does not seem to make a difference.

In which case it is important, the 9530 and 8330 are on BIS, the 8310 is on BES with rather strict policies.

I tried both types of connections below, the two work very well for the 9530, but these two don't for curves. Any help would be appreciated, I've been hitting my head against the wall for the last 2 weeks trying to find a solution.

dgConnection = (DatagramConnection)Connector.open("sms://:0");
Datagram datagram = dgConnection.newDatagram( dgConnection.getMaximumLength() );
dgConnection.receive( datagram );
String address = new String( datagram.getAddress() );
dgConnection.close();
msgConnection = (MessageConnection)Connector.open("sms://:0");
Message message = msgConnection.receive();
String address = message.getAddress();
msgConnection.close();

I saw this, and I think that the exception that you receive is the result of a bug in the firewall application. He tries to instantiate a "Permissions" dialog box so that the user can approve the use of the SMS port.

Check the permissions of application for your device - I bet that 'phone' is set to 'request' or 'decline '. Change to 'Allow' and your problem should go away.

Tags: BlackBerry Developers

Similar Questions

  • How can I make sure that any firewalls (versions of software or hardware) does not block port 443 to access?

    How can I make sure that any firewalls (versions of software or hardware) does not block port 443 to access?

    Hi Anna_753,

    Usually, you would receive messages from any program if it is impossible to access the port.

    If you want to check if the port is accessible, then you will need to check the firewall settings.

    Each firewall has its own parameters for ports of the computer.

  • I get multiple copies of an e-mail sent 5 / 2 09:26, and it does not block receipt of all subsequent emails. How can I fix it?

    I get multiple copies of an e-mail sent 5 / 2 09:26, and it does not block receipt of all subsequent emails. How can I fix it?

    Use the webmail and sign in to your account and delete this mail

  • Citrix receiver does not work on ver 30.0.

    Receiver Citrix (ICA client) does not work on ver 30.0. Request do not start when you click citrix links in the website of the company. Worked fine until worm 29.1. Changed the version back to worm 29.1 works fine now.

    Three suggestions based on the experience of other users with Firefox 30 Citrix:

    (1) change the permissions of the plugin.

    Firefox 30 past most of the plugins "Always turned on" - allowing any site to use - to "ask to activate" - requiring sites to get your permission to use them. For some plugins, this setting is not working properly and you need to restore.

    To do this, open the page modules using either:

    • CTRL + SHIFT + a
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click on Plugins. Search for Citrix and change to ' activate ' "always enable". Then try Citrix again in a new window (or exit and restart Firefox).

    See: updated for Firefox 30.0 now Citrix Receiver does not open.

    (2) If you have an older version of the plugin, you may need to be updated.

    See: Firefox 30 will not organize the Application of ICA when you use Citrix receiver 4

    (3) check that Citrix content using the desired plugin/application.

    See: use Citrix Receiver with Firefox to connect to the VDI 30, he fails.

  • I use gmail and some emails that I receive does not show the graphic or image only a small graphic icon.

    I use gmail for my email. Some of the emails that I receive does not show the graphic or photo. I can see the photo/image in Internet Explorer, and when I hit the reply in Firefox. This started happening about 5 months ago. I used to be able to view e-mails without any problems... I checked all options and have display images enabled. This happens with every email from a yahoo group and a few other emails as well. I have the latest version of Firefox. I tried uninstallng and reinstall firefox... no change.

    This has happened

    Each time Firefox opened

    == There are about 5 momths

    Thank you.. I ended up working... followed all your advice and the closure of all add-ons... are working! r

    Better gmail also seems to be a problem

    I appreciate your help.

  • Windows Mail automatic send/receive does not

    Windows Mail in Vista Business.  Automatic send/receive does not work, but when I manually click on the send/receive button, it works very well.  All I can do to fix this?  Thank you.

    Brian,

    Found the problem... the setting 'include this account... '. "became somehow unchecked.  I have re-selected it, and everything seems fine.

    Thanks for your help.

    In fact, I'm a little embarrassed that this little obvious problem escaped my attention.  :)

  • Smartphones from blackBerry Bold 9900 stole, but it does not block the service provider

    Hello

    My phone got stolen, but it does not block the service provider. All they did was disable the sim card.

    BlackBerry protect now cant work because the phone cannot connect to the network.

    Don't know what else to do

    It is each carrier as they will blacklist the device or simply to block the SIM card.  The good news is that no one can rack up charges on your account using your old phone.  Now when you get a new, open a BlackBerry Protect session and cancel the old phone.  You can then connect your new phone and restore your contacts.

    I hope that helps you.

  • I set up the familysafety.live and it does not block anything.

    I set up the familysafety.live and it does not block anything.  Help

    Hello

    Were there any changes made on the computer before the show?

    I suggest you to refer to the article and see if it helps:

    Protect your kids with parental controls

    http://Windows.Microsoft.com/VI-VN/Windows7/protecting-your-kids-with-family-safety

    Check out the links for more information:

    What can I control with Parental controls?

    http://Windows.Microsoft.com/VI-VN/Windows7/what-can-I-control-with-parental-controls

    Video: Use Parental controls

    http://Windows.Microsoft.com/VI-VN/Windows7/help/videos/using-parental-controls

  • Muse in the preview is not working. Doesn't have a prior view. Cannot establish a connection over HTTP. How can I fix? Antivirus protection does not block. Firewall disabled

    Muse in the preview is not working. Doesn't have a prior view. Cannot establish a connection over HTTP. How can I fix? Antivirus protection does not block. Firewall disabled

    Sorry I forgot to paste the link in the previous answer,

    Here's the link - Preview fails in muse

    Kind regards

    _Ankush

  • Even though I have my Windows Mail spam set to the highest level, I continue to receive unwanted emails. For some reason any Windows Mail does not block them. How can I fix it?

    I have my blocker spam Windows Mail, the highest value which means I should only receive emails from my contacts.  Despite this, I continue to receive unwanted emails.  This has been so since I've upgraded to Windows 7.  I even went now install a machine program washing 'spam' which was a disaster as well.  I get about 4-5 spam emails a day - usually when I start the morning.

    How can I solve this problem?

    What Windows Mail in Vista or Windows Live Mail in Win7? If it is a POP3 account, you can filter your messages by using message rules. This is for Outlook Express, but it works the same either of the programs.

    Start with the only rule of AddressBook and you receive a message that you want people not in your address book (E-mail from companies, bills, your ISP, etc), you can add them to the rule.

    Box 1 - Where the From line contains people {check it out}

    Box 2 - Check: delete it & stop processing more rules if you want messages not in the address book to go to deleted items, or you can create a spam folder and direct them here.

    You can choose to delete the server, but be careful because you never have messages downloaded to any folder, if you choose this option.

    Box 3 - Click on the blue words contains people

    Click on the first address to select it. Scroll to the end and hold down the SHIFT key while you click the last address. This will highlight all. Right-click on it and click on from the menu that appears.

    Now, click Options and choose: Message * contains no of * the people below in the top of the page Options area, then choose: Message corresponds to one of the people below in the background Options box.

    OK your way out of the new rule.

    Now, only the addresses that you entered will be uploaded to your Inbox. You won't see other emails.

    Remember, if you add a person to your address book, you must add to the rule. It will not automatically be added.

    Be sure to see these links for more options.

    A few tips:
    http://insideoe.tomsterdam.com/tips/rules.htm

    Message rules does not? :
    http://www.insideoe.com/FAQs/why.htm#rules

  • I used some weatherstripping on Hotmail and I believe they receive one more undesirable than before and it does not block the daily junk sent me

    I am daily using my email address and the new scan and block junk e-mail, but every day it is getting worse and even junk is done through WHY? Every day increases the amount of junk I don't know and don't understand why the scanning does not work

    Submit all Hotmail queries on the forum right here:

    Windows Live Solution Center
    http://windowslivehelp.com/

  • Updated for Firefox 30.0 now Citrix Receiver does not open

    I am to discover that anyone who has updated recent firefox 30.0 is not able to open the Citrix Receiver. Opens the window of the application, she will not open the citrix receiver to open FM. I have several people that has updated and can not open FM. Me too, has just updated today to 30.0 and now does not open FM earlier in the morning, I was able to open and use Firefox 29,0/FM.

    I disabled all plugins... He's going to open a pop window to 'Open with' Citrix Receiver (default). And yes - it will open our applications now.
    So now...
    Firefox or citrix must adapt. Please fix so that I don't have to disable plugins app of 200 users. Thank you

  • Qosmio G30-195 - infrared receiver does not work after sleep

    Hi all!

    I have a problem on my laptop after Exchange of service of the motherboard.
    Once I booted Windows (Microsoft eHome transceiver) IR receiver works well in all programs, but when the system resumes from sleep mode, the IR receiver unloads from memory and can not find the search for material.

    If the remote control does not work until I have to restart Windows. Windows XP SP2 and Windows XP MCE behave the same. Before the exchange of motherboard I didn't you have a problem.

    What can I do with this?

    > What can I do with this?
    Contact service again and tell them the same thing. They need to know why this happen.

    By the way: you can use other USB devices connected after waking from sleep mode?

  • G50-30 Windows 8 parental does not block websites

    I just bought a laptop Lenovo G50-30 for my child, but after that I set up with parental controls, I discovered that Microsoft's parental control blocks all websites on my child's account. I tried to create multiple children accounts; I tried to create an account for local child; I tried the factory reset. and I tried troubleshooting Microsoft fix. None of them solved the problem. My assumption is that a third-party program is breaking the parental control of Microsoft, but I can't know which program is the cause. I uninstalled Mcafee and disabled other programs to run, but it does not solve the problem. A that someone has experienced this problem and found a solution?

    For someone who is interested, I discovered that McAfee LiveSafe has a parental control feature Family Safety of this Microsoft ignores. Once I enabled it worked fine. I didn't use good McAfee and I had previously uninstalled without solving the problem, so this time I tried to uninstall it and then ran McAfee product removal tool and then parental control of Microsoft has worked well.

  • Family safety does not block the google chrome

    Sir/Madam,

    Recently, we found that the Windows parental control does not on Google Chrome, especially when using https. I'm trying to block Facebook, Twitter and Youtube, but these sites are working when using https rather than http. This issue is with Google Chrome. Please help me solve this problem.
    Kind regards
    Jameel Basha.

    Hello

    I would say to contact Google Chrome support team for assistance.

    http://productforums.Google.com/Forum/#! Forum/chrome

Maybe you are looking for

  • OFFICE 2007 HOME & STUDENT WITH WORKS COMPATIBILITY 9

    I run Word 2003, Works database, spreadsheet Works and money, in Dell OEM Works VERSION 9.I'll buy Office 2007 Home and student. Should I uninstall all programs of works before installing Office 2007? I want to keep the money program.

  • HP Laserjet CP1025nw: wireless printer

    My Hp Laserjet CP 1025nw does not recognize the modem.

  • WoL - use Inband and OOB?

    Hi all My client uses UCSM 2.2 and we want to enable the WoL feature. I understand that now, we can use mgmt OOB or inband what IP that are attached to the service profile. From the network point of view, I would have preferred using band when possib

  • TV Online

    As dori will rog frumos its my ajutati his instalez o aplicatie sau its imi spuneti UN site unde pot vedea tvonline fara its fie nevoie his instalez sopcast! Going multumesc

  • Cannot install Lightroom CC on my desk

    I have a monthly subscription of creative cloud.I have Lightroom CC on my laptop but cannot install it on my desktop despite numerous attempts.I have a previous v5.7 Lightroom on my desktop but it is unable to read my Olympus ORW files or convert the