Version ID and Serializable problem...

Ok the problem is this. I have a class for some items that will be saved to disk using the Serializable interface. Now to be able to load old files after I have edited the class I need to include the version id in the class like:
static final long serialVersionUID = 1407381982932730981L;The thing is, to get that version ID you need to compile the class and go into a commandline and run the serialver tool on the class.
Now, i will have a lot of new files that will extend the main class. And these will also be saved down to files (and it is critical that old files can be deserialized when the program starts again). So for each new class, i will have to go and get the version id.
Is there some easier way for this?

It's not entirely clear to me what your problem is. You talk about new classes that extend the main class. Serialization version issues cannot be a problem there.
However, it is possible to run the serialver program directly from another class by invoking its main method. It's the class sun.tools.serialver.SerialVer. You'll need to include the tools. jar file in your class path. By capturing its output (using System.setOut()) you can automate this process to whatever degree you feel is worthwhile.
Sylvia.

Similar Messages

  • [WL6.1 SP2] RMI and Serialization problems

    Greetings. I've got a strange question.
    I have a rather large object graph that's produced by an EJB. This
    object graph is then serialized and sent across the network to a waiting
    client, or is passed to the web tier.
    The object graph is of variable size, but huge in any case - some
    examples are 10 megs in size when serialized to disk.
    The big problem is that it takes a lot of ram to serialize this object
    to push it over the network. Now, this wouldn't be a big problem (because
    objects are not requested very often), but for the fact that weblogic
    doesn't seem to release the memory for these objects after the serialization
    takes place.
    Is there some way to make sure that the object stream is closed after
    the object is sent, so the memory can be GC'd for other processes? We're
    currently giving the server about 600 Megs of ram max for the heap (the
    server is a ES40 dual), and the server can die in a matter of hours.
    Would SP3 help things at all?
    Is there some way to force memory cleanup?
    Thanks!
    -Jim Nemesh

    "Jim Nemesh" <[email protected]> writes:
    The big problem is that it takes a lot of ram to serialize this object
    to push it over the network. Now, this wouldn't be a big problem (because
    objects are not requested very often), but for the fact that weblogic
    doesn't seem to release the memory for these objects after the serialization
    takes place.This sounds like a bug, although if you leave any reference to the
    object it will not get GC'd. Are nulling out all your references after
    you are done with the object?
    Is there some way to make sure that the object stream is closed after
    the object is sent, so the memory can be GC'd for other processes? We're
    currently giving the server about 600 Megs of ram max for the heap (the
    server is a ES40 dual), and the server can die in a matter of hours.If the stream is not being closed then its a bug.
    Would SP3 help things at all?
    Is there some way to force memory cleanup?Garbage collection should do this.
    andy

  • I have upgraded Apple Aperture from version 2 to version 3 and I'm having a problem with the "Highlights and Shadows" adjustment. According to the user's manual, I should have access to an advanced disclosure triangle which would allow me to adjust mid co

    I have upgraded Apple Aperture from version 2 to version 3 and I'm having a problem with the "Highlights and Shadows" adjustment. According to the user's manual, I should have access to an advanced disclosure triangle which would allow me to adjust mid contrast, colour, radius, high tonal width and low tonal width.
    If anyone has any suggestions as to how to access this advanced section, I'd be most grateful.

    Hi David-
    The advanced adjustments in the Highlights & Shadows tool were combined into the "Mid Contrast" slider in Aperture 3.3 and later. If you have any images in your library that were processed in a version of Aperture before 3.3, there will be an Upgrade button in the Highlights & Shadows tool in the upper right, and the controls you asked about under the Advanced section. Clicking the Upgrade button will re-render the photo using the new version of Highlights & Shadows, and the Advanced section will be replaced with the new Mid Contrast slider. With the new version from 3.3 you probably don't need the Advanced slider, but if you want to use the older version you can download it from this page:
    http://www.apertureexpert.com/tips/2012/6/12/reclaim-the-legacy-highlights-shado ws-adjustment-in-aperture.html

  • I downloaded a film from ITunes in HD and had problems, I upgraded to the latest version of ITunes and have then downloaded the film again in SD on my Windows 7 computer, but I still can't get the film to play, any idea's what to do next?

    I downloaded a film from ITunes in HD and had problems, I upgraded to the latest version of ITunes and have then downloaded the film again in SD on my Windows 7 computer, but I still can't get the film to play, any idea's what to do next?
    I've been working at the same problem for hours now and it's really driving me crazy so any help would be greatly appreciated.

    It is working now. I no longer get the message about the item not being available in the US and I can access the store.

  • On 12/23/11 I update the adobe flash player and have had problems since- unexpected closing and freezing. Remove the adobe flash player and those problems resolved. How do I go back to the earlier version of adobe?

    I was prompted by Firefox to update my adobe flash player on 12/23/11, which I did. Ever since then the web site has frozen and/or crashed. I run a internet business and can't have this continue. I uninstalled the flash player and the problems have stopped. I would like to reinstall the earlier version of adobe, since that didn't seem to impact the web site.
    This is the flash player I installed on the 23rd - Flash Player 10.3 for Mac OS X 10.4-10.5 (Intel)

    Your above posted list of installed plugins doesn't show the Flash plugin for Firefox.<br />
    See [[Managing the Flash plugin]] and [[Installing the Flash plugin]]
    You can check the Adobe welcome and test page: http://www.adobe.com/software/flash/about/
    You can use this manual download link:
    *http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller

  • Hello friends, my itunes has stopped working. and the problem report stated the following: Fault Module Name:     KERNELBASE.dll   Fault Module Version:     6.1.7601.17514.................. please can anybody help me?hello friends, my itunes has stopped w

    Hello everybody> my itunes has stopped working and the problem report stated the following:
    Problem signature:
      Problem Event Name:    APPCRASH
      Application Name:    iTunes.exe
      Application Version:    10.5.3.3
      Application Timestamp:    4f14cc3d
      Fault Module Name:    KERNELBASE.dll
      Fault Module Version:    6.1.7601.17514
      Fault Module Timestamp:    4ce7b8f0
      Exception Code:    80000003
      Exception Offset:    0003381b
      OS Version:    6.1.7601.2.1.0.256.1
      Locale ID:    1033
      Additional Information 1:    0a9e
      Additional Information 2:    0a9e372d3b4ad19135b953a78882e789
      Additional Information 3:    0a9e
      Additional Information 4:    0a9e372d3b4ad19135b953a78882e789
    can anybody help me?

    Are you seeing a similar message when launching QuickTime Player?
    What security software is installed on the computer? Have you tried testing in an admin account or after uninstalling tthe security software?
    Use one of the following articles to guide you through removing iTunes and the related QuickTime files.
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7

  • Itunes not workin and the problem displays - m signature:   Problem Event Name:     BEX   Application Name:     iTunes.exe   Application Version:     10.5.3.3   Application Timestamp:     4f14cc3d   Fault Module Name:     QuickTime.qts_unloaded   Fault Mo

    i tunes not working and the problem its displaying is
      m signature:
      Problem Event Name:    BEX
      Application Name:    iTunes.exe
      Application Version:    10.5.3.3
      Application Timestamp:    4f14cc3d
      Fault Module Name:    QuickTime.qts_unloaded
      Fault Module Version:    0.0.0.0
      Fault Module Timestamp:    4cf45322
      Exception Offset:    706e1040
      Exception Code:    c0000005
      Exception Data:    00000008
      OS Version:    6.1.7601.2.1.0.256.1
      Locale ID:    1033
      Additional Information 1:    0a9e
      Additional Information 2:    0a9e372d3b4ad19135b953a78882e789
      Additional Information 3:    0a9e
      Additional Information 4:    0a9e372d3b4ad19135b953a78882e789
    Read our privacy statement online:
      http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
    If the online privacy statement is not available, please read our privacy statement offline:
      C:\Windows\system32\en-US\erofflps.txt
      please help.

    im having this problem to ive uninstalled and installed but this still comes up!!
    Problem signature:
      Problem Event Name:    BEX
      Application Name:    iTunes.exe
      Application Version:    10.7.0.21
      Application Timestamp:    504d85d9
      Fault Module Name:    StackHash_0a9e
      Fault Module Version:    0.0.0.0
      Fault Module Timestamp:    00000000
      Exception Offset:    00000000
      Exception Code:    c0000005
      Exception Data:    00000008
      OS Version:    6.1.7601.2.1.0.768.3
      Locale ID:    5129
      Additional Information 1:    0a9e
      Additional Information 2:    0a9e372d3b4ad19135b953a78882e789
      Additional Information 3:    0a9e
      Additional Information 4:    0a9e372d3b4ad19135b953a78882e789

  • Firefox constantly kicks us off of our verizon email unexpectantly and inconsistently. We have downloaded latest version of Firefox, 3.6, and the problem is still there.

    Firefox constantly kicks us off of our verizon email unexpectantly and inconsistently. We have downloaded latest version of Firefox, 3.6, and the problem is still there
    == URL of affected sites ==
    http://us.mg201.mail.yahoo.com/dc/launch?.partner=vz-acs&.gx=0&.rand=8n9ng1ok4dl52

    Please update to the latest Firefox version by going to www.getfirefox.com as you are using Firefox 3.0.19 as you can see in your useragent key: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.19) Gecko/2010031422 Firefox/'''3.0.19'''

  • Upgrading from 7.5 to version 8: CEM and CCS problem with the EDMT

    Hi All;
    The current UCCE is 7.5 and some scripts and configuration for the CCS and CEM were already done, when I tried to upgrade for version 8 and I used the EDMT version 8 to upgrade the side_A database (logger Database), then an error message appeared which states that CCS and CEM is existed and it should be removed.
    After checking, I discover that UCCE version 8 is no more supporting CCS or CEM scripts and configuration.
    But, how I can resolve this problem as removing all the related configurations and all the related objects in the scripts and the scripts will be very hard and very complex ... what is the solution to overcome this problem?
    I think there should be a proper method or solution from CISCO to resolve this problem.
    Looking forward to hear from someone that can help me.
    Regards
    Bilal

    Hi All;
    The current UCCE is 7.5 and some scripts and configuration for the CCS and CEM were already done, when I tried to upgrade for version 8 and I used the EDMT version 8 to upgrade the side_A database (logger Database), then an error message appeared which states that CCS and CEM is existed and it should be removed.
    After checking, I discover that UCCE version 8 is no more supporting CCS or CEM scripts and configuration.
    But, how I can resolve this problem as removing all the related configurations and all the related objects in the scripts and the scripts will be very hard and very complex ... what is the solution to overcome this problem?
    I think there should be a proper method or solution from CISCO to resolve this problem.
    Looking forward to hear from someone that can help me.
    Regards
    Bilal

  • My problem I worked updated iPhone 3 gs (ios4.1) to version (ios6), and when operating the device required to activate the phone and therefore appears to me aftermarket says (IMEI 01 216 300 555 018 3 ) ICCCID unknown.

    My problem I worked updated iPhone 3 gs (ios4) to version (ios6), and when operating the device required to activate the phone and therefore appears to me aftermarket says (IMEI 01 216 300 555 018 3 ) ICCCID unknown.
    There is no network
    I hope that I showed you my problem

    That's a critical failure. It can not be fixed. It is usually the result of jailbreaking or hacking the phone to unlock it.

  • I upgraded to the new version "4" and it will not load any websites..."unable to locate server" is all i get and cannot figure out the problem ....had to delete and go back to an earlier version whichi understand is unsafe...what to do?

    # Question
    I upgraded to the new version "4" and it will not load any websites..."unable to locate server" is all i get and cannot figure out the problem ....had to delete and go back to an earlier version which i understand is unsafe...what to do?

    That was probably caused by your Firewall blocking the newly installed version of Firefox.
    No known security issues with Firefox 3.6.17, which was just released this past week.

  • HT201401 use a iphone4S and I will say that since I installed IOS6, I block 2-3 seconds the screen, when you open a page in Safari, I salt directly into the sprinboard, and going harder, moving hard, last version I had no problem ...I hope to get a new ve

    I use a iphone4S and I will say that since I installed IOS6, I block 2-3 seconds the screen, when you open a page in Safari, I salt directly into the sprinboard, and going harder, moving hard, last version I had no problem ...I hope to get a new version IOS6.
    had anyone this problems?

    Try This...
    Close All Open Apps...  Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430

  • Audio (and other) problems noted with Keynote version 4.0.1

    Since installing Keynote 4 and the 4.0.1 update, I have noted the following situations and/or problems:
    1) When doing a "save-as" the filename is appended with the suffix ".key" but when I subsequently "save" this file, the suffix disappears. The file seems to open and operate OK nonetheless, but this puzzles and somewhat concerns me that someday Keynote may not recognize the file. This happens whenever I "save" a slideshow after I have made any changes to it.
    2) When playing back a "soundtrack," the audio "glitches" frequently at slide transitions: this occurs repeatedly on my G5 desktop system but not on my MacBook Pro-17. The "glitches" always seem to occur at the same places in the track - which, of course, is also at the same slide transitions. (This problem has spawned several similar questions and threads in this forum.)
    3) Related to #2 above, the "glitches" also interrupt or corrupt the "recording" of that soundtrack, so that the synchronization is off when the slideshow is played back.
    4) If I want to have an audio track play under a series of slides, the only way I have found to accomplish this is to create a separate slideshow with the audio track running as a "soundtrack" and "record" the Builds and Transitions in sync with the audio. If I want to incorporate several of these shows together, I can create a "master" slideshow and Hyperlink each segment to the next. HOWEVER...
    5) When I "record" a "soundtrack" and "synchronize" the Builds and Transitions within the slideshow, everything plays back properly in sync ONLY when the slideshow is played as a stand-alone presentation (i.e. a cold start from the desktop). If I initiate playback of the slideshow via a Hyperlink from another presentation, the soundtrack plays but NONE of the synchronization works at all.
    6) The only way I have found to have an audio track "fade-in" or "fade-out" is to use off-line editing software to record these fades prior to importing the tracks into Keynote. The "Start Audio" Build function is simply a hard "cut" in, and the end of the track is a hard "cut" out.
    These problems are consistent and repeatable facts. Whether they are "bugs" in the software or "design shortcomings" is uncertain. Nonethtless ...
    At the risk of offending the moderators of this forum, I feel compelled to comment that these problems render the audio operations of Keynote less than satisfactory and should be addressed as soon as possible with another update to this visually stunning but audio-challenged application.

    Well Ron S, I re-confirmed why I prefer not to look to tech support for support.
    It seems to me that support's main function is to deflect any critical comments and push the blame back to the user.
    Frankly, I have better things to do with my time and money than try to help a multi-billion dollar enterprise learn about itself.
    So, for the benefit of you and the nearly 400 who have followed this thread, I offer you my latest and probably last attempt to have Apple acknowledge in some small way that "Houston, we have a problem".
    I expect this reply will result in this thread being yanked as well, since I'm expressing negative thoughts about Apple's product and wishing they would do better, which is a non-technical gasp of utter frustration and disappointment. Note that "product" is singular, defining Keynote. My other Apple products serve me loyally and superbly, which is why my huge disappointment with Keynote.
    So here is my correspondence with Tech Support. I've removed names except mine.
    I think it speaks for itself. They have notes from my conversations with them that I have current Apple computers, including a MacBookPro, not an old PowerBook, nevertheless, they have told me that the problem is mine because the fabulous hyper-performing Keynote software is choking my poor old machine (paraphrased muchly).:
    Hi (support),
    That's disappointing news, especially since this test was done on 3 machines: an old G4 400, a 2.0G Dual G5 and an Intel core duo MacBookPro which yielded identical results.
    It is not a hardware issue.
    I do not accept a brush-off that it is my hardware that is causing Keynote to be problematic.
    I will assume that Apple is not interested in addressing these issues in public and that Keynote is substandard software that is in need of re-authoring.
    Sorry to be so blunt, but Apple has set this tone with Keynote, and used its considerable reputation as a leading a/v technology innovator to imply that Keynote will deliver the excellence we Mac users have come to expect.
    I have been a loyal mac user since the SE series and have enjoyed success with the machines and software offered by Apple, and depend on them for my livelihood. I'm currently using FC Studio6 and know that Apple is capable of maintaining its high standards.
    However, Keynote fails to do that, instead behaving like a product that was invented in a teenager's basement and is in beta. I realize that it's not designed as a FCP level product, but it fails at the basic tasks that you advertise it will complete.
    A version 4 product should work as advertised. Keynote certainly does not.
    I'm deeply saddened that Apple seems to have become an iPod entertainment company, interested mainly in profits from entertainment rather than serious useful technology.
    On 2007-Oct-19, at 10:14 AM, (tech support) wrote:
    Hello Sir,
    Unfortunately, this does look like it's mostly a case of some of the new Keynote features slowing down the performance on the PowerBook.
    At this point, there isn't much else we can do in the way of troubleshooting.
    If you are not satisfied with the performance on the PowerBook, using the previous version of Keynote is probably his best option at this point.
    We will continue to research this issue, but at this point it's unlikely I'll be able to find additional suggestions for improving performance, as it looks like it is is reproducible and limited to older models.
    On Oct 16, 2007, at 11:27 PM, Ron Tucker wrote:
    Hi (support),
    Thanks for your recent followup calls. I'm directing a video shoot so am a bit preoccupied.
    Here are the tests I mentioned.
    These are as simple as it gets, and I think highlights the synchronization problem with Keynote.
    Test 1 is straightforward, and demonstrates that a single unedited recorded audio track will maintain mouse click synchronization.
    Test 2 is the same file, but with audio modifications applied to each slide in succession.
    This demonstrates a dramatic synchronization slippage.
    The visuals occur before the click (and audio) markers. Keynote seems to be create delay in audio at each "record and replace" point. This accumulates as the audio is revised in successive slides.
    These tests demonstrate that there is a fundamental flaw in how Keynote handles audio in its most basic application.
    This does not address the slim toolset available, such as lack of insert capability and other basic audio tools, which is a separate design issue, and I suppose subject to "request for enhancement" feedback.
    I've reluctantly abandoned Keynote for my project work at present until these basic issues are addressed and it can be demonstrated that Keynote can successfully execute its feature set.
    <TuckerKeynoteTest.zip>
    Message was edited by: Ron Tucker1

  • We encountered a problem with some client machines that use Firefox version 24ESR and IE8. Ajax requests of aspx pages from Firefox are getting the following er

    I encountered a problem with some client machines that use Firefox version 24ESR and IE8.
    Ajax requests of aspx pages from Firefox are getting the following error from the iis server (iis version 7.5):
    Bad Request - Request Too Long
    HTTP Error 400. The size of the request headers is too long.
    From analyzing the request that was sent to the server, I saw that the request consist of only the viewstate of the aspx page.
    I tried to disable the viewstate for one page and the server got the request correctly.
    I do not encounter any issues on these laptops with postback requests from Firefox or when running the same application with IE8.

    Sometimes that means that the page address sent is loo long.
    Check the link address you are using.
    I can't help you further and will send for more help.

  • Hi. I can install Adobe Flash Player plugin as i usualy did since 5 years. The problem is that firefox is always asking fo it if i i had never install it. I've tried to install firefox newer versions and the problem pesists. Thanks.

    Hi. I can install Adobe Flash Player plugin as i usualy did since 5 years. The problem is that firefox is always asking fo it if i i had never install it. I've tried to install firefox newer versions and the problem pesists. Thanks.

    Hi, glad that worked for you. Also thanks for the explanation as how you came about this. Yes, from my understanding any Install of the CS5, even a trial version Installs the 10.1 (beta/prerelease) versions. It is not clear to me or others why the 10.1 was used in the CS5 instead of the latest version (10.0.45.2). My only guess is that the 10.1 is very close to being released as a shipping version (final release) to the public. The 10.1 had a target date of the first half of 2010. Perhaps that was the reasoning. This is just my opinion:-)
    As I said, many users are having this problem, not just with the CS5, but they Install the 10.1 thinking that will solve whatever problem they may be having with the latest version.
    Your thread is very helpful for other users that may be having the exact problem that you were. For this reason if you marked your thread as answered, they would read it first.
    Thanks,
    eidnolb

