Problem in getting object while shifting from java1.4 to java1.6!!

hi all, i stored my object in file using serialization in java1.4. now i am shifting to java1.6 and when i am reteriving the object, i am getting the exception
java.io.InvalidClassException:data.SessionDVO; local class imcompatible; stream classdesc serialVersionID= -78952647 .... , local class serialVersionID= 45628....
This is the version id error. One solution is to define the class versionID in SessionDVO class which static and final, so cant be changed at runtime. but since i didnt define it earlier in SessionDVO class , so while reteriving the object , i am getting this error.
Can anyone help me in this case???
below is the code which im using for reteriving the object
                                        FileInputStream fis = new FileInputStream(filePath);
                                        ObjectInputStream in = new ObjectInputStream(fis);
                                        SessionDVO session = (SessionDVO)in.readObject();

hi dear on windows when i am using Mac serialVersionID it gives me this error
java.io.InvalidClassException: data.SessionDVO; local class incompatible: stream classdesc serialVersionUID = 4640646385536229406, local class serialVersionUID = -3687353918251388251
private static final long serialVersionUID = 4640646385536229406L;
when i change versionID to this versionID on windows it shows me error
    java.io.InvalidClassException: javax.swing.text.AbstractDocument; local class incompatible: stream classdesc       serialVersionUID = -116069779446114664, local class serialVersionUID = 6842927725919637215when i use versionId below one
private static final long serialVersionUID = -116069779446114664L;
then it shows me this error
java.io.InvalidClassException: data.SessionDVO; local class incompatible: stream classdesc serialVersionUID = 4640646385536229406, local class serialVersionUID = -116069779446114664now i am confused which i should use here???

