Problem in deserialization with different versions of JDK

I have problem related to serialization, pls suggest the most appropriate solution, the problem is that I have a class AAAA.java which extends AbstractListModel.java class of JDK, and it is serializable. When i saw the serialVersionUID of AbstractListModel.java using the java tool serialver in jdk 1.3.1 from the command line it gives 2622425607724314306 (Unique ID of class) but when i saw it in JDK 1.4.1 then it given -3285184064379168730. As the UID is changed from JDK1.3.1 to 1.4.1, Now the problem is that i serialized a file which uses AAAA.java using the 1.3.1 and now i want to open that file in my project using 1.4.1 it gives exception.
java.io.InvalidClassException: javax.swing.AbstractListModel; local class incompatible: stream classdesc serialVersionUID = 2622425607724314306, local class serialVersionUID = -3285184064379168730
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:459)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
Can u suggest me appropriate solution as this file must be desirialized (Compatibility issue) as it is generated from project.
U may also try using this command in jdk 1.3.1 & 1.4.1
on command prompt
serialver javax.swing.AbstractListModel.

From the API (you already know this, though through experience...)
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future release of Swing will provide support for long term persistence.
So there seems to be no easy solution (in 1.4 you would use XMLEncoder for persistence with future versions, no possible in 1.3.1). You will probably have to study the serialized code and figure out how to deserialize manually... like find what the header size and format is, how objects' classes and values are labeled etc, then rebuild the object on the receiving end using a datainput stream or something...

