BitSet values lost during ObjectOutputStream operation!

I am using ObjectInputStream /ObjectOutputStream to read/write a set of objects in a TreeSet to a file. Everything works fine except for one field of BitSet. The values of BitSet are not preserved. Am I doing something wrong or is this not possible?
If this is not possible is there any other way to do this, i.e. use another method of writing the objects to the file? Thanks for your help.

I found the problem. For anyone interested, the problem was that I forgot to define the class, where the BitSet data member was, as serializable. As the result I lost the values of the BitSet data when I worte it into a file.

Similar Messages

  • ORA-022887 error during insert operation how to handle properly ...

    Hello everyone I got an error during insert operation how to handle it properly ?
    SQL statements given below.
    INSERT INTO PERSONEL.TRANSLATIONS (TID,SCRIPT_NAME,TAG,TR,EN,LOCAL)
    VALUES ((SELECT PERSONEL.SQX_TID.NEXTVAL AS TID FROM DUAL),'TEST_TEST','TEST','TR','EN','LOCAL');
    thank you

    I could not find an error like ORA-022887. What is the exact error you are getting? Do a cut and past of the error here.
    Ok the proper error is ORA-02287: sequence number not allowed here
    As already said just remove the select and use the sequence directly in the insert.
    Edited by: Karthick_Arp on Sep 11, 2009 1:04 AM

  • Powerhsell progress bar during an operation

    Hi,
    Id like to try and use the progress bar features from
    New-Object
    System.Windows.Forms.ProgressBar
    but I can't find any examples on how to use this during an operation.
    I have a command which I use to create a CSV file with various user information..
    Get-QADUser -sizelimit 0 | export-csv c:\pathtocsv.csv
    what i'd like to do is get the progress bar to be displayed in a separate form whilst the operation from get-qaduser is performed.
    any help appreciated - thanks
    Denis
    Regards,
    Denis Cooper
    MCITP EA - MCT
    Help keep the forums tidy, if this has helped please mark it as an answer
    My Blog
    LinkedIn:

    Hi Denis,
    your progress-bar form has a property named value (which takes an integer value. Set it to 40 and you get 40% progress on your bar).
    The thing is, in order to calculate the percentage you are at, you need to know the maximum number, the current number
    and find a way to write it during runtime.
    And if I tried it, my boss would tell me to spend my time more usefully (If he caught me at it, that is).
    Good luck if you go for it (and if there's a simple way that has eluded me: I'll be happy to learn a bit more :) )
    Cheers,
    Fred
    There's no place like 127.0.0.1

  • Logical end-of-file reached during read operation

    Hi,
    Something strange happened to my Logic a couple of days ago - all of a sudden. When I start Logic up it gives me the following error message:
    *Error reading/writing file “com.apple.logic.pro.cs”: Logical end-of-file reached during read operation.*
    I have re-installed Logic, as well as updated it (8.0.2), I have repaired disk permissions in Disk Utility, and it still keeps popping up. I cannot get on with my projects and I have deadlines!
    I found an IT support site, according to that I don't have enough space on my HD. However, I do... I'm confused, and desperately need help.
    Thank you so much, I'm looking forward to hearing from somebody.
    Agnes

    I am not opening any files, just launching Logic.
    I know. And when you launch Logic, it loads its preferences files - and it seems this is failing - most likely due to file corruption. So delete the file, as I said, and Logic should load fine.

  • Is there a way to dynamically calculate values for the IN operator?

    I am looking to see if there is a way to dynamically calculate the criteria to include inside an IN operator in the WHERE clause. For example when I try to run the following I get an Oracle error message 'OR!-01722: invalid number'. The script below is just an example to help illistrate the problem, I do not want to hardcode the values assigned to v_test directly within the IN operator becasue the values in v_test will change from user to user.
    DECLARE
    v_test VARCHAR2(10) := '1,15,25,55';
    v_tmp VARCHAR2(50) := NULL;
    BEGIN
    SELECT d.metric_title INTO v_tmp FROM tbl_health_metric_definition d
    WHERE d.metric_status = 'Active' AND d.metric_id IN (v_test);
    END;

    Hi Jason,
    When ever you use IN operator your values should be either seperated by a comma. If the column is of type number then your values should not enclosed in single quotes.
    Eg: Wrong - '1,2,3,4,5'
    Correct - 1,2,3,4,5
    If your column is of type varchar then your values should be seperated by a comma and each value should be enclosed in single quotes.
    Eg : Wrong - '1,2,3,4,5'
    Correct - '1','2','3','4','5'
    Correct - 'sam','boy','girl'
    So correct you query so that the values in the IN operator are with out single quotes.
    DONOT USE IN OPERATOR IN PL/SQL BLOCK WITH OUT A CURSOR._
    If you use IN Operator and fire a query with out a cursor, it throws an error multiple rows returned. If at all you want to use in operator then use cursor.
    Regards,
    Rajesh
    Edited by: Rajesh Gudipati on Jun 23, 2009 9:49 PM

  • Sync between MacBookPro and iPhone 3G does not sync properly.  Calendars duplicate events but worse is that only contacts from Address book from letter T onwards sync.  Any contacts on iPhone which are not on Mac are lost during sync.

    Sync between MacBookPro and iPhone 3G does not sync properly.  Calendars duplicate events but worse is that only contacts from Address book from letter T onwards sync.  Any contacts on iPhone which are not on Mac are lost during sync.
    Solutions?

    No, I never really found an easy solution.  I believe it is an issue with some corruption in the iTunes database on the specific device.  In my case, both my iPad and iPhone now show duplicate stream songs if viewed through iTunes on my Mac, but they show different songs.  A couple years ago I had a similar issue on my iPhone, and Apple support suggested I back up the phone, completely reset it, and then restore it from the backup.  It did work, so I imagine it would probably work for my current issues with the iPhone and iPad.  But resetting and restoring an iPad or iPhone always makes me a little nervous that something will get lost.  When I did reset/restore the iPhone, I do have to say, the restore process was 100% perfect and I did not lose any data at all even though Apple support said I might.  If you try to go that route, I would suggest backing the device up both to a computer through iTunes, and to the iCloud so that you have a double backup.
    None of this really resolves the issue with how the iTunes databases are becoming corrupted on the apple devices though, so it is very likely to happen again until they fix it.  I have been unable to determine if there were any specific actions or conditions which caused the corruption to happen in the first place.
    Might be worth another call to Apple support, or dropping in the local Apple store if you have one near by.

  • This field contains duplicate values. Remove all duplicate values and try the operation again.

    Greetings Everyone,
    I am getting the follow up errors: "This field contains duplicate values. Remove all duplicate values and try the operation again."
    when I tried to make the field "Claim Number" from the list in site collection library. See the screen below:
    1- I selected on the "List" and I clicked on the list name
    "Claim Tracking Report"
    2- After I clicked on the list name then I went to the ribbon and selected list setting to choose Enforce Unique for the Field Column
    "Claim Number"
    3- Then I went down and selected
    "Yes" to Enforced the Unique for the Field Column "Claim Number".
    4- Then after I clicked "Yes" I got the error
    "Sorry, something went wrong. This field contains duplicate values. Remove all duplicate values and try the operation again."  But I don't have any duplicates values Items, because I had them removed before I tried
    to Enforce the field column values to Unique. Can someone help or provide me a suggestions on how I can solve this issue please. Thank you
    FYI: I am using a Nintex Workflow

    Hope this is a list, how many total items are there?
    Please try to open this list as access(link in IE) and run this query in access
    SELECT Claim.[Claim Number], Count(*) AS Expr1
    FROM Claim
    GROUP BY Claim.[Claim Number]
    HAVING (((Count(*))>1));
    Hope it will show something! if this does not show you dups then better to create a separate list and migrate items after configuring unique column.
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Keep getting message pop up "Error reading/writing file  "com.apple.logic.pro.cs": Logical end-of-file reached during read operation," and "The Preferences are not loaded completely. Save them to "com.apple.logic.pro.cs" anyway?" Using Logic pro 8. ???

    Logic froze while I was working on something so I forced quit.  Now every time I open LOGIC a message pops up that says:
    "Error reading/writing file
    “com.apple.logic.pro.cs”:
    Logical end-of-file reached during read operation."
    The only button option is cancel so I press it and another message appears that says:
    "The Preferences are not loaded completely.
    Do not save them, as you would overwrite the Preferences file with incomplete data."
    Then when i close logic a box appears saying:
    "The Preferences are not loaded completely.
    Save them to "com.apple.logic.pro.cs" anyway?"
    There are 3 button options to press; ok, cancel or dont save.
    I press "don’t save" cuz I don't want to ruin anything.
    I found a discussion located here: https://discussions.apple.com/message/9564253#9564253 that says if I delete the file "com.apple.logic.pro.cs" it will resolve the problem.  If I do this will I loose or mess anything up at all, automation, saved channel strips customizations, saved effects, synth, or ultrabeat customizations etc? Or especially will I loose any work I've done?  I have hundreds pieces of music files I've created.  I'm scared to mess anything up with all the hours and months of work I've done.  Is there anyway to fix this without loosing anything?  I'm using Logic Pro 8.
    Thank you

    You can safely delete this file - its the preference file for control surface settings - you haven't said whether you're actually using a control surface or not, if so, you will have to set it up again. A new file will be created when you fire Logic up again, but of course it will contain default settings. If you have a complicated control surface setup, remember to keep a backup copy somewhere in case any future problems arise.
    Other than that, you really have nothing to be scared about - hopefully your problem is as simple as that and there isn't an underlying problem (a corrupt hard drive, for example). You seem concerned about losing work, so I guess you want to think about backing that up on a regular basis too. If you're saving your projects to your system drive, do get an external one for this. And also check that you have plent of free space on your system drive - you need to keep about a quarter or third of it free for your OS and programs to run properly (some temporarily stored files can be quite large).

  • Error "logical end of file reached during read operation"

    I am trying to burn a dvd of a wedding I did, and this is the error I am getting. After 5 hours of it trying to burn when I click cancel this it says " logical end of file reached during read operation". Does anyone know what this means, and how I can fix it? I am anxious to get this wedding finished and out to the customer. Any help would be greatly appreciated.

    How long is the wedding video?
    My standard list of things to do first...
    Run MacJanitor (free download) to do all the Unix Cron Maintenance scripts.
    Run Disk Utility (Applications -> Utilities) and repair disk permissions on your start up drive (typically your internal drive). Also verify any other drives mounted on the system.
    Run Preferential Treatment (free download) to check for corrupt/damaged application and system preference files.
    Run Cache Out X (free download) to clear all system and application caches.
    Reboot your Mac.
    If you still can not get it to run correctly, next thing to try is to throw out the iDVD preference file (don't forget to change back those preferences you want different from the defaults next time you run it). If it still doesn't work, then I would suggest you reinstall iDVD.
    Patrick

  • EXS 24 Logical end-of-file reached during read operation Result code = -39

    EXS kit Trip Hop Remix will not completely load. Upon trying to load it I get the error, Logical end-of-file reached during read operation Result code = -39. The kit ends up lacking samples. It worked at one time but now it will not load up. To try and fix I extracted two kits with the same name but oddly they are slightly different sizes and have different creation dates, one 2004 the other 2007 hmmm (one goes in Garage band for remix tools the other gets placed in 02 Electronic Drum kits) from the install disks using Pacifist hoping to replace corrupted files. NG. I also reinstalled all the samples from the LP8 install disk, still NG. Anybody have a solution. THanks.

    To further clarify, the samples are all located in the folder Garage band/.../.../.../Sampler Files/Treated Percussion Sets/Perc-DnB+Triphop. They are used in the EXS24 Trip Hop Remix kit.exs. The 3 samples that seem to be causing the error are, YT2BGLRHTX02_3ue.aif, YT2BGLRHTX03_3ue.aif, YT2BGLRHTX04_3ue.aif. The kit is useless and my song is screwed up now that the kit will not load. Any ideas for a fix out there ?

  • Error: Logical end-of-file reached during read operation. Result Code = -39

    Hello all,
    Recently, I have been suddenly getting this error message:
    "Logical end-of-file reached during read operation. Result Code = -39."
    In my case, when it does come up, it always pops up during the recording of an audio take. Almost immediately after hitting the stop button, this error message would pop up. And then when I go to check the take that was just recorded, there is nothing but shrieking noise. As a result, this pop up error trashes any good take I may have had. It's unpredictable as to when this error decides to pop up as well. So now, when I record, I tend to just have my fingers crossed and hope that this error doesn't pop up especially right after recording a good take!
    To no avail, I have tried different I/O buffer settings, repaired permissions, rebooted, and even re-formatted my recording hard disk.
    Could this be a possible hint that my hard disk is about to physically collapse? I have had it for about 2 years. Could it be some sort of bug in Logic? Or something else perhaps?
    Appreciate any feedback! Thanks a lot!

    DamonGrant wrote:
    Thanks for those suggestions Erik...
    It's been happening for a month I guess and I don't think that anything new's been installed. I will try recording to the start up disc and to maybe to some USB discs I have.
    It seems to happen after working on a project for some time.
    After say tracking takes for 45 mins or so. Maybe it's just coincidence, but do you think that might indicate a hardware issue?
    Now there might be a clue. What happens when you then quit Logic, reboot your Mac, and reopen the active session? It might be that your disk has become a bit messy from all the traffic, and it just needs to 'settle' in OS X again. Click on the *Spotlight icon* top right of your screen and see if any indexing is taking place. Wait for it to finish before launching Logic.
    Alternatively, you could exclude your recording disk from Spotlight indexing alltogether, by dragging the disk to the Privacy field in the Spotlight Sysprefpane.
    One other thing to do: turn off Journaling , using *Disk Utility.* Select your recording volume in Disk Utility, hold the alt key while dropping down the File menu. Choose *Disable Journaling.*
    On the other hand, it might also point to a RAM issue. Do you ever suffer Kernel panics (=the darkening 'curtain' and the message "You need to restart your Mac... etc")? or 'unexplained' crashes? If not or very rarely, I'ld rule out a RAM issue. If daily, it could be. What you can try in this case is to turn of your Mac and physically take out and reinsert your RAM.
    And when you trash (=eject/unmount), physically disconnect and reconnect your recording disk? Does that help? (Logic should not be running when you do this)

  • Cisco SG300 HOSTP_flash_operation: fatal error during read operation!

    I have 2 Cisco SG300-52P switches.   Earlier this week, one of them started dropping connections and POE was not working on a couple of devices...  I came in this morning to restart them when no one else was around. After restarting them, the troublesome one was still not detecting POE devices.  
    I have been waiting for some down time to do a firmware update, so I thought this might straighten things out.  I Downloaded the updated bootloader and firmware from Cisco's site.  Updating the (non-problem) SG300 went exactly as it should.  Upgrading the the bootloader on the problem SG300 went exactly as it should.  Started the firmware update on the problem switch ....... and it didn't come back online.  The power light was flashing, and occasionally the lights on ports would blink like they were trying to reset, but they never made it.   There weren't really any special configurations on this switch so I had nothing to lose by trying a factory reset via the pinhole on the front ...... same result.
    I connected to the serial port via a win7 PC with putty. .. All setting per Cisco. I got a message that the connection was detected, but it would not accept keyboard input.  I power cycled the SG300 and watched the messages go by ... It looked like everything was working.  I even got a message that the "Initialization task was completed"..
    Then this message "HOSTP_flash_operation: fatal error during read operation!"
    We have had a couple of internet and power outages recently, but I am trying to rule out other issues before blaming it on that. 
    any suggestions?
    putty output file attached

    I am not familiar with SG series products, but looking at the error message in the attached file, it appears there is an issue with reading from the flash.  It could be that the flash file is corrupted and the flash needs to be formatted and then reload the software again.
    If you have support contract on the product, I would suggest you open a TAC ticket with Cisco and have them help you.
    HTH

  • Error in File name or class name not found during Automation operation: 'CreateObj​ect'

    Hello Team,
    When I am trying to execute the below code i am getting the following error. Any help would be greatly appreciated.
    Set oFSO = CreateObject("Scripting.FileSystemObject")
    If Not oFSO.FolderExists(SavePath) Then
    Set f = oFSO.CreateFolder(SavePath)
    Else
    End If
    53 4/11/2014 12:27:22 PM Error:
    Error in <NoName(4).VBS> (Line: 9, Column: 1):
    File name or class name not found during Automation operation: 'CreateObject'
    I have googled through the error and tried to re-register the scrrun.dll using regsvr32 eventhogh it is successfully registered, i am getting the following error. My PC is windows 7 32bit OS.
    any help is greatly appreciated.

    The following script class will write a log file entry. See if it will run for you.
    The script is using a class object that you might not have seen before. A little intro:  The top section is just for testing the class. Normally I just comment this out after the class is working well.  It should run right way. I would save the vbs file in the editor, That way when you are using autoactpath or currentscriptpath variables they will be able resolve the paths.
    Paul
    Attachments:
    LoggingCode_V2.VBS ‏5 KB

  • OBIEE 11.1.1.6.12 - value modification during export in tab delimited format

    Hi all,
    we have noticed unproper value modification during export in tab delimited format.
    Please find example below:
    The proper value is 24150170000011615 (it is state register number of enterprise).
    The wrong value is 24150170000011600.
    Correct value:
    http://s12.postimg.org/v2gpqqzgd/obiee_1.png
    How do we export data from obiee:
    http://s23.postimg.org/6k7dwiezf/obiee_2.png
    Wrong value after export:
    http://s22.postimg.org/qdgqgogn5/obiee_3.png
    What should we do to fix it?

    The bigger picture is as follows:
    I have a button on my report that essentially should download the output of report to tab delimited text file. This button is integrated with a custom built class which has a main method. When I click on the button, the logic written in the main method gets executed.
    In this method I generate my internal table and pass to cl_gui_frontend_services=>gui_download method with parameters mention above.
    I try debugging but every thing seems to be working correct when sy-subrc = 0 through executable program and it does not enter into the download method logic when i do it through main method, instead sy-subrc is straight set to 6 (unknown error).
    Regards,
    Pankaj.

  • System.Reflection.TargetInvocationException: An exception occurred during the operation, making the result invalid.

    When I run my app on device and the internet is connected its ok, but if I use the emulator (althought the internet is connected):
    $exception{System.Reflection.TargetInvocationException: An exception occurred during the operation, making the result invalid.  Check InnerException for exception details. ---> System.Net.WebException: The remote server returned
    an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound.
       at System.Net.Browser.ClientHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
       at System.Net.Browser.ClientHttpWebRequest.<>c__DisplayClasse.<EndGetResponse>b__d(Object sendState)
       at System.Net.Browser.AsyncHelper.<>c__DisplayClass1.<BeginOnUI>b__0(Object sendState)
       --- End of inner exception stack trace ---
       at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
       at System.Net.Browser.ClientHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
       at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
       at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)
       --- End of inner exception stack trace ---
       at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
       at System.Net.DownloadStringCompletedEventArgs.get_Result()
       at FitnessApp.BL.ServerConnection.wc_DownloadStringCompleted(Object sender, DownloadStringCompletedEventArgs e)
       at System.Net.WebClient.OnDownloadStringCompleted(DownloadStringCompletedEventArgs e)
       at System.Net.WebClient.DownloadStringOperationCompleted(Object arg)}
    System.Exception {System.Reflection.TargetInvocationException}
    this is the stack trace:
       at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
       at System.Net.DownloadStringCompletedEventArgs.get_Result()
       at FitnessApp.BL.ServerConnection.wc_DownloadStringCompleted(Object sender, DownloadStringCompletedEventArgs e)
       at System.Net.WebClient.OnDownloadStringCompleted(DownloadStringCompletedEventArgs e)
       at System.Net.WebClient.DownloadStringOperationCompleted(Object arg)
    this is my code:
    void wc_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
    try
    if (e.Error != null)
    string error = e.Error.Message;
    string functionCall = e.UserState.ToString();
    if (!string.IsNullOrEmpty(e.Result)) //this line throws an exception
    if (functionCall == "getProductCode")
    ProductsList productsList = JsonConvert.DeserializeObject<ProductsList>(e.Result);
    if (productsList.products != null)
    serverProducts = productsList.products.Select(p =>
    new BE.Product
    Product_code = p.PID,
    Product_name = p.Name
    }).ToList();
    else
    serverProducts.Clear();
    if (DataDownloadCompleted != null)
    if(functionCall =="getProductCode")
    DataDownloadCompleted(this, new BE.StringEventArgs("getProductCode"));
    catch (Exception)
    throw;
    public void searchProductCode(string productName)
    try
    if (DeviceNetworkInformation.IsNetworkAvailable && DeviceNetworkInformation.IsCellularDataEnabled)
    wc.DownloadStringAsync(new Uri(baseURI + "get_products_json.php?search=" + productName), "getProductCode");
    else
    throw new Exception(FitnessApp.Resources.AppResources.ErrorServerConnection);
    catch (Exception )
    throw ;
    Any solution?
    thank you..

    The server did not find the resource you asked for.
    You might want to make sure your emulator is connected to the internet and can go online.
    http://blogs.msdn.com/b/wsdevsol/archive/2013/10/01/why-can-t-the-windows-phone-emulator-go-online.aspx

Maybe you are looking for