Similar Messages

  • Problem in getting the database connection from a connection pool

    Hai All,
    I am facing a problem in getting the database connection from a connection pool created on weblogic server 8.1.
    I am using the Oracle database 8.1.7.
    I have configured my connection pool, datasource and JNDI in weblogic.
    In my java program i have the following code to retrieve the connection.
    import java.sql.*;    
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    class jdbcshp1 {
        public static void main(String[] args) {
         Connection connection = null;
         try {
               Hashtable ht = new Hashtable();
               ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");  // Wanna get rid of this.
               ht.put(Context.PROVIDER_URL,"t3://localhost:7001"); // wanna get rid of this.
               // Get a context for the JNDI look up
               Context ctx = new InitialContext(ht);
            javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("myjndi1");
              //Create a connection object
              connection = ds.getConnection();
         The above code is working fine but, the two ht.put statements are creating problem.
    The problem is, after converting the application into WAR file it can be deployed
    on any machine or different port on same machine. My application fails if its deployed on
    weglogicserver which is at different port.
    Is there any way that i can get rid of those ht.put statements or any other way to solve the problem.
    any help is appreciated.
    Thanks in advance
    Pooja.

    Hai All,
    Firstly, thanks for ur reply.
    Even i have seen some code which uses context constructor with out any parameter and works fine.
    i dont understand why its not working for my code.
    When i remove those ht.put code and use context constructor with out any parameter, it giving an error.
    Context ctx = new InitialContext();
    javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("ocjndi");
    connection = ds.getConnection();The error is as follows:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    the above error is forcing me to include those code but if the port number is changed the code will not work. Plz let meknow if some setting have to be made.
    I appreciate all ur valuable help.
    Thanks once again.
    Pooja.

  • I am havig an error while shifting from one tab to the other mozilla firefox stops for some seconds.

    error while shifting from one tab to other''''''

    I've followed what I can of that error, and from what I'm reading, your hard disk is doomed. Some people report that they've been able to reinstall OSX on the same disk and use it for as long as a few months, but eventually the error returns.
    Here's what I suggest:
    Step 1: Backup everything you want to keep immediately!
    Step 2: Buy new disk.
    Step 3: Install new disk.
    Step 4: Reinstall everything & restore.
    I highly suggest backing up as soon as possible. -- On the first day of this error my MBP would no longer boot. Thankfully, I was able to save most of my stuff using the terminal window available in the installer.
    Searching for that error code here & on google returns a fair number of hits so you can read what others have done as well. Some seem to be able to get a new drive from apple if it's still under warranty.
    Good luck!

  • Animatioin get distbub while navigation from previous page and next page

    animatioin get distbub while navigation from previous page and next page

    To get the value from dropdown list:
    For example:
    <b>In Layout</b>
           <htmlb:dropdownListBox id                = "country"
                                   nameOfKeyColumn   = "land1"
                                   nameOfValueColumn = "landx"
                                   selection         = "<%=country%>"
                                   onSelect          = "displayregion"
                                   table             = "<%=iland%>" />
    <b>Oninputprocessing:</b>
            CALL METHOD REQUEST->GET_FORM_FIELD
              EXPORTING
                NAME  = 'country'
              RECEIVING
                VALUE = country.
    <i>*Reward each useful answer</i>
    Raja T

  • Problem erasing MacBook drive while booted from external drive

    Hello,
    I'm booted on a MacBook Pro from an external drive, and I want to erase the drive inside the MacBook using Disk Utility from the external. For some reason or another, it won't let me do this.
    When I click on the Erase tab (whether clicked on the disk itself or the volume "Macintosh HD") and try to erase it, it returns with the error:
    Disk Erase failed
    Disk Erase failed with the error:
    Could not unmount disk.
    When I try to install an image onto the drive, I get a similar error, except it says "Operation not permitted."
    When I tried it while booted with an OS X DVD, it worked fine.
    As far as I know, I should be able to do this while booted from the external HD.
    Any solutions to this problem?
    Thanks,
    Jason

    Hello Jason and welcome to the discussions. You could try to re-partition the internal drive while booted from the external. Using disk utility from the externals Application/Utilities folder click on the internal drive (the manufacturers #, should be above the internal name) and select the partition tab.
    change the partition table and then restore it back to the original. This will wipe out all the partitions and should show the drive as empty. Then I would erase all the free space using the erase tab and selecting your Macintosh HD or whatever you named your new internal startup drive the click on the "erase free space" button. Select "zero out deleted files" then erase. It will warn you that the drive is full when it gets near the end...thats okay just click to ignore or proceed. That should do it.
    Cheers,
    Glynn

  • Adding new Data Object while migrating from MI 2.5 to NM7.1

    Dear All,
          We have a custom MI 2.5 application which we need to migrate to 7.1. While migration, we want to add a newly created data object also in migrated application. But when I try to import MBO model, it is not letting me import new data object. The import finishes successfully. But changes in merepmeta.xml are not done. It creates a file with back up of existing merepmeta.xml i.e. merepmeta.xml.bak and create new merepmeta.xml but it is blank. Am I missing something???
           When I import MBO only with existing data objects (syncbos), it is allowing me perfectly. It is changing the merepmeta.xml accordingly as well without creating backup.
    Thanks in advance,
    Saptak Kulkarni.

    Dear Arjun,
         To answer your questions, previously all the SyncBOs were downloaded independently taking username as the import parameter in getList. (Default values). Yes we can provide the same with 7.1 but we wanted to have some sorts of associations between all SyncBOs.
         So first of all, we changed all the BAPI wrappers of old SyncBOs to download all the data independent of user. Now we created new Data Object to only download user specific data. We associated all other Data Objects on this DO. Created a rule for this data object to only download the sync user instance. We were expecting that whenever a user syncs, a single instance of new user data object will get downloaded and subsequently all other data objects having relationship on user will get downloaded. I hope this is not much confusing.
          Now while we import the MBO model, if we don't import new user data object, then also other data object instance get downloaded and fortunately properly filtered. We don't receive any kind of error over here.
          The new data object is not used anywhere in the application. The associations are in new data object and not in the older one. New data object is the leading one wherein others follow.
          Not a single instance is getting dropped for other Data Objects.
          The xml is blank only when we try to import the new Data Object and correctly it gives an error as expected when I try to deploy the application.
    Thanks in advance,
    Saptak.

  • Problem in selecting object currency fields from table COSP and COSS

    Dear All,
    We are facing a issue while creating a virtual DataSource   for CCA plan from tables COSS and COSP.
    The issue is that we are able to activate the view by including the fields value in object currency ( WOG001 - WOG012 ) but not able  to create a DataSource   on the view.
    We are able to include the transaction currency value but as our application requires us to include the object currency fields.
    Error displayed:Invalid extract structure template .This operation failed, because the template structure quantity fields or currency fields, for example, field WOG001 refer to a different table.
    Any tips to resolve this issue would be valuable.
    Thanks in advance
    Rashmi Nair.

    HI,
    Can you see this thread.
    Re: How to display BAPI decimal values into webdynpro!
    Thanks
    nageswar

  • Where can i get objective-c training from apple in india?

    I am from India and I would like to get training in Objective-C from apple itself. Is there an option to get it in India?
    I am new to experience Apple Hardware & Software. I have knowledge of C & Java Programming languages.
    I am in college now in undergraduate courses and would like to try out Objective-C.

    Hope this  site provides the info.
    http://training.apple.com/locations?q=&c=all&country=IN
    Best.

  • IMovie 08 minor problem, hovering on "Done" while capturing from a camera..

    In iMovie 7.0.1, when I am capturing from a camcorder, when I hover over "Stop", it shows "Click here to begin recording" instead of "Click here to stop...". The same is with when I am capturing with the iSight camera, it shows "Click to begin recording". This is a minor problem, but might confuse some computer illiterate folk and should be fixed in the next update.

    Thanks, I'll pass that along.
    If she's upgraded her OS or QT beyond this point, which she's probably done -- in all innocence -- then to get it to work, she'd have to re-install earlier versions of both OS X and QT? Or buy a new, considerably more expensive version of FCP?
    Wow! That's a bummer.
    Hal

  • Problem with anchored objects in file from CS4

    I opened, in CS5, a file which was done in CS4 and discovered all my anchored objects were gone!
    Analising the document, I understood they were there, but in a kind of mask ("Illustrator style") but in a text frame, which is odd, I think.
    I show here:
    1. one picture of the CS4 file
    2. one picture of the same file, but opened in CS5
    3. one picture of this file, in CS5, showing the "ghost" when I put the cursor over the "missing" anchored object
    If I cut and paste the objects they appear, but if I put them back like anchored objects, they disapear again.
    I had to fix every thing in a document I was working (it's a 124 pages document...) without anchored objects, just grouped them, because it was urgent (as always...) but I am reporting this because maybe people hadn't notice this and maybe there's a way to fix this.

    It's very hard to tell what might be causing this without seeing the actual file. I looked around and found a CS4 file on my suystem with hundreds of anchored photos, and they show fine when I open in CS5.
    My first impression is that this is ither a layer problem of some sort, or perhaps the objects have been set not to print and you have a preview mode enabled, but eh screen captures don't seem to support the latter.
    What happens if you export the file to .idml in CS4 and open that in CS5?

  • Problem regarding offset length while upgrading from 4.7 to ECC 6.0

    Hello Friends,
    We are upgrading our system from 4.7 to ECC 6.0, during the this I have come across one problem in custom program. Program is not syntactically correct. It's giving error at  write statment. WRITE : W_LFA1 +3(1429)  to T_FILE. W_LFA1 is having of type LFA1. Error is "The sum of the offset and length (=1432) exceeds the length of the start (=1232) of the structure." Can anyone guide me in this.

    Hi Chetan,
    This should be an unicode error.
    Try to replace your write statement by WRITE : W_LFA1 3(1429) to T_FILE and see.
    Regards
    Sayee

  • Problem in getting data while creating public template shopping cart(urgen)

    Hi Gurus,
    I am technical guy...Could you please suggest me how to populate the purchase organisation details(be_pur_org) which is of type bbps_sc_app_item.
    The problem is while creating normal shopping cart template it is displaying the vendor and inforecord details..when I use the same data for creating the public shopping cart it is not displaying the values (vendor and inforecord details) this is due to the missing of purchase organisation field value which is populated in the field be_pur_org which is of type bbps_sc_app_item.
    Is there any badi's to populate the purchase organisation details...?
    awaiting for all your replies..points will be rewarded with lots of appreciation
    Thanks & Regards,
    Ravi Ganji

    Hi
    <u>You can use either of the BADIs depending on your requirement.</u>
    BAdI Definition Name Description                                                                               
    BBP_PGRP_ASSIGN_BADI EBP Purchasing Documents: Assign Purchasing Group(s)       
    BBP_PGRP_FIND        Shopping Cart: Determine Responsible Purchasing Group(s)                                                                               
    BBP_DOC_CHANGE_BADI
    BAdI for Changing EBP Purchasing Documents
    <b>Please read the Standard documetation available with them using SE18 transaction in SRM system.</b>
    Which SRM version you are using ?
    Hope this will help.
    Please reward suitable points.
    Regards
    - Atul

  • Problems of Port Configuration while upgrading from 4.0B to ERP 6

    Hi all,
        We are upgrading a system from 4.0B to ERP 6. Will there will be any problems from port configuration side? If any please tell what they might be.
    thankyou.

    Hello,
    We have upgraded from 4.6C to ECC6.0 and did not have any port config issues.
    Things to look for:
      - RFC destinations, do they still work
      - directories used in File type ports, are they still there (they should be)
    Hope this helps a bit
    Regards
    Greg Kern

  • Problem with sap script while transporting from dev to quality server

    Hi experts,
    In dev server i am getting correct output in sap script.But when it is transporting to quality server alignment is different.Printer name is same both in dev and quality.Please give an answer for this query.
    Thanks
    suresh

    Hi Suresh,
    This could be a problem with the Sapscript buffers. Try running the report RSTXDELL on the system to clear the Sapscript buffers?
    To do this you can use RSTXDELL report with default settings except it is better to have * instead of the current client number in the Client field.
    After this, create a new spool and see if the problem is resolved?
    Regards,
    Aidan

  • Tax Code gets changed while copying from A/r Invoice to Credit memo

    Hello,
    When i am copying my A/R Invoice to A/R credit memo, at that time the tax code i have specified in the invoice gets changed to some other code in credit memo.
    Please suggest me what to do.
    Regards.
    ShriX.

    Hi!
    Really looking strange, unable to predict. Also, check wheather yo have defined anything in
    TaxCode Determination in Adminstration > Setup > Finance > TaxCode Determination.
    If so, delete those and check.
    Raise a support message to SAP.

Maybe you are looking for

  • Jam pack folders no longer show up in Loop browser?

    Hello everyone, I had to move my apple loops from my system drive onto an external drive (needed the room on my system drive). To do this I deleted the logs for the loops, moved the loops folder to my external drive, and drug the folder back into the

  • Need to send success or failure message to BAPI of SQL query action block

    Hi All, I need to send success or failure message(i.e. 1 or 0) to BAPI which has been called below sql query action block in transaction Here in SAP, i have created on BAPI with one import parameter and one export parameter. In the sql query action b

  • Cd burner not burning

    hi, my emac is not reading blank cd-r's...it is reading previously burned cd's but when I insert a new blank cd to burn I get a 'medium write error' message...I have tried various brands [maxell, sony, imation, tdk]...does anyone know what could be t

  • Get Windows "Service Pack Nr"

    I use Windows NT SP5. (SP = Service Pack) How can I get the information SP5. with System.getProperty( ) I get os.name and os.version but not the SP. I know it's OS specific. But is there any class / commands which gets this value "SP5". IF not, is it

  • Safari is v-e-r-y slow

    Hello, I have Safari 5.0.6 with G5 1.8ghz (hard wired to the router)  When I surf you tube, or some other sites,  in the past 3-4 months, Safari has become very slow and it is almost impossible to view any videos. It takes forever for the pages to lo