SerialVersionUID mismatch

Hello:
I get a SerialVersionUID mismatch, during argument unmarshalling for the
called EJB method,
if my test code is run outside the weblogic server JVM. If the test code is
run within the weblogic JVM (as a servlet), it works fine.
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception
is:
java.io.InvalidClassException: com.xxxx.model.RequestAggregate; Local class
not compatible: stream classdesc serialVersionUID=8253439817277816629 local
class serialVersionUID=-6336594865856381455
I have verified that the class files are upto date in the test and weblogic
VM.
Adding a serialVersionUID to the class that fails to unmarshall makes it
work. But I
am curious to find out how the same class files in both the test and
weblogic JVM can
result in different SerialVersionUIDs.
Any pointers about how and what information is used to compute
these SerialVersionUIDs? Does the SerialVersionUID calculation use
the dependent classes of the class that fails to unmarshall? Any help
would be appreciated.
thank you very much for your time,
raj.

Hi Raj,
This exception is exactly what it is. You have version
mismatch for the instances server and client has.
It means the your verification is incorrect. For example
old versions may be somehow coming up into the client's
classpath.
Make sure that client's classpath doesn't contain a different
version of the class.
Regards,
Slava Imeshev
"raj" <[email protected]> wrote in message
news:3e9f0f6e$[email protected]..
Hello:
I get a SerialVersionUID mismatch, during argument unmarshalling for the
called EJB method,
if my test code is run outside the weblogic server JVM. If the test codeis
run within the weblogic JVM (as a servlet), it works fine.
java.rmi.UnmarshalException: error unmarshalling arguments; nestedexception
is:
java.io.InvalidClassException: com.xxxx.model.RequestAggregate; Localclass
not compatible: stream classdesc serialVersionUID=8253439817277816629local
class serialVersionUID=-6336594865856381455
I have verified that the class files are upto date in the test andweblogic
VM.
Adding a serialVersionUID to the class that fails to unmarshall makes it
work. But I
am curious to find out how the same class files in both the test and
weblogic JVM can
result in different SerialVersionUIDs.
Any pointers about how and what information is used to compute
these SerialVersionUIDs? Does the SerialVersionUID calculation use
the dependent classes of the class that fails to unmarshall? Any help
would be appreciated.
thank you very much for your time,
raj.

