Serialization using different JVM versions...

Can someone please verify the following quote?
"Serialization between JVMs is not compatible, meaning that something serialized by code under 1.3.1 won't be deserializeable under 1.2.2. You might be ok for some
operations, but eventually you'll have subtle or overt problems."

So are you saying that as long as the class does not change, then it does not matter which version of JVM you are using?
I have looked through the serialization documentation and the only thing I read that seemed to indicate potential problems for serialization is when the class has a change on one side or the other. This seems to match what you are saying. Is that what you are saying?
That is not quite correct.
As long as the serialVersionUID of the serialized
object matches that of the class found during
deserialization or the implementation of that class
can handle the old version's SUID. Take a look at the
serialization specification
(http://java.sun.com/products/jdk/1.2/docs/guide/serial
zation/spec/serialTOC.doc.html) for more details.
I have applications running where objects serialized
and passed between Java 1.1.7, 1.2.2 and 1.3.1
processes with no problems.
Chuck

Similar Messages

  • Interfacing different JVM version

    hello gurus,
    quick question....
    Will different JVM versions running concurrently will interfere with each other ( eg. mouse events, etc).
    any response appreciated...thanks...@

    No,
    Each VM is it's own little world. There would be no interaction between them unless you specically wanted it. Even in that case GUI would behave as they should in each version.
    Hope this helps.

  • Serialization on different JVMs

    Hi,
    I was wondering, if I serialize an object on one JVM, will it deserialize correctly on a different JVM?
    For example, if I serialize an object using Sun's JDK, will it deserialize correctly on, say, GNU Classpath?
    Thanks

    Be careful to check the class API documentation as some classes carry a warning:
    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. As of 1.4, support for long term storage of all JavaBeansTM  has been added to the java.beans package. Please see XMLEncoder.

  • Use different JRE versions in Oracle Discoverer 10g(10.1.2.0)

    Hello.
    We have a Oracle Forms application which also uses Discoverer Plus and Reports.
    Problem is we have some user clients who uses XP/IE 6.0 while otheres has Vista IE 8.0.
    Based on here
    http://www.oracle.com/technetwork/middleware/ias/downloads/as-certification-r2-101202-095871.html#BABGCBHA
    depending on OS/browser different plugin versions are required. If we
    Can we have different JRE versions in separate clients? Kinda confused with the matrix.

    Hi;
    Please check below which could be helpful for your issue:
    Overview of Using Java with Oracle E-Business Suite Release 12 [ID 418664.1]
    Deploying Sun JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite Release 12 [ID 393931.1]
    Oracle Jinitiator and Sun JRE/JPI Support for Oracle Forms Applications [ID 555720.1]
    Regard
    Helios

  • Different JVM versions in a SAP system

    I have an SAP system which consist of 3 servers, and 2 of them have jvm version - 1.4.2_17-b06 and the other one has JVM version 1.4.2_12-b03, so i wanted to know will this setup affect the system/performance
    thank you
    Jonu Joy

    Hi
    Will my system/performance be affected if my CI has a different java version compared to the version on the app servers
    As per my knowledge it wont effect your sytem performance,you can still proceed with what you have now but its better to have same JAVA version
    Regards
    Uday

  • Use different java versions to start weblogic and run application.

    Hi All,
    I'm currently using weblogic707 which need java 1.4.1 to start up. However, i have this application that run only on java version 1.3.1. Is there any possibility to configure the weblogic to run my application on different java version?
    Thanks.
    wls

    Hi HMLunger,
    Did you install the SQL Server instance successfully? If not, please help to post the summary and detail logs for analysis. By default, the logs can be found in: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log.
    However, if you fail to start SQL Server Express service after successfully installing SQL Server,
    you might have to change the paths of the files by running the following scripts from the command prompt. For more details, please review this similar
    thread.
    NET START MSSQL$SQLEXPRESS /f /T3608
    SQLCMD -S .\SQLEXPRESS
    ALTER DATABASE model MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
    ALTER DATABASE model MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
    go
    exit;
    ALTER DATABASE msdb MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
    ALTER DATABASE msdb MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
    NET STOP MSSQL$SQLEXPRESS
    In addition, you can follow the steps in this KB article to uninstall SQL Server.
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • Starting CF instances using different jvm.config files

    Hi.
    There are instructions for creating/using individual JVM
    configs for each
    CF server instance here:
    http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_18206
    The instructions cover starting the instance and specifying
    the alternate
    config via both command line, or as a Windows Service.
    But what about via JRun Administrator? I see no option to
    specify any
    arguments for the "start" process.
    (I have to concede whilst I've *started* googling for an
    answer, I am being
    lazy and asking here before I've got too far with it: sorry).
    Adam

    brahms_x01, while this doesn't help the orginial poster -
    have you ever considered spending $195 and calling support for
    help? You'll spend _A LOT_ more than that upheaving and moving to a
    new application server (which will also have its own set of unique
    issues - including crashing). If all you've done is complain about
    your problems on the fourms, then I've got no sympathy for you.
    This isn't an official support center.
    nyck6623 is on the right path. The default GC, quite frankly,
    sucks. But you need to be _very_ careful switching out your GC. Do
    it wrong, you can make things much worse. See these documents:
    http://www.javaperformancetuning.com/
    http://www.pixl8.co.uk/index.cfm/pcms/site.resources.cfmxtuning/
    http://java.sun.com/performance/reference/whitepapers/tuning.html
    http://java.sun.com/performance/
    As always, becareful in what you do, and load test load test
    load test. You also might want to look into turning on VerboseGC so
    that you can see what your heap is doing. It'll write out to your
    server-out.log file. That'll help you tune the JVM as well.
    Finally, you might want to stop the GC from running every 60
    seconds. When the GC is running, ColdFusion isn't.
    Turn on VerboseGC = -verbose:gc -XX:+PrintGCDetails
    -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC
    Force GC = -Dsun.rmi.dgc.server.gcInterval=3600000
    I'd bump your threads up to 10 or 12, and limit the cached
    queries to 50. And if you can afford to do it, add some memory to
    the servers so you can up your -Xmx limit. CF likes to breathe,
    deeply. I've got 4GB in my servers, and I set -Xmx1024M and the
    heap routinely runs around 700MB (with CF actually using around
    200MB).
    You might also want to consider turning on metrics so you can
    see how your threads and memory are doing.
    Turn on Metrics =
    http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19120

  • Effect performance when using different IE version

    Dear Guys,
    When I use IE version 6.0.2800.1106 , after click some BW report in
    Portal , it is ok . logon to BW system , use SM04 , i can see one
    session that i have connected. After logout from portal , this session
    in SM04 will disappear.
    But I use IE version 6.0.2900 , first , i click a BW report in Portal ,
    there is one session in SM04 that i have connected. second , i continue
    to click another BW report in same Portal session , another session
    will generate in SM04 and old session in SM04 will not disappear.third,
    after i completely logout from Portal , these session in SM04 still not
    disappear.
    I don't know why? Would you like helpme to find it out?
    Thanks,
    Our Portal Platform : SP2 patch4 , J2eeEngine level 22

    I would try asking them if there are any known bugs in the new IE regarding session handling.
    Say that you have a web application which behaves differently (opens new session) depending on which browser version you are using.
    It might be a good idea to not initially mention SAP BW since then they might automatically conclude that its SAP's fault (which I believe is not the case)

  • Synch using different OS versions

    I can't get my OS10.3.9 machines to sync with my 10.4.10 machines. It is like having two accounts.
    I have two 10.4.10 and four 10.3.9 machines.
    Any idea if this can be overcome.

    Despite the fact that you continue to use Mac OS X 10.3.9 and it's 'link' to .Mac is iSync, you are asking in the wrong forum. A forum for .Mac Sync users is located elsewhere on Apple Discussions.
    On October 18, 2007, Apple sent a message to .Mac subscribers as follows:
    "Dear .Mac member:
    Due to improvements being made to .Mac Sync on October 19, 2007, please note the following changes.
    Mac OS X version 10.4 Tiger users:
    To ensure uninterrupted service, you must be using Mac OS X version 10.4.10. To check which version you’re running, select About This Mac in the Apple menu. If you are not running version 10.4.10, click the Software Update button and install the update to 10.4.10.
    Mac OS X version 10.3 Panther users:
    To accommodate new enhancements, .Mac Sync will no longer support syncing of calendars between a Panther-based Mac and a Mac running Tiger or Leopard. Syncing calendars between Mac computers running Panther is unaffected."
    Roughly translated: you will never again be able to synchronize your Mac OS X 10.3.x platforms to those running Mac OS X 10.4.x or 10.5.x using .Mac Sync. You may continue synchronizing Mac OS X 10.3.x platforms to each other alone using iSync.

  • Wrong Out while Cropping image using different java version

    Hi,
    my task is to crop the image based on x,y,w,h coordinates, but thing is i am getting different cropped images while using java 1.6 and java 1.7.
    in java 1.6 the x and y coordinates starting from 0,0 instead of given values.
    please find the code below:
    import java.awt.Image;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import javax.imageio.ImageIO;
    public class CropImage {
    Image image;
    // Insets insets;
    BufferedImage img = null;
         public CropImage(){
              try{
    img = ImageIO.read(new File("D:/temp/","Capture.gif"));
    File outputfile = new File("D:/temp/","saved.gif");
    // 49,158,58,7 -x,y,w,h
    ImageIO.write(img.getSubimage(58, 6, 158, 50), "gif", outputfile);
              }catch(Exception es){
                   es.printStackTrace();
         public static void main(String args[]){
              new CropImage();
    Thanks,
    shashanka.
    Edited by: user8956018 on Dec 23, 2012 10:54 PM

    Note 791765 - Mixed JSESSIONID Cookies from Different Servers - resolved the issue

  • File download via BSP using different SAP versions

    Hi Everyone,
    I have been using code based on Brian McKellar's excellent Blog (/people/mark.finnern/blog/2003/09/23/bsp-programming-handling-of-non-html-documents). The code works great in the following system:
    SAP_BASIS     620     0038     SAPKB62038     SAP Basis Component
    SAP_ABA     620     0038     SAPKA62038     Cross-Application Component
    However i am now trying the same code in our new 7.00 SAP system which is a
    SAP_ABA     700     0013     SAPKA70013     Cross-Application Component
    SAP_BASIS     700     0013     SAPKB70013     SAP Basis Component
    When I try it in our 7.00 system, the download does not work. It tells me that the document is incomplete or corrupted.
    Specifically the code that is being used is as follows:
    data: cached_response type ref to if_http_response,
           lv_xlen type i,
           lv_guid type guid_32.
    create object cached_response
           type cl_http_response exporting add_c_msg = 1.
    lv_xlen = xstrlen( lv_xstring ).
    cached_response->set_data( data   = lv_xstring
                        length = lv_xlen ).
    cached_response->set_header_field(
          name  = if_http_header_fields=>content_type
          value = lv_mtype_string ).
    cached_response->set_status( code = 200 reason = 'OK' ).
    cached_response->server_cache_expire_rel( expires_rel = 120 ).
    call function 'GUID_CREATE'
      importing
        ev_guid_32 = lv_guid.
    concatenate runtime->application_url '/' lv_guid '.'
                lv_doc_hdr-obj_type
                into lv_cached_url.
    cl_http_server=>server_cache_upload( url      = lv_cached_url
                                         response = cached_response ).
    call method runtime->server->response->redirect( url = lv_cached_url ).
    navigation->response_complete( ). " signal that response is complete
    So now I have a choice: I can log an OSS but I doubt SAP will help as this is 'custom code'. It is in our Z BSP.
    Can anyone suggest how I can even begin to debug this issue?
    Regards,
    Alon

    i tried the following code on a WAS 7.00 SP14 and it works as expected.
    create object cached_response type cl_http_response exporting
      add_c_msg = 1.
        cached_response->set_data( file_content ).
        cached_response->set_header_field( name  =
      if_http_header_fields=>content_type
                                           value = file_mime_type ).
        cached_response->set_status( code = 200 reason = 'OK' ).
        cached_response->server_cache_expire_rel( expires_rel = 180 ).
        call function 'GUID_CREATE'
          importing
            ev_guid_32 = guid.
        concatenate runtime->application_url '/' guid into display_url.
        cl_http_server=>server_cache_upload( url      = display_url
                                             response = cached_response ).
    call method runtime->server->response->redirect( url = display_url ).
    navigation->response_complete( ).

  • Client using different Axis version, is this OK?

    If the client using our service is using Axis 1.1 and our service is running on Axis 1.0, should it still work? I generated a wsdl document for them and they are getting errors trying to create their client with it. Any info would be helpful.
    Thanks, Donna

    I had not meet problem similar what you are said, I feel it's ok.

  • Using separate JVM for a java program, other than what's installed in OS

    Hello all,
    I am trying to use different version of java executable , other than using the version of java installed in the OS, in the windows.
    Is linux, I believe I have used different version of java ( I suppose using different JVM ? )
    Would there be any conflict between the version of java installed in the computer and the version of java in my program ?
    Thanks
    Kyle

    venvidu wrote:
    I see,
    So, each java executable from the separate version is its own JVM + executable java code and different java executable can be run at the same time. I don't know what you mean by that. You start a new JVM when you start java.exe or javaw.exe (on windows), and you can have several VMs running, both of same version, and of different versions.
    >
    Then, in the windows OS, is there anything in the system file which store specific information about the installed java version ?The registry has some information, but a VM doesn't need to write anything to the registry, so it all depends on how you installed the VM.
    >
    The idea is that, on top of the installed version of java, I am trying to included pre-compiled java in my program. Huh? I don't understand that.
    So that my program uses its own java version Ok
    -- most likely, the latest version Why do you think so? You can release your software today with a JRE, but that JRE might not be the latest version 1 week later.
    -- regardless of what the current windows OS has.
    I know this poses no problem in the linux OS, but is there anything in the windows OS that might potentially corrupt the above approach ?I'm not sure that I have understood exactly what you said, but I don't see any problems.
    Kaj

  • CK24 - mark and release with different costing version

    Hi,
    We are currently using standard costing variant PPC1 and costing version 1 to mark and release the standard costs. However when we try to recost the material cost due to price changes, system does not allow to mark & release revised standard cost if we try to mark & release on same day. pls note standard cost estimate is already released for the month. And we do not want to delete existing standard cost estimate. Instead we want to explore other options. We are using 4.7.
    My questions are :
      a) Can recost using costing version 2? CK11N allows to save the costing result. However in CK24 Marking allowance, system does not allow to change Costing Version. is there any config option to change this.
    b) If  we cannot use different cost version, can we update material cost with same costing variant (PPC1) and costing version (1) in this case. However when we tried to do recost with same costing variant & verison on same day, system gives an error 'Material AAAA in plant MMM has a released cost estimate.'
    Any inputs on above issue highly appreciated.
    thanks
    Sunil

    Hi,
    While, you can use any of the Costing versions to mark & release Standard cost estimate, you can release Cost estimate only once in a fiscal period. If you want to release correct prices, then you have delete existing released cost estimates using CKR1 transaction and then re-run CK40N to release.
    Hope this helps.

  • Different Client Versions in OWB 9i and 10g

    Hi,
    Our client is using 9i OWB Client Software, and we are planning to use OWB10g Client Software on Windows Platform.
    Will there be any compatability issues while moving from 9i OWB Client Software to 10g Client software.
    And what are other parameters we need to consider, if possible please mention any documents links available.
    Kindly let me know the pros/cons in this model .
    Here my main question is will there be backward compatibility, i.e repository in 9i database need to connect by using the OWB 10g client?
    With Regards,
    Kranth...
    Edited by: user8536050 on Jan 18, 2010 1:44 AM

    Hi,
    you cannot use different client versions on the same repository. If you want to use owb 10g, then you have to upgrade the repository to 10g. Then you can only use 10g clients, owb 9i clients cannot connect to that repository.
    Regards,
    Carsten.

Maybe you are looking for

  • Acrobat entangled in TCS2, won't run alone now that TCS2 trial is over

    Platform: Windows Vista Software installed and operational prior to problem: Acrobat 9, FrameMaker 9, PhotoShop, Captivate, etc. I recently installed the trial version of the Technical Communication Suite 2 to try out this software for my company (th

  • MIgo:

    Hi all, When I am trying to receive the goods, it says "PO has no Items", But I dont see anything wrong with the PO. Please help. Utpal

  • Online Redefinition of Binary XML column not possible?

    DB version 11.2.0.1 x64 (still working on upgrading to 11.2.0.3) create table redef_test (         id number(19,0) not null,         xml XMLType,         primary key (id)     XMLTYPE COLUMN "XML" STORE AS CLOB; table REDEF_TEST created. exec dbms_red

  • C7280 all in one printer error msg

    There is obviously an update needed to the software - where is the software update? I have Mac OX10.9 system.  Have tried going into system prefs scan/fax to scan from the utility window - it worked once but never again. when I scan HP scan window I

  • Cannot create vault; crashes Aperture

    Hello, I have Aperture 2 (latest update) and Snow Leopard (also latest update). I have a library stored on an external hard drive connected by USB. I can open Aperture and work in it just fine (although I do get the annoying serial number issues that