[ 
https://issues.apache.org/jira/browse/DERBY-6124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14252094#comment-14252094
 ] 

tariq rahiman commented on DERBY-6124:
--------------------------------------

>> please clarify why you need a fix for 10.10.2.0 when things work with the 
>> later version (10.11.1.1) >>
I have the latest driver derby.jar, derbyclient.jar and derbynet.jar from the 
latest Apache Derby download available from 10.11.1.1 available of SVN 1616546. 
This works fine with 10.11.1.1.
But I have databases created in 10.10.2.0 and using the latest drivers, I get a 
Error marshalling or unmarshalling a user defined type.

>> Is this a network server problem where you are using 10.11.1.1 client to 
>> talk to a 10.10.2.0 server >>
No, I am able to successfully ping and connect to 10.11.1.1 and 10.10.2.0 with 
the latest drivers. Only a few operations like Alter/Drop tables and Views 
gives this error.

>> Is this a database upgrade problem where you are using 10.11.1.1 software to 
>> talk to a database created with 10.10.2.0 >>
We do support Apache Derby from version 10.1 and the latest drivers were always 
backward compatible to an earlier version. You are right in saying that I am 
using the 10.11.1.1 jar to talk to a 10.10.2 database

>> As you have a working situation with 10.11.1.1 but not 10.10.2.0 I suggest 
>> you compare the classpath settings for the two environments. >>
If i replace the derby.jar, derbyclient.jar and derbynet.jar of the latest 
release with the 10.10.2.0 ones, it works fine. So my doubt is backward 
compatibility of the latest drivers

>> The error talks about a problem in a user defined type. Does your 
>> application create user defined types?  >>
I am using the toursdb demo database and have not created any object other than 
the ones with the download.

>> There may be more information in derby.log >>
Attached logs inside toursdb log

Thanks for your prompt replies on this issue. I really appreciate it.

> Marshalling error in JDBCDriverTest as part of CompatibilityTest
> ----------------------------------------------------------------
>
>                 Key: DERBY-6124
>                 URL: https://issues.apache.org/jira/browse/DERBY-6124
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.10.1.1
>         Environment: Java SE 1.7.0-b147, Solaris 11, x86
> --------- Derby Information --------
> [/localhome/tendril4.2/work/run/27358744/jars/sane/derby.jar] 10.10.1.1 - 
> (1458268)
> [/localhome/tendril4.2/work/run/27358744/jars/sane/derbytools.jar] 10.10.1.1 
> - (1458268)
> [/localhome/tendril4.2/work/run/27358744/jars/sane/derbynet.jar] 10.10.1.1 - 
> (1458268)
> [/localhome/tendril4.2/work/run/27358744/jars/sane/derbyclient.jar] 10.10.1.1 
> - (1458268)
>            Reporter: Dag H. Wanvik
>            Assignee: Rick Hillegas
>             Fix For: 10.10.2.0, 10.11.1.1
>
>         Attachments: Screen Shot 2014-12-17 at 4.50.26 PM.png, 
> derby-6124-01-aa-givePriceAserialVersionUID.diff
>
>
> 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. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to