Socket lost data

We have a socket connection and when reading a huge XML file, part of it is lost. No exceptions are thrown. only a few lines in the middle of the xml is lost. We use
InputStream in = socket.getInputStream();
BufferedReader dis = new BufferedReader(new InputStreamReader(in));
while ((s = dis.readLine()) != null) {
...... some lines are lost for a huge xml
Thanks
Jayaraman

TCP/IP does not lose data. Show us the sending code. It is London to a brick that you aren't checking the return value of a write call, and assuming that all the data got written.
EJP

Similar Messages

  • Lost data on my Mac after it got reset but my iPhone is still synced to the old version of my Mac?

    So, during an awful visit to the Apple store in which the "genius" completely reset my Macbook Pro (10.8.5) because it decided to go "turtle mode" for no reason whatsoever, I lost all my data and files on it. After putting whatever I had backed up back on the Macbook, I put some new things on my iTunes and tried syncing the Mac's iTunes and my iPhone 5 ios7's iTunes. However my iPhone was synced to the older version of my Mac before it crashed and got wiped out. I got this message:
    The iPhone “___” is synced with another iTunes library on “___”. Do you want to erase this iPhone and sync with this iTunes library?
    An iPhone can be synced with only one iTunes library at a time. Erasing and syncing replaces the contents of this iPhone with the contents of this iTunes library.
    Is there any way I can get my lost data back onto my laptop with my iPhone? Or if there isn't and I sync the new version of my Mac with the iPhone, will my iPhone lose any data to match my Mac?
    thanks

    See this User Tip from Apple Support Communties contributor turingtest2:
    https://discussions.apple.com/docs/DOC-3991

  • Lost data on /boot partition [solved]

    Lost data on /boot partition. Is there a way to recover it with Archlinux CD?
    Last edited by primez (2010-04-08 18:45:53)

    i think the easiest is to chroot into your installation, and then do a pacman -S kernel26

  • I got the new iPhone5 back in Dec, I hooked it up to my computer for the 1st time this wk.  It deleted all new data added since Dec (notes,contacts,texts,pics, info in apps) and reverted back to all my old data.  How can I retrieve all the lost data??

    I got the new iPhone5 back in Dec, I hooked it up to my computer for the 1st time this wk.  It deleted all new data added since Dec (notes,contacts,texts,pics, info added to apps) and reverted back to all my old data (literally uploaded all of my old texts and 1400 old pics and deleted anything new).  How can I retrieve all the lost data?? Please help!!

    SkyDaughter29 wrote:
    My current situation: I have soooo many texts on my iphone and I haven't deleted many because I need the information contained in them for future reference and for legal purposes.  I would really like to find a means and way to save them other than on the phone itself. I've done searches for various apps yet I'm not finding what I think I would need.  It appears Apple does not sync the texts between the iphone and my MacBook Pro.
    Try the computer apps PhoneView (Mac) or TouchCopy (Mac & PC):
    http://www.ecamm.com/mac/phoneview/
    http://www.wideanglesoftware.com/touchcopy/index.php
    Best of luck.

  • I lost all personal data while installing maverick in external drive. How can I recover lost data?

    I lost all personal data while installing maverick in external drive. How can I recover lost data?

    If all your files are missing
    You may have logged in as a different user, such as Guest. Open the Users & Groups pane in System Preferences. Your name should be at the top of the user list, under Current User. See also this support article.   
    If files are missing from one folder
    Change the Finder view mode; for example, from icon view to list view, or vice versa.

  • I recently have ipad but before i sell it i made a back up of it and by an iphone when i put all the date on my iphone some files and software did not install is there anything i can do to recover the lost data? please help

    i recently have ipad but before i sell it i made a back up of it and by an iphone when i put all the date on my iphone some files and software did not install is there anything i can do to recover the lost data? please help

    I don't think you're on iOS 5, I think you're using iOS 6.  That's the latest version.
    Unless you've used iCloud to back up your documents, you won't be able to restore them.  And for future reference, you don't have to uninstall Pages to update your iPad anymore.  Sorry about this.

  • How do I transfer my lost data from ICloud back to my mini IPad

    How do I transfer my lost data from my ICloud back to my mini IPad

    DId you find a solution?

  • I upgraded to the new IOS, but lost data and apps. When I try and restore the only backup I see is the one made AFTER the lost data. How can I access an older backup from the cloud?

    I upgraded to the new IOS, but lost data and apps. When I try and restore the only backup I see is the one it made AFTER the lost data. How can I access an older backup from the cloud?

    Why don't you talk to apple and find out if backup exists? That conversation with apple will stop your guessing.

  • Restoring the lost data.

    Hi All,
    We have two Planning Applications created in EPMA architecture.
    Accidentally user has deleted the critical forecast data from one of the application by running the Business rule which deletes the data. The data which got delete was critical one and now user need to restore it back.
    We do have latest windows file system back up taken on both Physical Hyperion Application & Essbase Servers therefore we can restore the necessary files from backup in order to restore the lost data with the help of our Storage team who handles the back ups.
    Could you please advice on how do we go ahead for restoring the lost data from backed up files and which files we may need to restore from the back up.
    This is an extremely urgent & critical issue we are facing hence your valuable advice is much needed as soon as possible.
    Thanks in advance !

    I have tried this Maxl couple of times in case of Invalid Block Header issues. Doesn't seem to resolve for me.
    If it is a case of invalid block header :
    How to restore a database:
    1. Stop the application/database and delete the dbname.ind file.
    2. Clear non input level data using Hyperion Application Manager, DATABASE -> CLEAR DATA -> NON-INPUT BLOCKS. Then perform a full calculation of the database either using CALC ALL or if required, specific calc scripts. This may not work however as it depends on where the IBH lies in the data. If this still returns the error during the calculation then proceed to step 3.
    3. Stop the application and delete the following files from your database.
    This removes all the data from the database.
    <dbname>.ind
    ess000#.ind
    ess000#.pag
    <dbname>.tct
    <dbname>.esm
    To get the data back:
    a. Do a full calc from your database from an input level export
    or
    b. Restore from an existing backup. If this backup does contain an IBH, then keep restoring previous backups and checking.
    Hope this helps!
    A.S.

  • Sql server data base retored to an earlier date (lost data)

    halo,
    I have found that someone or something restored my mssql database to an earlier date and lost a lot of data as a result
    I have no back up for the lost data.
    is there a way to roll back database server so I can recover the lost data?
    I will be grateful for any suggestion you give me
    thank you...

    If backup was restored with REPLACE option or Overwrite option(in GUI) you as such cannot rollback the restore process.
    Do you have any backup which is taken after you made changes to your data, or any backup which would include the data you want. If you have you can restore from that backup otherwise there is no solution.
    Is this database mirrored/Logshipped/ replicated anywhere ?
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • HT201210 i lost data messages / photos and other saved data worth 2 months cause there was some problem when i was updating ios7 how can i recover that?

    i lost data worth 2 months when i was updating the ios7 software on my iphone 5 .....
    unfortunatley i forgot to perform a backup in that time span as well....
    is there a way of recovering txt msgs photos and other saved data from a particular span? without backups?

    Without a backup there is no way to recover data.
    Seems you've learned a valuable lesson about how important it is do regularly backup the device.

  • Is there a way to retrieve lost data

    I tried spotlight and it seems some of my iMovie files are gone. I don't have a backup. This was a result of a computer crash. Is there any third party software that I could use?

    leroystreet
    1. To recover lost data try using File Salvage
    2. Are you sure the Spotlight index wasn't damaged in the crash? Try re-indexing: In the Spotlight PreferencePane, drag the HD to the Privacy Pane, leave it there for a few moments, then drag it out again. Allow it time to re-index.
    Regards
    TD

  • Lost data in Aperture - NOT recoverable through Time Machine!

    I recently accidentally deleted photos in Aperture. Unfortunately, even though I backup regularly with Time Machine, I have come to find that Photos in Aperture libraries are non-recoverable.
    Can anyone please help? Apple has no help topics for lost data.
    Thanks in advance!
    Glenn
    [email protected]

    The photos in the library are recoverable. But you will likely have to restore the library and then navigate through the library to get the photos. You can get to them by right clicking the library and choosing "Show Package Contents" and then navigating the the project and again right clicking to do "show package contents" and then access the RAW files. It will be a bit tedious.
    It's a lot easier if you're using referenced masters.

  • In photos,events have lost dates and been replaced with IMPRT numbers.Any ideas?

    In photos,events have lost dates and been replaced with IMPRT numbers

    When is this going to be fixed?

  • I lost data on ipod classic 120GB, how can i recover my data???

    I lost data on ipod classic 120GB, how can i recover my data???

    If your media is in iTunes restore the iPod, but the iPod is/was the only location currently hosting some of your media then the first task is to try to extract it. See the user tip Recovering your iTunes library from your iPod or iOS device for some recovery tools. Most third party tools will probably require the device to have a functioning library however the techniques outlined in the iLounge Article referenced at the end should work as long as the device still shows up in Windows Explorer or Finder.
    tt2

Maybe you are looking for

  • Cant figure out how to edit raw images

    I am using a windows computer and have Photoshop elements 10. I'm trying to edit raw images but every time I try to open a RAW file it says that its the wrong type of file. I tried downloading Camera raw. Elements 10 is compatible according to adobes

  • HT1386 Syncing iPhone as iPod in error

    I just bought an iPhone and when I went to sync it with iTunes I accidently ticked iPod (which I also have) instead of iPhone.  Now I have lost the original data on my iPhone, how can I restore it back to it's original form.

  • Best workflow for editing Logic Pro 8 regions/tracks in Soundtrack Pro?

    I've searched for a solution for the below question in several forums and to no avail. Thanks in advance for any help! What is the easiest workflow for editing Logic Pro 8 audio files with Soundtrack Pro 2? And I'm thinking of a process very similar

  • Boolean() function gives true in all cases

    The implementation of the boolean() function in BPEL (version 10.1.2.1.0) have an FATAL ERROR. boolean(0) gives 1 and boolean(false) gives 1 I have tried to make a TAR, however I cannot connect to meta-link today. Regards, Flemming

  • US W4 form in MSS, which BAPIs to use?

    hi, I am building adobe interactive form for W4. In our scenario manager will use this form to input W4 information for NEW-HIRE. manger will use the new-hire's employee number to pre-populate some of the data on W4 form and inputs the rest of the da