Similar Messages

  • Error:Type mismatch: cannot convert from Long to Long

    hi friends,
    I've a problem.I've a JSP that does some long converions,and its working fine when i make it run on my machine i.e
    (Running Tomcat5.0),but when I deploy this file on the server which runs Tomcat 5.5.7,it throws this error:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 20 in the jsp file: /abc.jsp
    Generated servlet error:
    Type mismatch: cannot convert from Long to Long
    Can anyone of you,tell me where i am going wrong???

    Here is an example of doing it with a JavaBean... the bean looks like this:
    package net.thelukes.steven;
    import java.io.Serializable;
    import java.text.DateFormat;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    public class FormHandlerBean implements Serializable {
         private static final long serialVersionUID = 1L;
         private Date startTime = null;
         private DateFormat dateFormatter;
         public FormHandlerBean() {
              setDateFormat("yyyy-MM-dd hh:mm:ss");
         public void setStart(String strt) {
              setStartAsString(strt);
         private void setStartAsString(String strt) {
              setStartAsDate(getDate(strt));
         private void setStartAsDate(Date d) {
              startTime = d;
         private Date getDate(String s) {
              Date d = null;
                   try {
                        d = dateFormatter.parse(s);
                   } catch (ParseException pe) {
                        System.err.print("Error Parsing Date for "+s);
                        System.err.println(".  Using default date (right now)");
                        pe.printStackTrace(System.err);
                        d = new Date();
              return d;
         public long getStartAsLong() {
              return getStart().getTime();
         public String getStartAsString() {
              return Long.toString(getStartAsLong());
         public Date getStart() {
              return startTime;
         public void setDateFormat(String format) {
              dateFormatter = new SimpleDateFormat(format);
    }You would only need to make the getStartXXX methods public that need to be accessed from the JSP. For example, if you will not need to get the Long value of the time, then you do not need to make getStartAsLong public...
    The JSP looks like this:
    <html>
      <head>
        <title>I got the Form</title>
      </head>
      <body>
        <h3>The Output</h3>
        <jsp:useBean class="net.thelukes.steven.FormHandlerBean" id="formHandler"/>
        <%
             formHandler.setStart(request.getParameter("start"));
        %>
        <table>
          <tr><td>Start as String</td><td><jsp:getProperty name="formHandler" property="startAsString"/></td></tr>
          <tr><td>Start as Date</td><td><jsp:getProperty name="formHandler" property="start"/></td></tr>
          <tr><td>Start as long</td><td><jsp:getProperty name="formHandler" property="startAsLong"/></td></tr>
        </table>
      </body>
    </html>If this were a servlet processing the form rather than a JSP, I might throw the ParseException that might occur in getDate and catch it in the Servlet, with which I could then forward back to the form telling the user they entered mis-formatted text value... But since JSPs should be mainly display, I catch the exception internally in the Bean and assign a safe value...

  • Java.io.InvalidClassException: org.eclipse.persistence.internal.indirection.DatabaseValueHolder; local class incompatible: stream classdesc serialVersionUID = -6893195210780291759, local class serialVersionUID = 1128857921468654749

    Hi,
    I recently create a webservice application.
    It work fine when the server is implemented as java application. But when rewritten as web application( *.war),  the deploiement work on WLS.
    However it throws java.io.InvalidClassException: org.eclipse.persistence.internal.indirection.DatabaseValueHolder; local class incompatible: stream classdesc serialVersionUID = -6893195210780291759, local class serialVersionUID = 1128857921468654749 error when the client start consumming the web service methods.
    I add both eclipselink-javax.persistence-2.0.jar and eclipselink-2.0.2.jar(which are also used in the server side) in $WL_HOME/wlserver_10.3/common/deployable-libraries, that doesn't solve the problem yet.
    Any help will be appreciated, cheers.

    Abenk,
    This looks like a serial version mismatch due to multiple Eclipselink.jar files. Check if you have any under server/internal/ext folder.
    What are you putting in your classpath? Is there a "jrf.jar" and is it getting picked up first? Does this Jrf.jar have an entry of Eclipselink jar?
    Try to check the classpath of the jars used by Weblogic and remove any redundant Eclipselink/Toplink jars.
    What is the complete version of your Weblogic Server ?

  • SerialVersionUID of a class that extends a serializable object

    I have class Foo that implements Serializable. In Foo, I have manually hardcoded the serialVersionUID as: private static long serialVersionUID = -7589377069041161459L;Now I created a class SubFoo that extends Foo, but I have not overrided the serialVersionUID. However, when I run serialver command on SubFoo I get 2152116903368641813L, instead of my hardcoded serialVersionUID. Shouldn't I be getting my hardcoded value?
    This is important to me because I am running into a Serialization Mismatch on about 100+ subclasses of Foo. So I was hoping to fix this by adding a hardcoded serialVersionUID into the one parent class and hoping not to manually change 100+ subclasses.

    Now I created a class SubFoo that extends Foo, but I
    have not overrided the serialVersionUID.When the compiler calculates the serialVersionUID, it hashes many things, including the fully qualified class name.
    So, even though you may not have added any member variables, the serialVersionUID has changed because the class name has changed from Foo to SubFoo.
    You need to manually specify / hardcode the serialVersionUID in all subclasses.
    You can see section 12.24.4 of The Java Programming Language, 2nd Ed. for more details.
    Best,
    Garrett

  • Type Mismatch error while saving a BPC Report using eTools

    Hi,
    Iam getting a 'type mismatch' error when trying to save a BPC Excel  workbook using eTools>Save Dynamic Template >Company>eExcel. I am saving it as an .xlsx file.
    Can anyone please help out and let me know why I am getting this error.
    Thanks
    Arvind

    Hi,
    You need to save the file as .xls extension.

  • Type Mismatch error while calling a Java Function from Visual Basic 6.0...

    Hi,
    I'm having a problem in calling the Java Applet's Function from Visual Basic. First, I'm getting the handle of the Java Applet and components of it using "Document.Applets(n)" which is a HTML function. I'm calling this function from Visual Basic. My code is something like this...
    ' // Web1 is IE Browser in my Form.
    Dim Ap,Comp
    Dim Bol as Boolean
    Bol = true
    Ap = Web1.Document.Applets(0).getWindow() ' \\ Gets the Parent Window.
    Ap.setTitle("My Java Applet") ' \\ Sets the Title of the window.
    msgbox Ap.getVisibility() ' \\ This will return a Java boolean ( true or false )
    Ap.setVisibility(Bol) ' \\ Function Syntax is : void setVisibility(boolean b)
    Here in my code , i'm able to call any function that which accepts Integer or String but not boolean. So, i m facing problem with Ap.setVisibility() function. It gives me a "Type mismatch error" while executing it. Can you please tell me a way to do this from Visual Basic !
    I'm using Visual Basic 6.0, Windows 2000 , J2SDK 1.4.2_05.
    Please help me Friends.
    Thanks and Regards,
    Srinivas Annam.

    Hi
    I am not sure about this solution. try this
    Declare a variable as variant and store the boolean value in that variable and then use in ur method.
    Post ur reply in this forum.
    bye for now
    sat

  • Mismatch of Assigned Budget in CJ33 & Report S_ALR_87013558

    Hi,
    I would like to inform there is an issue in mismatch of assigned budget value in CJ33 wrt hierarchical report(S_ALR_87013558). Request you to suggest to fix the issue.
    Thank you for your coopearation.
    Regards,
    Ranjan

    Ranjan,
    removing a column in a report will not affect at all at the values observed. Therefore,
    it is unuseful to do it.
    If there are inconsistencies in the assigned value, i suggest you to take the following steps:
    1. Excute the report BPDIST03 via SE38 for the project in question. 
    2. Excute the tnrx CJEN.(Reconstruction of project information DB)  
    3. Excute the trnx CJBW.(Deactivate the availability control)      
    4. Excute the trnx CJBN.(Reconstruction of availability control)   
    5. Excute the trnx CJBV.(Activate the availability control again)  
    Hope this helps
    Regards
    Martina

  • Data Mismatching in DSO

    Hi Folks,
    We  have data mismatch issue for one info object ( BASE UOM ) when the data goes from staging DSO to conformance DSO.I will explain the issue here.
    For one invoice no the Base UOM value dispayed as M2 in the staging DSO.When the data goes from staging DSO to conformance DSO,in the conformance DSO the Base UOM dispayed as Blank value.There is no code written for calculation  of Base UOM in transformation level.This is direct a mapping to field Base UOM in the conformance DSO from staging DSO.For all other invoices the Base UOM value dispalyed correctly in conformance DSO when compare to staging DSO. For one specific invoice the base UOM value showing as blank in the conformance DSO.
    Could you please give me your suugestions what the reasons for showing  base UOM value showing as a blank value in Conformance DSO.
    Thaks for your advance.
    Regards,
    Nag

    Hi,
    You will have to check following things,
    1) Check if other records with base unit value as M2 are updated properly in conformance DSO. This will make sure that there is no issue with this particular base unit.
    2) As you have mentioned other records are successfully getting updated, you might have to debug the data load for this particular record. Do the selective data loading and check, where the unit is getting cleared.
    You can also check if there is any conversion routine at the infoobject level.
    Regards,
    Durgesh.

  • Delta load from ODS to cube failed - Data mismatch

    Hi all
    We have a scenario where the data flow is like
    R/3 table - >dataSrc -- > pSA - >InfoSrc -> ODS ->Cube.
    The cube has an additional field called "monthly version"
    and since it is a history cube , it is supposed to hold data
    snapshots of the all data in current cube for each month .
    We are facing the problem that the Data for the current month
    is there in the history ODS but not in the cube . In the ODS ->Manage->requests
    tab i can see only 1 red request that too with 0 recs.
    However ,In the cube -> manage-> reconstruction tab , i can see 2 Red request
    with the current month date. Could these red requests be the reason for
    data mismatch in ODS and cube .
    Please guide as to how can i solve this problem .
    thanks all
    annie

    Hi
    Thanks for the reply.
    Load to Cube is Delta and goes daily .
    Load to ODS is a full on daily basis .
    Can you help me how to sort this issue . I have to work directly in production env . so has to be safe and full proof .
    Thanks
    annie

  • MSI big bang marshal B3 HECI pointer mismatch

    Hi all
    I have a MSI big bang marshal B3 with a 2600K cpu, i flashed the motherboard with 3.1 and 3.0 bios but can't change cpu multiplier 
    Finally i went back to 1.5 bios and all is good but now i have the "HECI pointer mismatch" at boot and can't find my secondary HDD in Windows.
    I tried the MSI USB flashing Tools but same problem 
    Thanks to all for your help 

    You have this issue due to a downgrade without a special archive required. It is actually recommended to use bios 3.1 any way. Note that you need to use +/- keys of numpad to alter core ratio in later versions.
    https://forum-en.msi.com/index.php?topic=166680.msg1220674#msg1220674

  • Mismatch ram sticks

    I am having trouble understanding how "DDR2" memory can be mismatched. I thought the point to DDR was to have two banks of memory of equal size.
    1. How does the iMac Core 2 Duo "get away" with allowing a 1Gig stick with a 2Gig stick for 3Gig total?
    2. Is there a performance degradation if the two memory slots are filled with different size memory sticks?
    3. Is there any "future upgrade" that would allow a user to inatall 2 x 2Gig sticks and realize 4Gig of RAM?
    Thanks in advance.
    -vagabond
    iMac 17" Core 2 Duo 2.0GHz, 1G RAM, Presonus Firebox Soundcard   Mac OS X (10.4.8)  

    "I thought the point to DDR was to have two banks of memory of equal size."
    Never heard of that before. There is no requirement to have matched RAM, except for the Intel motherboard (1.83GHz) underpowered VRAM models that need to supplement by taking some of the RAM memory.
    The Core 2 Duo will work with a 512MB plus a 2GB without any problem, just the same as the iMac G5 iSight model used it's DDR2 RAM a year ago.
    There is no performance issue. I had a couple of the G5 DDR2 iSight model iMacs this past year both with the 2.5GB setup, and they worked great. As a matter of fact, with maxed out RAM, it's worth more in the resale marketplace than either the Core Duo or the Core 2 Duo.
    There are no upgrade plans ever announced in advance, just as the 1GB + 2GB was a surprise to us all, but keep in mind that happened with the Core 2 Duo, but is not usable with a Core Duo. So, your guess is as good as anyone's.

  • I have just redeemed my iTunes card of 25 dollars, I have 23 dolIars left now, I tried downloading a few songs later, but it says something along the lines of credit mismatch mobile message, I can't download anything with credit. How do I fix the problem?

    I really need help, I purchased an iTunes card about an hour ago and downloaded two things, I tried to download a couple songs but it won't let me, every time I try it says something along the lines of credit mismatch mobile message. How do I fix this? It says I have 23 dollars left but it's not working. How do I fix the problem? Please help!

    its very annoying but you have to log out of your account. than try to buy the sone. it will ask you to sign in. do it. the sond will start to download. it only works once, so you have to do it over and over for every song :/

  • Dear sir, i used this apple id in my IPAD 4,But some how i forgot the apple id password that was stored in my iPad. i reset the same in my another device. I put the new password in my I pad. Due to mismatching of

    Dear sir,
    i used this apple id in my IPAD 4,But some how i forgot the apple id password that was stored in my iPad. i reset the same in my another device. I put the new password in my I pad. Due to mismatching of password that was stored in iPad and new password ,it does not accept it. very unfortunately i also unable to connect my iPad with internet because it does not allow me to connect. In every second message displayed for apple id password. i am helpless. please help to get rid opt from this problem.
    rgds
    R K Hazarika
    <Email Edited by Host>

    you manage the appleID on this site
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/

  • Order qty and confirmed qty mismatch

    Dear friends,
    My requirement is System should not allow to go further if the sale order qty and confirmed qty(after avaialbility check) mismatch is there.Pls suggest.
    Now currently system will check the availability qty and will show the information of confirmed qty in the another screen.and if we say continue the process, we can go ahead and save the document.but the document will be in open state.
    So pls suggest the way i can go ahead for this requirement.
    Regards
    Mahendar.

    hi,
    If u want to allow user to create SO as much as available qty..? means  system sud create SO for order qty is equal to availble qty ...? if yes
    then go the availbality check  and find out availability check and checking rule..
    and again go to OVZ9 remove the check box check with out RLT from rep.lead time tab
    Resul is: If u enter in SO a10 qty ,and if you have only 5 qty in hand or in plant ,then system after checking the items it will change the order qty in SO(i e 5) automatically,
    Caprin

  • GR and IR mismatch report

    Hello Team,
    Please let us know any standard report for we can run to view GRIR mismatch but the IR and GR quantity is already equal and the IR and GR price has mismatch.
    Regards
    SANGEETHA

    Hi,
    it is not solution, what i am sating GR QTY 10  amount value 1000 rs and IR Qty 10 but amount value is 950. Theeir is differenece between GR amount value and IR amount value.
    Is their any standard report to check list of po's difference between GR and IR quanity match and amount value is not match.
    Regards
    Sangeetha

Maybe you are looking for