URLConnection.getInputStream()  not reading the full HTML

I need code to read a html file after posting a request. The code is as follows:
URLConnection connection = url.openConnection();
connection.setDoInput( true );
connection.connect();
BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
if(in.equals(null)){
throw new IOException();
while((inputLine = in.readLine()) != null){
System.out.println("line is: " + inputLine);
Sometimes it works fine. Sometimes it can not read full content.(may be the low network). but i view the source in my browser, I can find it just fine.
Any ideas? Has anyone encountered this kind of problem?

my code is same for reading input from a servlet, but it sometimes get and inputstream, sometimes, don't, it always can not read the second one. mine code is inside applet and chat with other applet thourgh a servlet. The server side does write message out.
Any insight how to debug this, I am totally out!!

Similar Messages

  • Unable to open and read the full sms on n95 8gb

    Hi,
    after i upgraded the latest firmware of n95 8gb i am facing wiered problems.
    now whenever i recieve a sms i am able to see the sms in my inbox but when i try to open it to read the full message it doesnt do anything.
    tried all options but no luck.
    Kindly help me..
    Rakesh

    hi, now problem is resolved.
    1. i had just removed all my alarms.
    2. set the time zone again
    3. took out the sim card and put it again
    4. and also ensured that i have proper settings for messages i.e message centre no. n all.
    not sure what made it to work but finally its working.
    Is your time zone and time set properly after you upgraded the firmware ?

  • Help required please. "Itunes can not read the contents of my iphone"

    Greetings all,
    I know this question has been asked before and I apologize for asking again but all the solutions provided don't seam to work for me, can anyone help me please.
    I am receving the message: "Itunes can not read the contents of the iPhone. Go to the summary tab In iPhone Preferences and click restore torestore this Iphone to factory settings".
    Now a little about my iphone, Itunes and my laptop and what steps i havealready tried.
    I have an iPhone 4 running software 5.0
    My itunes version is 10.5.0.142
    I know these are not the most up to date versions but I have had this issue for almost 3 months now and updating the software back then was the first step I tried. I don’t believe updating to the latest will fix this issue as updating the last two times did nothing.
    Every so often after starting Itunes, The program will stop responding and will require the three finger death kill (CTRL, ALT, DELETE) to open task manager to end the task of Itunes. Once it shuts down, I restart the iTunes and it runs smoothly, apart from not reading my iPhone.
    When I run a diagnostic in itunes under the help tab, I get these fail messages:
    Network Connectivity test: Secure link to Itunes store fail
    Device connectivity test: Under support services: Itunes helper is not running. And under ports: No iPod, iPhone or iPad found.
    Device Sync test: No iPod touch, iPhone or iPad found.
    *See below for full diagnostic report*
    I have restored back to factory settings twice.
    I have shut down and restarted both my iPhone and laptop.
    I am running Windows 7 32-bit on my laptop.
    I am using ZoneAlarm as my fire wall, and have been disabling it when syncing my iPhone to prevent other error messages.
    The iPhone is plugged into a genuine Iphone USB cable and is plugged into a USB port not a USB hub on my laptop, I have tried plugging it into all 4 USB ports and this issue still persist. The Cable is less then 5 months old, is not frayed or damaged in any way, have also borrowed 2 other cables from friends and still the same issue.
    The iPhone does not even come up in windows explorer as a digital camera.
    The iPhone is NOT jailbroken
    I do not live close to a so called genius bar, however I have made the journey to them on 3 separate occasions last year when I first received my iPhone for a different issue, the so called genius's could not fix the problem so they just gave me a new (refurbished) iPhone, which did not extend my warranty. I will not be taking the iPhone back to them as I believe they can not resolve many issues, this is why I am reaching out to the power of the people in the wider apple community.
    I have read in other forums about ifunbox and other programs for jail broken iPhones to isolate folders “iTunesDB” and "iTunesCDB" and delete them. If this is the issue is there a way to access these files through windows explorer as my iphone is not jailbroken.
    I hope I have provided enough information and someone can help me fix this issue. If I have left anything out, please let me know. I thank everyone in advance for your patience and support.
    Thanks
    Hoggie27
    FULL DIAGNOSITC REPORT
    Microsoft Windows 7 Home Premium Edition Service Pack 1 (Build 7601)
    Hewlett-Packard HP Pavilion dv6 Notebook PC
    iTunes 10.5.0.142
    QuickTime not available
    FairPlay 1.13.35
    Apple Application Support 2.1.5
    iPod Updater Library 10.0d2
    CD Driver 2.2.0.1
    CD Driver DLL 2.1.1.1
    Apple Mobile Device 4.0.0.96
    Apple Mobile Device Driver 1.57.0.0
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 1.9.3.494
    Gracenote MusicID 1.9.3.106
    Gracenote Submit 1.9.3.136
    Gracenote DSP 1.9.3.44
    iTunes Serial Number 001BAD14XXXXEA78
    Current user is an administrator.
    The current local date and time is 2011-11-16 10:04:53.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is supported.
    Core Media is supported.
    Video Display Information
    NVIDIA, NVIDIA GeForce GT 230M 
    **** External Plug-ins Information ****
    No external plug-ins installed.
    The drive H: Vodafone  USB SCSI CD-ROM Rev  USB is a USB 1 device.
    **** Network Connectivity Tests ****
    Network Adapter Information
    Adapter Name:    {97524DB0-B9DC-41DB-8AFA-0CE6938F7C95}
    Description:    PC
    IP Address:    (HAS BEEN REMOVED FOR PERSONAL REASONS)
    Subnet Mask:    255.255.255.255
    Default Gateway:    0.0.0.0
    DHCP Enabled:    No
    DHCP Server:   
    Lease Obtained:    Thu Jan 01 11:00:00 1970
    Lease Expires:    Thu Jan 01 11:00:00 1970
    DNS Servers:    10.143.147.147
            10.143.147.148
    Adapter Name:    {BFF0456E-DE42-4FEF-B1FA-1EA1C5EDEE42}
    Description:    Vodafone Mobile Broadband Network Adapter (ZTE)
    IP Address:    0.0.0.0
    Subnet Mask:    0.0.0.0
    Default Gateway:    0.0.0.0
    DHCP Enabled:    No
    DHCP Server:   
    Lease Obtained:    Thu Jan 01 11:00:00 1970
    Lease Expires:    Thu Jan 01 11:00:00 1970
    DNS Servers:   
    Adapter Name:    {D5511FFD-0CA8-4F62-B3CA-E90384FFCD03}
    Description:    Broadcom 43225 802.11b/g/n
    IP Address:    0.0.0.0
    Subnet Mask:    0.0.0.0
    Default Gateway:    0.0.0.0
    DHCP Enabled:    Yes
    DHCP Server:   
    Lease Obtained:    Thu Jan 01 11:00:00 1970
    Lease Expires:    Thu Jan 01 11:00:00 1970
    DNS Servers:   
    Active Connection:    PC
    Connected:    Yes
    Online:        Yes
    Using Modem:    Yes
    Using LAN:    No
    Using Proxy:    No
    SSL 3.0 Support:    Enabled
    TLS 1.0 Support:    Enabled
    Firewall Information
    Windows Firewall is on.
    iTunes is NOT enabled in Windows Firewall.
    ZoneAlarm Firewall is installed.
    Connection attempt to Apple web site was successful.
    Connection attempt to browsing iTunes Store was successful.
    Connection attempt to purchasing from iTunes Store was successful.
    Connection attempt to iPhone activation server was successful.
    Connection attempt to firmware update server was unsuccessful.
    The network connection timed out.
    Connection attempt to Gracenote server was successful.
    Last successful iTunes Store access was 2011-11-16 09:59:57.
    **** CD/DVD Drive Tests ****
    LowerFilters: Afc (1.0.0.2),
    UpperFilters: GEARAspiWDM (2.2.0.1),
    F: hp CDDVDW TS-L633N, Rev 0300
    Drive is empty.
    **** Device Connectivity Tests ****
    iPodService 10.5.0.142 is currently running.
    iTunesHelper is currently not running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    Universal Serial Bus Controllers:
    Intel(R) 5 Series/3400 Series Chipset Family USB Enhanced Host Controller - 3B34.  Device is working properly.
    Intel(R) 5 Series/3400 Series Chipset Family USB Enhanced Host Controller - 3B3C.  Device is working properly.
    FireWire (IEEE 1394) Host Controllers:
    1394 OHCI Compliant Host Controller.  Device is working properly.
    Most Recent Devices Not Currently Connected:
    iPhone 4 (GSM) running firmware version 5.0
    Serial Number:    85107XQLA4S
    **** Device Sync Tests ****
    No iPod, iPhone, or iPad found.
    < Edited By Host >

    Hi AM_Kidd.
    Thanks for your reply.
    I have done a complete uninstall and re install of iTunes and all related apple programs from my laptop through control panel, add remove programs and also by going through program files and deleting all tracers of any left over folders remove programs may have missed.
    My apologies for forgetting to add this in my original post.
    Thanks again

  • Itunes will not read the ripped CD

    My hard drive crashed. With a new drive,I have now imported all my previously saved music into my Itunes library perfectly. Now, after having ripped a dozen full CD's, the new music has been loaded and can be played, but itunes will not read the titles, artist or the CD title. Only my past music is labeled.

    hi Patricia!
    sounds like the new configuration isn't performing Gracenote queries properly. let's try checking through a few of the usual suspects:
    Scott Patrie, "Can't connect to music store / CDDB", 07:18pm Oct 7, 2004 CDT
    keep us posted.
    love, b

  • I have CS4 and was using a Canon 5D Mark II with raw photos. I just got the Canon 5D Mark III and CS4 now can not read the raw photos. It has raw version 5.7.0.213 and CS4 version 11.0.2. Can anyone help?

    I have CS4 and was using a Canon 5D Mark II with raw photos. I just got the Canon 5D Mark III and CS4 now can not read the raw photos. It has raw version 5.7.0.213 and CS4 version 11.0.2. Can anyone help?

    Camera Raw plug-in | Supported cameras
    Camera Raw-compatible Adobe applications
    EOS 5D Mark II
    CR2
    5.2
    2.2
    EOS 5D Mark III
    CR2
    6.7, 7.1
    4.1
    Photoshop CS6
    7.0
    8.3
    Photoshop CS5
    6.0
    6.7
    Photoshop CS4
    5.0
    5.7
    The 5D Mark II was first supported by Camera Raw 5.2 which is compatible with CS4+.
    The 5D Mark III was first supported by Camera Raw 6.7 and 7.1 which is only compatible with CS5 and CS6.
    So the CS4 will never be able to open Raw 5D Mark III files.
    Why doesn’t my version of Photoshop or Lightroom support my camera?
    Choices:
    Purchase CS6 full version (CS4 is too old to qualify for an upgrade)
    Join the Cloud
    Free option: download the free Adobe DNG converter, convert all 5D Mark III Raw files to DNG format then edit the DNGs in CS4
    Photoshop Help | Digital Negative (DNG)

  • Illustrator files cannot be opened: Could not read the file because an error has occurred.

    I cannot open some files from  Illustrator which contain PNG files placed. When I try to open the file, I get a message saying: "this png contains addtional data for Adobe fireworks, which will be discarded upon save." When I press "ok" I get the same screen again. When I press "cancel" I get: "coulld not read the file because an error has occured". I am currently working on a Mac Mavericks. Using Illustrator cc and Fireworks CS6.

    Eliana,
    If you have some file corruption, one thing often tried first is to create a new document and File>Place the (PDF contents, if any of the) corrupted one to see how much may be rescued that way.
    Here are some websites where you can see whether it can rescue the actual file, and if it can, you may pay for a subscription to have it done,
    http://www.recoverytoolbox.com/buy_illustrator.html
    http://markzware.com/adobe-software/fix-illustrator-file-unknown-error-occurred-pdf2dtp-fi le-recovery/
    http://www.illustrator.fixtoolbox.com/
    As far as I remember, the first one is for Win and the second one is for Mac, while the third one should be for both.
    Here are a few pages about struggling with it yourself:
    http://daxxter.wordpress.com/2009/04/16/how-to-recover-a-corrupted-illustrator-ai-file/
    http://helpx.adobe.com/illustrator/kb/troubleshoot-damaged-illustrator-files.html
    http://kb2.adobe.com/cps/500/cpsid_50032.html
    http://kb2.adobe.com/cps/500/cpsid_50031.html
    http://helpx.adobe.com/illustrator/kb/enable-content-recovery-mode-illustrator.html

  • Acroread 9.1.0 reads the full directory tree /usr/share/fonts

    Hi,
    I was wondering why the startup time of acroread is that high on my system (Debian 5.0). I have found out using strace that acroread reads the full content of the /usr/share/fonts/ directory tree (more than 4000 files) during startup in a quite inefficient way.
    First question: why does it read /usr/share/fonts during startup at all and is there a way to disable that behaviour?
    Second question follows: the ext3 requires that an application reading the full content of a directory should sort the file list numerically by inode number before opening the files. It is explained in http://bugzilla.kernel.org/show_bug.cgi?id=417 why the application should be fixed and not the kernel. Can acroread be changed to qsort() the file list between the calls of readdir() and open()?
    Cheers,
    Torsten

    Hello Torsten,
    Thanks for reporting the issue. Could you please let us know if you are opening acroread with a file(either by double clicking on it or giving it as a parameter to acroread). If yes, could you please see if launch time is still high when you do not open a file(launch acroread by clicking on the Desktop icon or launch it from console). Also, it would be helpful if you can mail the strace output to sanika at adobe dot com.
    As for reading the location, it is one of the standard font locations mentioned in /etc/fonts/fonts.conf. If you do not want acroread to use these fonts, you can set ACRO_DISABLE_FONT_CONFIG to 1 on console.
    If you do not want to set this variable every time you launch reader, you can search for "ACRO_DISABLE_FONT_CONFIG" in the launch script, uncomment the relevant section and save the script.
    However, I should warn you that Reader would not be able to use these fonts to display PDFs(substitute fonts would be used instead).
    Sincerely,
    Sanika

  • Windows error message "Setup could not read the CD you inserted..."

    I partitioned my Macbook HD using bootcamp assistant and allowed 32GB for the partition. Then I tried installing windows using the assistant. I only get as far as verifying the windows CD (not far as which file system to use FAT32 or NTFS). Then I receive the error message, "Setup could not read the CD you inserted, or the CD is not a vaild windows CD." I am using the Windows XP Service Pack 2 version - not an upgrade. Also I tried booting up straight to the CD but that did not help either. Any suggestions?

    Please disregard my question. Although my Windows XP Pro documentation and folder did not say upgrade I just looked at the CD for the tenth time and just saw Upgrade printed on the CD. I'm not making excuses but the holographic images make the CD a little hard to read. Sorry for the trouble. I guess I will be going out and buying the full version now.

  • Nokia 6700: how to read the full E-mail??

    Hi there,
    When I am browsing the internet with my Nokia 6700 I can use the navigation key to scroll up, down, left and right. But when I am reading my E-mails. I can only scroll up or down, so I can not read the text which is on the right side of the E-mail... I have tried to change the settings (640 x 480 etc.), but the E-mail appearance did not change, nor did the size of the letters.
    Does anyone know how I can change this?? It is kind of anoying that I am not able to read the full E-mail...
    Thanx!

    As you guess, it is stored in the PSD, but only with the Maximise Compatibility switch. Without that switch, a dummy image is stored which has the text "This layered Photoshop file was not saved with a composite image.", in English, German, Japanese and French.
    My program
    psdparse extracts each layer in an 8-bit file as a PNG, and the merged image for both 8- and 16-bit files. That link is to a Subversion repository containing source code.

  • HT4009 I purchased an upgrade inside the free app, however it shows I paid for the free app & now I can not download the full version.  What should I do?

    I purchased an upgrade inside the free app, however it shows I paid for the free app & now I can not download the full version.  What should I do?
    Thanks!
    Kristine

    Finish the download on your computer in iTunes and then sync the app to the iPad and then delete it. You will probably have to let it fully download before you can delete it.
    You can try restarting the iPad and see if the download will resume - Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Yoy can try  this as well and see if the download will resume. Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Look in iTunes and see if there is a pending download in there that might be causing the delay. If there is a download there, try to finish that one first.

  • After Effects is NOT using the full Twelve GB of memory on my Mac Pro late 2013 dual video cards

    I would like to know if there is a reason why AE CC12 and CC13 (2014) is not using the full amount of video card memory on my MP late 2013. It's six GB per freaking card I invested in and its not accessing it.
    Is there a work around this issue?

    Why shouldn't it. When I upgraded to this new Mac Pro late 2013 with its dual video cards. Premier turned into a blasting fast editor. I no longer need to render my edited cuts and the scrubbing of preview and timeline footage is phenomenal. The only performance boost I've seen in AE with this new system is in rendering and I can't even say its double as fast in comparison to Premier or Encoder and its an 8-Core system with 32GB of ram. Everything else is flying.
    So again to answer your why should it. I rebuttal with "Why shouldn't it". The other two mentioned programs are using GPU resources to improve performance why is AE so behind the curve.
    I'm not the only one asking why. I was in the audience at a Dmala meeting here in LA with Todd Kopriva and Al Mooney previewing AE and Premier 2014.
    People kept asking Todd about performance boost in between questions about new features. Todd finally just asked what do you prefer a couple of new features or performance boost. Everyone wanted performance boost over new features. If you think I'm making this up go ask Todd Kopriva.

  • Bought a new monitor.. wide screen 23"... Firefox is not filling the full window. IE works fine but I prefer Firefox. What do I need to do to fill entire window, not just the way it was with the old monitor?

    Bought a new monitor.. wide screen 23"... Firefox is not filling the full window. IE works fine but I prefer Firefox. What do I need to do to fill entire window, not just the way it was with the old monitor? edit

    Most pages are defined to be a certain size, regardless of how large or small your monitor is. You can use Firefox's zoom feature (View menu) to enlarge the text and images (or just the text, if you prefer) on a page.
    In addition to making individual site adjustments, there are some add-ons that will default every site to a higher zoom level. For example, check out:
    * [https://addons.mozilla.org/en-US/firefox/addon/6965/ Default FullZoom Level]
    * [https://addons.mozilla.org/en-US/firefox/addon/2592/ NoSquint]
    Does that help?

  • HT1689 Where can I find my balance from a gift card.. I did not use the full amount

    Where can I find my balance from a gift card.. I did not use the full Amount

    My account's balance shows at the top left of the store's page on my computer's iTunes, and by logging in to view my account via the Store > View Account menu option. On my devices it shows at the bottom of, for example, the Featured tab in the App Store app under my account id (or you can view your account via Settings > iTunes & App Stores and it should show on the screen that you are taken to)

  • Google search results page is not showing the full (green) http link

    google search results page is not showing the full (green) http link

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Firefox > Preferences > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    You can also check for problems caused by extensions.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can do a check for corrupted and duplicate fonts and other font issues:
    *http://www.thexlab.com/faqs/multipleappsquit.html - Font Book 2.0 Help: Checking for damaged fonts
    *http://www.creativetechs.com/iq/garbled_fonts_troubleshooting_guide.html

  • TS1702 My iphone has displayed a warning message two days ago that if i dont ..... i cannot purchase anymore applications but I could not read the first sentence and now I am unable to purchase

    My iphone has displayed a warning message two days ago that if i dont ..... i cannot purchase anymore applications but I could not read the first sentence and now I am unable to purchase

    That error message suggest you have a permissions issue. Make sure you have full read/write privileges for the Drive/ Folder location that you are copying the files to. 

Maybe you are looking for

  • Satellite C660-108 - No Automatic internet connection

    I bought a replacement laptop last weekend - a Toshiba C660 - 108 - which is giving me a problem. I cannot get the computer to connect automatically to the internet router (Orange) as it fails to connect initially even though the network is always vi

  • First operand of . is not an object, so cannot access member WriteLine

    1) I get error like First operand of . is not an object, so cannot access member WriteLine. (180,235) Z_REM_STRING.Z_FUNCLIB_FORMULA.FieldFormula Name:RemoveSpace PCPC:691 Statement:11 2) I have the record called Z_REM_STRING and have one field call

  • Linking a PDF to a SQL Server

    Is there a way to filling, ie customer information fields, using a SQL server using a PDF? I am trying to create a document that allows the company I work for to create a Invoice using the information they already have on their server.

  • How to download original photo from iCloud photo (beta) on PC?

    I'm having this problem a while now... I hope there is a solution for it. When I edit a photo on my iPhone it uploads to iCloud photo (beta) edited, when I access my iCloud photo (beta) from PC... I can only view and download the photo edited and I c

  • How to package and deploy Acrobat Standard without a Serial Number?

    Hello, In our environment we package applications without Serial Numbers depending on what it is.  We do this so we can actively manage applications and we don't need to buy a licence for each and every user.  If you never run the app, you don't need