Maybe you are looking for

  • Open PFD from R/3 with WebDynpro for Java

    Hi All, Could any one of you please suggest on how to open a pdf from R/3 with a WebDynpro (JAVA) application. For example I was trying to display one PDF-Document from Records Management in my Web Dynpro. Does anyone have a good idea how to solve th

  • Configure Oracle BBDD to work with Windows KDC

    Hi all, I'm having problems in configure Oracle 11g running in Windows 2003 Server R2 with another W2003 Server R2 where AD is located and also KDC server. The problem is when I try to retrieve TG initial ticket using okinit. Output of okinit after e

  • Xbox refuses to now recognize iPod!!

    Son recently downloaded newest update to his iPod. Now his Xbox won't recognize it and he can't listen to his music from his iPod while using his Xbox. Why? What happened? Is the newest update causing this issue? Does anyone have any idea why this wo

  • Force User to Change Password with Shared Services authentication

    Hi Everybody, is there a way to set a property that user needs to change his password when he connect's the first time to web analysis? Version is 9.3 Thank you very much in advance. Best Regards //nois

  • .tdms report generation with .pdf format

    Hi, My problem is a kind of report generation problem.My data logging format is .tdms format and i use tdm file viewer function to view my datas but i didnt use tdm data report generation function.How can i use this function with my code.Actually i w