InputStreamReader hangs on some Nokia

Hi,
I've have very strage problem with my app. Its written form midp1.0 and works fine on all ericsson phones and nokia Midp2.0 phones.
But when running on Nokia midp1.0 phones this line hangs the system:
charsLeft = reader.read(buffer, 0, BUFFER_SIZE);
Does anyone know what may be the reason that "read" hangs the system on midp 1.0 nokias?

Hi sohrab !
Yep, I had a similar problem, but it was not restricted to any platform.
I read data from a localhost Socket with an InputStream and if anything slightly "unexpected" happened, the whole Midlet hung up. In other words, it always had to be the "best case scenario" happening for things to go smoothly.
Here's what I did to increase flexibility:
1) I put the Reader in its own Thread.
2) I have access to some variables outside the thread for status information and error handling. You could make "buffer" visible outside the Reader Thread, for example.
3) The "read" statement is in a "while" loop with a boolean flag as the condition.
This flag can be altered outside the Thread in order to facilitate Thread termination.
4) Any other functionality (such as corresponding Writes are outside of the Thread)
In that way, you can increase flexibility and tolerance of your app a bit...
Hope I could help, kind regards,
Arvind.

Similar Messages

  • Why does firefox 4 hang in some websites, during browsing on that site ? This never happened with previous editions.

    why does firefox 4 hang in some websites, during browsing on that site ? This never happened with previous editions. edit
    Details

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    Create a new profile as a test to check if your current profile is causing the problems.<br />
    See [[Basic Troubleshooting#Make_a_new_profile|Basic Troubleshooting&#58; Make a new profile]]<br />
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins"<br />
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Why does my jdev hang for some time

    Hi,
    I want to know the reason why my jdev 10.1.3.4.0 hang for some time in some scenario's?
    like:
    whenever i start standalone oc4j server, after using the application in server' url, if i go to jdev it will hang for a min or so.
    normal usage also it will hang for some thrice a day or so??
    can any one tell..
    Thanks,

    Hello John,
    Thank you for providing all the information about what is going on with the SuperDrive issue you are experiencing.
    I recommend resetting the System Management Controller (SMC) on your iMac:
    Resetting the SMC for Mac Pro, Intel-based iMac, Intel-based Mac mini, or Intel-based Xserve
    Shut down the computer.
    Unplug the computer's power cord.
    Wait fifteen seconds.
    Attach the computer's power cord.
    Wait five seconds, then press the power button to turn on the computer.
    You can find the full article here:
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/HT3964
    If you are still having trouble with playing audio, I recommend the following article:
    Apple Computers: Troubleshooting the slot-loading SuperDrive
    http://support.apple.com/kb/HT2801
    Thank you for posting in the Apple Support Communities.
    Best,
    Sheila M.

  • HT1430 Hi I am having a problem to delete call log in iPhone 3GS from last 1 month, I have restore iPhone many times but it doesn't works, pls give me a solution , whenever I try to delete call log it's hang for some time.

    Hi I am having a problem to delete call log in iPhone 3GS from last 1 month, I have restore iPhone many times but it doesn't works, pls give me a solution , whenever I try to delete call log it's hang for some time, pls tell me how to restore call delete option

        jsavage9621,
    It pains me to hear about your experience with the Home Phone Connect.  This device usually works seamlessly and is a great alternative to a landline phone.  It sounds like we've done our fair share of work on your account here.  I'm going to go ahead and send you a Private Message so that we can access your account and review any open tickets for you.  I look forward to speaking with you.
    TrevorC_VZW
    Follow us on Twitter @VZWSupport

  • Convert to lower bitrate hangs on some songs

    I recently had to restore an iPod classic. While syncing, I told it to convert all songs to lower bitrate (128 kbps). I've performed  this operation before without mishap, but this time, some songs appear to take MUCH longer to convert (on the order of day for an individual song). At the moment, it has restarted a sync, and it's working on song 5 of 18000. Songs 1-4 went at a normal rate, but song 5 has been working for 2 hours, with my processor (2 core i5 w/ HT) working at 300% on the iTunes process.
    If I remove the song in question (something titled "Intro"), iTunes proceeds along, and hangs on another song in a similar manner. If I uncheck the requirement to convert to lower bitrate, the sync proceeds normally and all of the songs make it onto the iPod.
    Is this a problem with iTunes 11? Or should I be looking at an issue with my individual files? My library is composed of a variety of formats, from 128kbps iTMS files to ALAC CD-rips. If I can avoid it, I'd like to avoid converting the whole library down to 128 or 256kbps AAC and then dealing with duplicates. Any advice?
    Thanks,
    Dustin

    I am experiencing a similar issue with a 5th generation ipod nano.

  • Qosmio G40 hangs and some programs are not responding

    Hello and happy holidays to all.
    Please could i get some help with my G40?
    The pc is hanging and refusing to work.
    Ccreens lock and i get constant messages that the program(s)are not responding.
    I have run all checks i could find, chkdsk in cmd prompt, defrag etc. There are no problems reported.
    I have used system mechanic professional to check registry and everything else, again nothing that is not to be expected was reported.
    I have run every virus and malcious software test.
    I think i would like to restore the pc to factory settings but cannot find any option to do so.
    Any ideas
    stafford

    Hi!
    If you want to restore the notebook to factory settings and you have Vista, you must boot from the recovery disks or press F8 at startup and then choose Repair my Computer and follow the menu instructions.
    If you have Windows XP, you need the recovery disks.
    Before you do this, backup your data first. The HDD will completely erase.
    I think also its the best way to reinstall Windows but you should also check if you have the newest BIOS:
    http://eu.computers.toshiba-europe.com => Support & Downloads => Download Drivers
    Bye

  • Nimbuzz and fring hangs up on nokia e7

    i bought nokia e7 before 2 months. then i was enjoying nimbuzz on my nokia e7. but then i installed fring on my e7. then i tried to call via fring. then it hangs up. so i switched off my phone and restart it. then i tried to open my nimbuzz. it opened then login in.. loading contact.. then it hangs up each time. then i used *#7370# code to format my phone. then i installed nimbuzz from ovi. it gives me same problem. i mean it remains to hang up. then i removed nimbuzz and installed again from get.nimbuzz.com But problem remain same. i got this from while i used fring on my phone. eventhouh i have removed fring. but the problem remain same. and i updated my phone software. i mean i m using the latest software. so i think fring created the prblm on my device. so is there any code (like *#7370#) to format the phone? or is there any trick to solve this problem?
    REGARDS

    add me on********
    I will send u the nimbuzz.
    Moderator Note: Personal details removed. We kindly ask you not to share your email address publicly on this forum.

  • FTP from Solaris 10 to Windows Hangs on some PDF files

    Documents containing images and Eastern European characters have been PDF'd on Windows machines (XP) using various versions of Adobe Acrobat (5 and 8 certainly), and are uploaded to Web Serving apps running on Solaris 10 systems. Retrieval of the PDF of certain of these documents stalls and never completes. Using standard FTP services, the same condition occurs. FTPing the file from Windows to Solaris has no problem. The return journey fails. The original Word documents that were used to create the PDFs transfer without errors. It appears that somethin inside the PDF is causing a problem with the Solaris FTP server. Is this a known problem? Is there a known workaround?

    The FTP from the Solaris system to a Windows system fails - just a simple file transfer. It first manifested itself when trying to retrieve from within a Browser, even when directing the Browser to save the file - both IE6 and Firefox 3.0. Investigation showed the same behavior using Windows FTP and FileZilla from XP systems. The problem appears to be at the Solaris FTP server which just hangs at a certain point through the transfer. Filezilla times out and tries the transfer again. After two failures it abandons the transfer. Browser file transfers just stall. We suspect this is caused by some sequence within the file that affects the server.

  • 9iAS R2 - Windows XP - IE hangs after some time

    Hi,
    We are using Oracle 9iAS on Windows XP client PCs. Application runs fine, however after some time, application hangs and IE session does not respond and we cannot do anything else but to end the ie task from task manager.
    It looks like Application loses connection with the database server and stops responding.
    Whether anyone faced similar problems and have found out any soutions?

    Hi irvine74,
    I am also experiencing the same problem while using Oracle Application Server 10gR2 on Windows 2000 Adv. Server and the clients are using IE on Windows XP.
    1). Would u share ur experience in more detail.
    2). which version of Mozilla is perfect with Windows XP 2002 SP 2.
    3). Either I have to install Mozilla or FireFox.
    PLS describe the Full version of Browser.
    Thanks and Looking Forward.
    Aamer

  • OAS4081 on RH6.2 hangs after some time

    I installed OAS4081 on Redhat6.2. It seems to work fine... for a couple of hours. After some time (ranging from several hours to one day, depending on the activity I think) the listener does not respond anymore. Even a 'telnet <host> 80 - GET /' does not return anything. There are no processes taking up cpu-time. Memory usage (using top) seems ok (150Mb total). The only way to solve, it to 'owsctl stop -s website40', but still some processes remain and need to be killed -9. Then restarting the website makes it ok again.
    Also using 'vmstat 1' I have the impression that free memory is decreasing slowly (max 1Mb/5min). But when the website hangs, there is still enoug free memory (+200Mb).
    If anyone has the same experience, or any tips, please let me know. We would like to use this website in a production environment.
    I use only PL/SQL on an 8.1.5 database on a remote machine.
    Geert
    [email protected]
    P.S. I applied the /pfoo/stat patch as described in the forum elsewhere.

    We haven’t managed to repro this problem yet – we’ve run it on a couple of different machines using 2.5 and tested it repeatedly and can’t get it to fail. So, we have some more questions:
    * What mode are you running in? GPU,CPU or Flash?
    * If GPU, do you only see this hang in GPU mode, or can you reproduce it in CPU or Flash mode?
    * If GPU, what is the date and version number of the NVIDIA GPU driver you is using? (and is it up to date – new drivers can be downloaded here http://www.nvidia.com/Download/index.aspx?lang=en-us)
    * When you hit "Build and Run" are you changing anything? (e.g. editing the filter code, changing modes, changing images etc.)
    * Can you make the images you’re using available to us?
    Thanks
    Bob

  • IPhone3GS screen white and look hang, while some Incoming Call and SMS

    Hi All,
    I don't know what happen on my 1 months old iPhone 3GS. Its hang and Screen became white (nothing can see just white color), while some times in Incoming Call as well as SMS, at the time I can't pick up phone call and can't see sms, because of screen is WHITE.
    Please help me some tips and advice.

    Thanks Phil,
    I feels as strange, sometime happen and sometime may not happy,
    in that situation, I need to press top (lock-unlock) button and after 20 seconds, it would be ok, SMS is ok for that situation, but I've missed some incoming call.

  • HCM form hangs on some machine

    Hi,
    We are having problem that HCM forms hangs only on certain machines. Its spins forever. No standard or custom event can be submited. Exactly same forms from the same location works fine on other machines. it looks like setting on some machines blocking request.
    Does anyone have any ideas of what's wrong?
    Thanks,
    Oleg

    We also did some client trace and on the client machine we see the trace
    15:07:43.879 Got a message from Adobe Reader: log 1: error: Adobe Acrobat Professional: 2010-02-15T20:07:43.859Z: Error installing message handler: message:HostContainerDisclosurePolicy is not defined fileName:Doc:Init lineNumber:769 stack:RegisterMessageHandler()@Doc:Init:769 RegisterMessageHandler()@:0 @XFA:data[0]:ready:13 name:ReferenceError 2: 3:
    on the working machine instead of this we see
    15:12:27.925 Got a message from Adobe Reader: zciReady 1: 2: 3:
    also then on broken one we see
    15:07:44.631 onError: number: 0 description: message: Target document not disclosed. name: MessageDocNotDisclosedError
    Any idea what might cause this kind if error on some machines.
    Thanks,
    Oleg
    Edited by: Oleg Sokolov on Feb 15, 2010 9:17 PM

  • Why does my Mac hang at some point? The startup is slower than usual and sometime's the graphic glitches occur. please help!

    My mountain lion OS hangs like windows does and sumtimes have visual glitches like the drop down menu's are half visible. Sometimes it slows down at every point. And its just 2 months old. Please help.

    Isolating Issues
    Do a backup, using either Time Machine or a cloning program, to ensure files/data can be recovered. Two backups are better than one.
    Try a restart.
    Run Disk Utility/Repair Permissions. Run until it reports no errors. If there is a recurring error, see the article on what permission errors can be ignored.
    Disk Utility                                                       
    Disk Utility Repair Permissions You Can Safely Ignore
    Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later.
    Isolating an issue by using another user account
    If the problem is still there, try booting into the Safe Mode.  Shut down the computer and then power it back up. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart. For each disable/delete, you will need to restart if you don't do them all at once.
    Safe Mode
    Safe Mode - About
    General information.
    Isolating issues in Mac OS X
    Troubleshooting Permission Issues
    Step by Step to Fix Your Mac
    Upgrade Nightmares  

  • Firefox 3.6.3 hangs after some use. Links w/in home pg. work but dropdown menus don't. must use Cntrl/Alt/Del to get out of pg.

    Firefox 3.6.3 hangs up after some use. Can't find any specific site or action that causes this. Links w/in page and menu's such as most visited, latest headlines, and links like utube, google continue to work. Drop down menus (i.e. File, Edit, Tools, Help)/ will not open and I must use Alt+Cntrl+Del to get out of the page.
    == This happened ==
    Every time Firefox opened
    == 1 month

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the ''Safe mode'' start window.
    You have to close and restart Firefox after each change via "File > Exit" (on Mac: "Firefox > Quit")

  • Why can some Nokia N97s be updated and can't be up...

    I was wondering what does the product code have anything to do with if I can or I cant update my phone? Is there any way to update it myself without having to take it to a Nokia store which I do not have any near me.
    Thanks

    Hi, read this thread and click the links and read those too. This will give you some information and some examples of how it works. /t5/Eseries-Devices-and/Why-I-can-not-update-my-E72-new-firmware/td-p/672223
    If there are no updates for you and you don't wanna take it to a Nokia care point, you will have to wait.

Maybe you are looking for

  • Opening a jsp from another server(Weblogic) from webdynpro running on WAS

    hi,   I have an application deployed on weblogic and want that when i click on a link in webdynpro it should open my jsp page in a new window and i should be able to send some values to it also.   there is one way i know of, that is like this:- IWDWi

  • Mac keeps restarting after being asleep

    Safe mode tried and fine,reinstall and back up completed and yet still getting a restart after screen saver has been activated. I have been onto Apple who are none the wiser after repair disk etc, still no luck! Please help!?

  • Zen v plus connection prob

    I had bought zenv plus mp3 player yesterday. 1. Installed all the software in the cd. 2. Then i connected my mp3 player to the system usb port not the hub. 3. In 6 hours it charged only /4 part of the battery.( why is it taking so long ) 4. event tho

  • Possible to "grab" a video clip from a web page?

    I am listening to a video clip (spoken by a favorite writer of mine, http://anon.salon.speedera.net/anon.salon/mp3s/nin1.mp3 ) and I would like to get it, have it, and put it in my hard drive to listen to with a single click. Is this possible? To "gr

  • Dynamic security group

    I need to create a security group that contains all the enabled users in AD. This group needs to be dynamic so that when a user is disabled it is automatically removed from it Thanks