Similar Messages

  • JNI with different versions of jdk

    Hi
    We currently have some JNI code that is running under jdk1.1.8. We are trying to upgrade to jdk1.2.2, and are fidning that the JNI is not working.
    Using jdk 1.2.2 I have re-compiled the Java class with the native methods, re-generated the javah header file, and made sure that the C program includes the right version of jni.h.
    When we try to call a native method that should return a String, it just returns null.
    Can anyone advise me on this - I am at my wits end!
    many thanks
    Lyndsey

    Need a bit more info. I've used JNI with 1.2.2 and it works fine.

  • How can I read pdf files from LabVIEW with different versions of Acrobat reader?

    How can I read pdf files from LabVIEW with different versions of Acrobat reader?
    I have made a LabVIEW program where I have possibility to read a PDF document.  When I made this LabVIEW program it was Acrobat Reader 5.0.5 that was installed on the PC. Lather when the Acrobat Reader was upgraded to version 6.0, there was an error when VI tries to launch the LabVIEW program. And Later again when we upgraded to Acrobat Reader 7.0.5 I must again do some changes and rebuild the EXE files again
    It isn't so very big job to do the changes in one single LabVIEW program, but we have built a lot of LabVIEW programs so this take time to due changes every time vi update Acrobat Reader. (We have build EXE files.)
    The job is to right click the ActiveX container and Click "Insert ActiveX Object", then I can brows the computer for the new version of acrobat Reader. After this I must rebuild all the "methods" in the Activex call to make the VI executable again.
    Is there a way to build LabVIEW program so I don't have to do this job every time we update Acrobat Reader?
    This LabVIEW program is written in LabVIEW 6.1, but I se the problem is the same in LabVIEW 8.2.
    Jan Inge Gustavsen
    Attachments:
    Show PDF-file - Adobe Reader 7-0-5 - LV61.vi ‏43 KB
    Read PDF file.jpg ‏201 KB
    Show PDF-file - Adobe Reader 5-0-5 - LV61.vi ‏42 KB

    hi there
    try the vi
    ..vi.lib\platform\browser.llb\Open Acrobat Document.vi
    it uses DDE or the command line to run an external application (e.g. Adobe Acrobat)
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • Java Cache Viewer shows duplicate URL with different versions

    In doing some testing lately we have come across a couple of situations where the same URL is showing in the JAVA cache viewer with different versions to them.  In the case of a 1.7 JRE this is not causing any adverse effects however when utilizing a 1.6 JRE we are getting messages about mixed mode for the JAR files.
    The jar file is signed as below:
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.8.2
    Application-Library-Allowable-Codebase: *
    Application-Name: named_applet
    Built-By: relbuild
    Permissions: all-permissions
    Created-By: 1.6.0_17-b04 (Sun Microsystems Inc.)
    Caller-Allowable-Codebase: *
    Codebase: *
    understanding the need to change the wildcard's to domains as we move forward.  I am wondering why the jar file is being listed and called twice and why it is being recognized as signed one time and not the next.
    The URL is identical in the cache viewer and the java console says it is not found in the cache when it is used the second time, even though previously in the session is finds it with the correct version.
    Any advice would be helpful

    that i even know, but the problem is that i do not have that version of java re installed, but i found distribution 07 of the same java version, i'll try it out with that.
    but when it still doesn't work, then i still would like to find the link where i can download java version 1.4.2_06.

  • I want to connect to a network printer hp cp1518ni with different versions of windows (win7& winxp)

    I want to connect to a network printer hp cp1518ni with different versions of windows (win7 & winxp) . My pc with win 7 work ok but the pc with win xp not "see" the printer on the network. What is the additional driver should I install?
    thanks
    This question was solved.
    View Solution.

    Hi @OHIMATAS,
    I see by your post that you are unable to network the printer to the Windows XP computer, but the Windows 7 computer is connected. I can help you with this.
    Make sure the Windows XP computer is connected to the correct network name, not a Guest network either.
    Print a configuration page to get the printer's IP address.
    Printing a Configuration Page.
    Try and access the printer's Embedded Web Server on the Windows XP computer.
    Type the IP address into your web browser's address bar. (Internet Explorer)
    Did it load the webpage?
    If you can't access the printer's EWS, then check the IP address on the computer to see if the first 3 sets of numbers match the printer's IP. They have to match to be on the same network.
    Go to start, type run in the search box, type in cmd, then type ipconfig.
    Check the IPV4 address.
    Now check the IPV4 address for the printer.
    Do the first 3 sets of numbers match?
    Try and ping the printer.
    In the same window, type ping printers IP address (space between ping and IP address)
    What are the results?
    Run the add printer wizard through printers and faxes, if you were able to access the printer's EWS.
    Please provide in detail the results if you are still having issues.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Can PI work with different versions of MQ?

    Hello
    I have requirment to let PI (7.1) communication with different versions of MQ (5.3 and 6.0). However I doubt that this is possible.
    As for MQ, the JMS drivers of the MQ needs to be deployed to PI. For MQ 5.3 and 6.0, different drivers (6.0 has additional jar files as 5.0) are to be packaged into com.sap.aii.adapter.lib.sda and deployed to PI. There is no way you can deploy different version of drivers onto the same PI box. even if you can deploy different version of hte driver to PI box, it won't work in runtime, simply because, when the driver is loaded, there is no way to tell PI class loader which version of class (driver) to load.
    how do you guys think of this?
    Thanks
    Jayson

    Hi
    I think that the 6.0 version should be backword compatible and should work with 5.3 also.
    Did you tried it?

  • Bible software with different version

    Hi all, thanks for all good work you are doing here.
    Please I want to ask: is it possible to have a parrallel bible application in my phone? I mean a bible with different versions as one application in my phone?

    Steve,
    Each web application has its own session within a J2EE container. You cannot share sessions, unless you deploy both apps as one web application which is probably not what you want. So, yes, the only work around I can think of is abandoning container-managed security so you can navigate to the other web app with some request params that cause an "auto-login" to happen.
    Steven Davelaar,
    JHeadstart Team.

  • Problem with different versions of Page Headers

    Gurus, I have a strange problem. I need to have different Page Header format for first page and another format for the rest of the pages. So as suggested in the forums, I did the page setup for Header and Footer with “different first page” option in MS Word. This is not working. I am still seeing the First Page Header format on all the pages. I checked the RTF, there is no section break or any other special breaks in there.
    Any idea why it is not working ?. I can send the Word doc and XML input files.
    Thanks
    Sub

    Is there some way to attach the RTF template and XML input here?.

  • Running executables that have been compiled with different versions of a same vi

    I am writing a LabVIEW 7 program on Windwos (NT 4.0 up through XP) that will have to simultaneously call and run at least two executable modules. Both of these modules will be written using some of the same utility vis from my user libraries. How can I run the two modules if they have each been compiled using different versions of the utility libraries (i.e. the two executables will have vis with the same name but with slightly different code)?
    I know i could dynamically call each vi by reference node, but that can get a bit cumbersome with dozens of vis...

    Hi meludwig,
    Unfortunately, LabVIEW keeps track of the different VIs in memory using the VI's name. Therefore, if you want to load multiple executables that use the same VIs but with different code, you will want to rename those VIs. LabVIEW cannot distinguish between 2 VIs with the same name but with different code. Dynamically calling the VIs using VI Server, like you mentioned, will also potentially cause problems because the executables might try to load same VI name into LabVIEW memory at a time and this will still causes problems.
    My suggestion would therefore to be to rename the utility VIs to another name and save it as a custom subVI in that program. Then, make sure to include that custom subVI in the App Builder executable and you should b
    e golden.
    Kileen C.
    NI

  • Open a Document with different versions of Numbers on different devices?

    Hello!
    I'm a beginner with Numbers application.
    I work with Numbers 3.1 version on my Mac, and Numbers 1.7.3 version on my IPad.
    Documents created on my Mac is shared via Iclous, but cannot be opened on my Ipad.
    What can i do?
    Thanks for your help!

    Hi meludwig,
    Unfortunately, LabVIEW keeps track of the different VIs in memory using the VI's name. Therefore, if you want to load multiple executables that use the same VIs but with different code, you will want to rename those VIs. LabVIEW cannot distinguish between 2 VIs with the same name but with different code. Dynamically calling the VIs using VI Server, like you mentioned, will also potentially cause problems because the executables might try to load same VI name into LabVIEW memory at a time and this will still causes problems.
    My suggestion would therefore to be to rename the utility VIs to another name and save it as a custom subVI in that program. Then, make sure to include that custom subVI in the App Builder executable and you should b
    e golden.
    Kileen C.
    NI

  • Iphone synced with different version - purchases will be erased?

    I have had problems with itunes which resulted in having to relocate the program to a different directory on the same PC (vista).
    Now when I plug in my iphone it says it is synced with another version of itunes and therefore if I sync music (for example) everything will be erased from the iphone.
    Does this mean I will lose purchases of songs made directly to the iphone before syncing (and also purchased apps)?
    If so, does anyone know how to avoid losing everything...?

    Use the Transfer Purchases command in iTunes prior to syncing.
    (54542)

  • Firefox Sync on same computer with different versions of Firefox

    Hi,
    I know how to use Sync on two different computers and a mobile device, but how can I Sync two or more different versions of Firefox (Nightly, Beta, Aurora, Release Candidate)? I can't get the code from the other computer/firefox because I can only have one version of Firefox open at the same time. I tried it. This is my setup. I have a different Profile for each version of Firefox I have. I also have each version of Firefox installed in a different directory, for example:
    Nightly - C:\Program Files\Mozilla Firefox\Nightly\
    Aurora - C:\Program Files\Mozilla Firefox\Aurora\
    Beta - C:\Program Files\Mozilla Firefox\Beta\
    Release Candidate - C:\Program Files\Mozilla Firefox\Release Candidate\
    and my Profiles are in my
    Nightly - C:\Users\David\AppData\Roaming\Mozilla\Firefox\Profiles\David-Nightly\
    Aurora - C:\Users\David\AppData\Roaming\Mozilla\Firefox\Profiles\David-Aurora\
    Beta - C:\Users\David\AppData\Roaming\Mozilla\Firefox\Profiles\David-Beta\
    Release Candidate - C:\Users\David\AppData\Roaming\Mozilla\Firefox\Profiles\David-Release Candidate\
    and I run Firefox with the following command (Properties/Target)
    "C:\Program Files\Mozilla Firefox\Nightly\firefox.exe" -P "David-Nightly"
    "C:\Program Files\Mozilla Firefox\Nightly\firefox.exe" -P "David-Aurora"
    "C:\Program Files\Mozilla Firefox\Nightly\firefox.exe" -P "David-Beta"
    "C:\Program Files\Mozilla Firefox\Nightly\firefox.exe" -P "David-Release Candidate"
    Can anyone help me so that I can Sync all the accounts (basically, just the bookmarks), so I will have access to all my bookmarks, instead of going to the firefox version I saved it in? I would appreciate any and all assistance concerning this matter.
    Thank You.

    Use the -no-remote command line switch to open another Firefox instance with its own profile and to run different Firefox instances simultaneously, but do not use -no-remote with the default browser and the default profile.
    * http://kb.mozillazine.org/Opening_a_new_instance_of_Firefox_with_another_profile
    Enter all details like the account name (email address) and password and the 26-character Sync key manually to connect to an existing sync account instead of using the 12-character code to pair a device if pairing isn't possible.
    # open "Tools > Options > Sync" or "Firefox > Set Up Sync"
    # click "Set Up Firefox Sync" to go to "Firefox Sync Setup"
    # click "I Have an Account" : Connect
    # click "I don't have the device with me" at the bottom to enter the account settings (email, password, sync key)
    # click the "Sync Options" button at the bottom to select what to sync (Sync Options only affect the first sync)

  • How to deal with different versions of Idocs in XI

    Hi,
    I am doing a scenario IDoc to IDoc but on both sides SAP versions are different say 5.0 and 4.6
    I have done all the configuaration and it is working fine.
    But in sxmb_moni getting "Outbinding"(this is not error)
    and in attributes in trace it is saying "segment version"..
    i guess while transporting to QA and Prod it might trigger some problems...
    i could not find any docs properly in SDN......
    could anyone give input how to deal situation like this?
    regards.

    HI Swarup,
    thanx for the response.
    i did the same thing...i imported 2 different versions into xi and used in mapping.and interface is working fine.
    what i am concerned is : will there be any problem in future while transporting to different environments?
    and why it is showing 'segment version' in attribute in Trace in sxmb_moni....
    any inputs will be help full....
    Thanx in advance.
    regards.

  • Can NI-PSP be used to communicate between machines developed with different versions of LabVIEW?

    Hi all,
    A customer has a large PC application developed with LabVIEW 2010 SP1.
    They would like to add extend their system with a cRIO-9075. According to this document (ftp://ftp.ni.com/pub/devzone/tut/crio_software_versions.htm ), the minimum supported version of LabVIEW (with Scan Engine support) is LV 2011.
    To minimize risks, it is preferred that we don't upgrade LabVIEW for the main application, which is atively being used in production.
    I was thinking of developing the cRIO software in a newer version of LabVIEW (say, LV 2013 SP1), and using shared variables only to communicate between the PC and the cRIO.
    Is this a viable option? Does it matter if the PC and the cRIO have different versions of the LV runtime?

    It shouldn't matter, but then with shared variables you can never know for sure -- there are so many things that can make them break.
    You might be money ahead to write the comm using TCP/IP. You know that will work.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Managing/Updating devices with different versions of iOS

    Hi
    I help manage a series of Apple Devices in our enterprise many of which have not recentlyl been updated to "newer" iOS versions. A handful of tehm go back to 4.2/4.3/5.0
    I was curious to know if there were any upgrade recommendations or expectations to 8.1. Does it need to be a staged update for the oldest versions, is it even possible to do a staged update? Are there considerations that need to be made prior to encouraging users to backup and upgrade to the latest iOS?
    Thanks in Advance.

    Actually, on looking closer:
    When I open the .nef files (double click from Bridge), CR 5.5 launches.
    When I open .jpg files (CR icon on toolbar or "Open in Camera Raw" menu option, also from Bridge), CR 5 launches.
    How / why would I have two versions - and with different menu options?

Maybe you are looking for