Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-6124

Marshalling error in JDBCDriverTest as part of CompatibilityTest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.10.1.1
    • 10.10.2.0, 10.11.1.1
    • Test
    • None
    • Regression, Regression Test Failure

    Description

      Internal Oracle testing of RC 2 testing of 10.10 (Tendril Request 5574239 Tendril Task 3614491 ):

                      • Diff file derbyall/derbynetclientmats/DerbyNetClient/encodingTests/TestEnc.diff
          • Start: TestEnc jdk1.7.0 DerbyNetClient derbynetclientmats:encodingTests 2013-03-21 14:55:59 ***
            derbyTesting.encoding can only be used with jdk15, skipping test
          • End: TestEnc jdk1.7.0 DerbyNetClient derbynetclientmats:encodingTests 2013-03-21 14:55:59 ***
                      • Diff file derbyall/derbynetclientmats/DerbyNetClient/derbynetclientmats/CompatibilityTest.diff
          • Start: CompatibilityTest jdk1.7.0 DerbyNetClient derbynetclientmats:derbynetclientmats 2013-03-21 14:55:59 ***
            0 add
            > .E.
            > There was 1 error:
            > 1) testJDBCDriver(org.apache.derbyTesting.functionTests.tests.junitTests.compatibility.JDBCDriverTest)java.sql.SQLException: Error marshalling or unmarshalling a user defined type: org.apache.derbyTesting.functionTests.tests.lang.Price; local class incompatible: stream classdesc serialVersionUID = 102726277789621992, local class serialVersionUID = 1827170030595550895
            > Caused by: org.apache.derby.client.am.SqlException: Error marshalling or unmarshalling a user defined type: org.apache.derbyTesting.functionTests.tests.lang.Price; local class incompatible: stream classdesc serialVersionUID = 102726277789621992, local class serialVersionUID = 1827170030595550895
            > ... 22 more
            > Caused by: java.io.InvalidClassException: org.apache.derbyTesting.functionTests.tests.lang.Price; local class incompatible: stream classdesc serialVersionUID = 102726277789621992, local class serialVersionUID = 1827170030595550895
            > ... 25 more
            > FAILURES!!!
            > Tests run: 2, Failures: 0, Errors: 1
            Test Failed.
          • End: CompatibilityTest jdk1.7.0 DerbyNetClient derbynetclientmats:derbynetclientmats 2013-03-21
            14:56:04 ***

      Looking at the Price class I see it doesn't have an explicit serialVersionUID.

      Attachments

        1. derby.log
          5 kB
          tariq rahiman
        2. derby-6124-01-aa-givePriceAserialVersionUID.diff
          0.7 kB
          Richard N. Hillegas
        3. exception.txt
          2 kB
          tariq rahiman
        4. log.zip
          140 kB
          tariq rahiman
        5. Screen Shot 2014-12-17 at 4.50.26 PM.png
          247 kB
          tariq rahiman

        Issue Links

          Activity

            People

              rhillegas Richard N. Hillegas
              dagw Dag H. Wanvik
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: