ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54843] New: java.io.InvalidClassException: org.apache.tools.ant.Location
Date Sat, 13 Apr 2013 23:19:41 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54843

            Bug ID: 54843
           Summary: java.io.InvalidClassException:
                    org.apache.tools.ant.Location
           Product: Ant
           Version: 1.9.0
          Hardware: All
                OS: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: Core
          Assignee: notifications@ant.apache.org
          Reporter: cs@schulte.it
    Classification: Unclassified

Upgrading from 1.8.4 to 1.9.0, I am getting:

java.io.InvalidClassException: org.apache.tools.ant.Location; local class
incompatible: stream classdesc serialVersionUID = -2242957035428169563, local
class serialVersionUID = 1
        at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:604)
        at
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1601)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1514)
        at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
        at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1970)
        at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1894)
        at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1777)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)

during deserialization of custom exception classes extending
'org.apache.tools.ant.BuildException'.

This is happening due to the addition of 

private static final long serialVersionUID = 1L;

to class org.apache.tools.ant.Location.

The serial version UID of that class should be corrected.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message