Hi,
I am experiencing difficulties to run the core tests:
I have synched
From trunk, I successfully ran “ant clean build”.
Now, I run “ant test-core”:
ant test-core
Buildfile: build.xml
[echo] trunk.build.location = 'C:/WORK/SVN/trunk'
[echo] env.CLASSPATH = '${env.CLASSPATH}'
[echo] java.class.path = 'C:\apache-ant-1.7.0\lib\ant-launcher.jar;C:\apache-ant-1.7.0\lib\ant-antlr.jar;C:\apache-ant
-1.7.0\lib\ant-apache-bcel.jar;C:\apache-ant-1.7.0\lib\ant-apache-bsf.jar;C:\apache-ant-1.7.0\lib\ant-apache-log4j.jar;C:\apache
-ant-1.7.0\lib\ant-apache-oro.jar;C:\apache-ant-1.7.0\lib\ant-apache-regexp.jar;C:\apache-ant-1.7.0\lib\ant-apache-resolver.jar;
C:\apache-ant-1.7.0\lib\ant-commons-logging.jar;C:\apache-ant-1.7.0\lib\ant-commons-net.jar;C:\apache-ant-1.7.0\lib\ant-jai.jar;
C:\apache-ant-1.7.0\lib\ant-javamail.jar;C:\apache-ant-1.7.0\lib\ant-jdepend.jar;C:\apache-ant-1.7.0\lib\ant-jmf.jar;C:\apache-a
nt-1.7.0\lib\ant-jsch.jar;C:\apache-ant-1.7.0\lib\ant-junit.jar;C:\apache-ant-1.7.0\lib\ant-launcher.jar;C:\apache-ant-1.7.0\lib
\ant-netrexx.jar;C:\apache-ant-1.7.0\lib\ant-nodeps.jar;C:\apache-ant-1.7.0\lib\ant-starteam.jar;C:\apache-ant-1.7.0\lib\ant-sty
lebook.jar;C:\apache-ant-1.7.0\lib\ant-swing.jar;C:\apache-ant-1.7.0\lib\ant-testutil.jar;C:\apache-ant-1.7.0\lib\ant-trax.jar;C
:\apache-ant-1.7.0\lib\ant-weblogic.jar;C:\apache-ant-1.7.0\lib\ant.jar;C:\apache-ant-1.7.0\lib\xercesImpl.jar;C:\apache-ant-1.7
.0\lib\xml-apis.jar;C:\Program Files\Java\jdk1.6.0_22\lib\tools.jar'
[echo] user.home = 'C:\Users\d031461'
[echo] Loading user properties from: 'C:\Users\d031461/build.properties'
[echo] oracle.extensions.depend.dir = 'C:/WORK/SVN/trunk/../extension.oracle.lib.external'
[echo] extensions.depend.dir = 'C:/WORK/SVN/trunk/../extension.lib.external'
[echo] junit.lib = 'C:/WORK/SVN/extension.lib.external/junit-4.8.1.jar' (if not set tests may not compile; let alone run)
[echo] Loading default properties from: 'C:/WORK/SVN/trunk/build.properties'
[echo] java.version='1.6.0_22'
[echo] jdbc.driver.jar='${jdbc.driver.jar}'
test-core:
[echo] CORETEST_BEGINS...
[echo] core_test.build.location = 'C:/WORK/SVN/trunk/foundation/eclipselink.core.test'
[echo] core_test.2.base.dir = '../..'
test:
[echo] CORETEST_BEGINS...
[echo] core_test.build.location = 'C:/WORK/SVN/trunk/foundation/eclipselink.core.test'
[echo] core_test.2.base.dir = '../..'
init:
[echo] core_test.src.dir ='C:/WORK/SVN/trunk/foundation/eclipselink.core.test/src'
[echo] core_test.resource.dir='C:/WORK/SVN/trunk/foundation/eclipselink.core.test/resource'
[echo] core_test.classes.dir ='C:/WORK/SVN/trunk/foundation/eclipselink.core.test/classes'
[echo] core_test.report.dir ='C:/WORK/SVN/trunk/foundation/eclipselink.core.test/reports'
[echo] core_test.run.dir ='C:/WORK/SVN/trunk/foundation/eclipselink.core.test/run'
[echo] user.home ='C:\Users\d031461'
[echo] test.properties='test.properties'
[echo] extensions.depend.dir ='C:/WORK/SVN/trunk/../extension.lib.external'
[echo] junit.lib ='C:/WORK/SVN/extension.lib.external/junit-4.8.1.jar'
[echo] tools.lib ='C:\Program Files\Java\jdk1.6.0_22/lib/tools.jar'
init_eclipselink:
[echo] Using EclipseLink.jar as 'product' in compile dependency.
init_bundles:
init_classes:
init_paths:
process-resource:
[copy] Copying 46 files to C:\WORK\SVN\trunk\foundation\eclipselink.core.test\run
[copy] Copying 1 file to C:\WORK\SVN\trunk\foundation\eclipselink.core.test\run
[copy] Copying 1 file to C:\WORK\SVN\trunk\foundation\eclipselink.core.test\run
run-test:
[echo] Running test on jdbc:mysql://localhost:3306/test
[mkdir] Created dir: C:\WORK\SVN\trunk\foundation\eclipselink.core.test\reports
[junit] Running org.eclipse.persistence.testing.tests.TestRunModel
[junit] [EL Info]: 2011-06-07 17:31:35.737--DatabaseSessionImpl(433064372)--EclipseLink, version: Eclipse Persistence Servic
es - 2.4.0.qualifier
[junit] [EL Info]: 2011-06-07 17:31:36.673--DatabaseSessionImpl(433064372)-- login successful
[junit] [EL Warning]: 2011-06-07 17:31:38.187--DatabaseSessionImpl(433064372)--Exception [EclipseLink-4002] (Eclipse Persist
ence Services - 2.4.0.qualifier): org.eclipse.persistence.exceptions.DatabaseException
[junit] Internal Exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'sequence' already exists
[junit] Error Code: 1050
[junit] Call: CREATE TABLE SEQUENCE (SEQ_NAME VARCHAR(50) NOT NULL, SEQ_COUNT DECIMAL(38), PRIMARY KEY (SEQ_NAME))
[junit] Query: DataModifyQuery(sql="CREATE TABLE SEQUENCE (SEQ_NAME VARCHAR(50) NOT NULL, SEQ_COUNT DECIMAL(38), PRIMARY KEY
(SEQ_NAME))")
[junit] [EL Severe]: 2011-06-07 17:31:38.389--DatabaseSessionImpl(433064372)--Local Exception Stack:
[junit] Exception [EclipseLink-0] (Eclipse Persistence Services - 2.4.0.qualifier): org.eclipse.persistence.exceptions.Integ
rityException
[junit] Descriptor Exceptions:
[junit] ---------------------------------------------------------
[junit]
[junit] Exception [EclipseLink-46] (Eclipse Persistence Services - 2.4.0.qualifier): org.eclipse.persistence.exceptions.Desc
riptorException
[junit] Exception Description: There should be one non-read-only mapping defined for the primary key field [ANIMAL.TYPE].
[junit] Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.inheritance.Animal --> [DatabaseTable(ANIMAL
)])
[junit]
[junit] Exception [EclipseLink-46] (Eclipse Persistence Services - 2.4.0.qualifier): org.eclipse.persistence.exceptions.Desc
riptorException
[junit] Exception Description: There should be one non-read-only mapping defined for the primary key field [ANIMAL.TYPE].
[junit] Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.inheritance.Dog --> [DatabaseTable(ANIMAL)])
[junit]
[junit] Exception [EclipseLink-46] (Eclipse Persistence Services - 2.4.0.qualifier): org.eclipse.persistence.exceptions.Desc
riptorException
[junit] Exception Description: There should be one non-read-only mapping defined for the primary key field [ANIMAL.TYPE].
[junit] Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.inheritance.LabradorRetriever --> [DatabaseT
able(ANIMAL)])
[junit]
[junit] Runtime Exceptions:
[junit] ---------------------------------------------------------
[junit]
[junit] at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:
535)
[junit] at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:
457)
[junit] at org.eclipse.persistence.sessions.Project.addDescriptors(Project.java:331)
[junit] at org.eclipse.persistence.sessions.Project.addDescriptors(Project.java:355)
[junit] at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.addDescriptors(DatabaseSessionImpl.java:250)
[junit] at org.eclipse.persistence.testing.models.inheritance.InheritanceSystem.addDescriptors(InheritanceSystem.java:36
)
[junit] at org.eclipse.persistence.testing.framework.TestSystem.run(TestSystem.java:174)
[junit] at org.eclipse.persistence.testing.framework.TestExecutor.forceConfigureSystem(TestExecutor.java:276)
[junit] at org.eclipse.persistence.testing.framework.TestModel.configure(TestModel.java:181)
[junit] at org.eclipse.persistence.testing.framework.TestModel.setupEntity(TestModel.java:416)
[junit] at org.eclipse.persistence.testing.framework.TestModel.execute(TestModel.java:203)
[junit] at org.eclipse.persistence.testing.framework.TestCollection.run(TestCollection.java:313)
[junit] at org.eclipse.persistence.testing.framework.TestExecutor.execute(TestExecutor.java:248)
[junit] at org.eclipse.persistence.testing.framework.TestModel.execute(TestModel.java:211)
[junit] at org.eclipse.persistence.testing.framework.TestCollection.run(TestCollection.java:313)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
[junit]
[junit] Descriptor Exceptions:
[junit] ---------------------------------------------------------
[junit]
[junit]
[junit] Local Exception Stack:
[junit] Exception [EclipseLink-46] (Eclipse Persistence Services - 2.4.0.qualifier): org.eclipse.persistence.exceptions.Desc
riptorException
[junit] Exception Description: There should be one non-read-only mapping defined for the primary key field [ANIMAL.TYPE].
[junit] Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.inheritance.Animal --> [DatabaseTable(ANIMAL
)])
[junit] at org.eclipse.persistence.exceptions.DescriptorException.noMappingForPrimaryKey(DescriptorException.java:1068)
[junit] at org.eclipse.persistence.internal.descriptors.ObjectBuilder.initializePrimaryKey(ObjectBuilder.java:3231)
[junit] at org.eclipse.persistence.internal.descriptors.ObjectBuilder.initialize(ObjectBuilder.java:3043)
[junit] at org.eclipse.persistence.descriptors.ClassDescriptor.initialize(ClassDescriptor.java:2927)
[junit] at org.eclipse.persistence.descriptors.ClassDescriptor.initialize(ClassDescriptor.java:2778)
[junit] at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:
512)
[junit] at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:
457)
[junit] at org.eclipse.persistence.sessions.Project.addDescriptors(Project.java:331)
[junit] at org.eclipse.persistence.sessions.Project.addDescriptors(Project.java:355)
[junit] at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.addDescriptors(DatabaseSessionImpl.java:250)
[junit] at org.eclipse.persistence.testing.models.inheritance.InheritanceSystem.addDescriptors(InheritanceSystem.java:36
)
[junit] at org.eclipse.persistence.testing.framework.TestSystem.run(TestSystem.java:174)
[junit] at org.eclipse.persistence.testing.framework.TestExecutor.forceConfigureSystem(TestExecutor.java:276)
[junit] at org.eclipse.persistence.testing.framework.TestModel.configure(TestModel.java:181)
[junit] at org.eclipse.persistence.testing.framework.TestModel.setupEntity(TestModel.java:416)
[junit] at org.eclipse.persistence.testing.framework.TestModel.execute(TestModel.java:203)
[junit] at org.eclipse.persistence.testing.framework.TestCollection.run(TestCollection.java:313)
[junit] at org.eclipse.persistence.testing.framework.TestExecutor.execute(TestExecutor.java:248)
[junit] at org.eclipse.persistence.testing.framework.TestModel.execute(TestModel.java:211)
[junit] at org.eclipse.persistence.testing.framework.TestCollection.run(TestCollection.java:313)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
[junit]
[junit]
[junit] Local Exception Stack:
[junit] Exception [EclipseLink-46] (Eclipse Persistence Services - 2.4.0.qualifier): org.eclipse.persistence.exceptions.Desc
riptorException
[junit] Exception Description: There should be one non-read-only mapping defined for the primary key field [ANIMAL.TYPE].
[junit] Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.inheritance.Dog --> [DatabaseTable(ANIMAL)])
[junit] at org.eclipse.persistence.exceptions.DescriptorException.noMappingForPrimaryKey(DescriptorException.java:1068)
[junit] at org.eclipse.persistence.internal.descriptors.ObjectBuilder.initializePrimaryKey(ObjectBuilder.java:3231)
[junit] at org.eclipse.persistence.internal.descriptors.ObjectBuilder.initialize(ObjectBuilder.java:3043)
[junit] at org.eclipse.persistence.descriptors.ClassDescriptor.initialize(ClassDescriptor.java:2927)
[junit] at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:
512)
[junit] at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:
457)
[junit] at org.eclipse.persistence.sessions.Project.addDescriptors(Project.java:331)
[junit] at org.eclipse.persistence.sessions.Project.addDescriptors(Project.java:355)
[junit] at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.addDescriptors(DatabaseSessionImpl.java:250)
[junit] at org.eclipse.persistence.testing.models.inheritance.InheritanceSystem.addDescriptors(InheritanceSystem.java:36
)
[junit] at org.eclipse.persistence.testing.framework.TestSystem.run(TestSystem.java:174)
[junit] at org.eclipse.persistence.testing.framework.TestExecutor.forceConfigureSystem(TestExecutor.java:276)
[junit] at org.eclipse.persistence.testing.framework.TestModel.configure(TestModel.java:181)
[junit] at org.eclipse.persistence.testing.framework.TestModel.setupEntity(TestModel.java:416)
[junit] at org.eclipse.persistence.testing.framework.TestModel.execute(TestModel.java:203)
[junit] at org.eclipse.persistence.testing.framework.TestCollection.run(TestCollection.java:313)
[junit] at org.eclipse.persistence.testing.framework.TestExecutor.execute(TestExecutor.java:248)
[junit] at org.eclipse.persistence.testing.framework.TestModel.execute(TestModel.java:211)
[junit] at org.eclipse.persistence.testing.framework.TestCollection.run(TestCollection.java:313)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
[junit]
[junit]
[junit] Local Exception Stack:
[junit] Exception [EclipseLink-46] (Eclipse Persistence Services - 2.4.0.qualifier): org.eclipse.persistence.exceptions.Desc
riptorException
[junit] Exception Description: There should be one non-read-only mapping defined for the primary key field [ANIMAL.TYPE].
[junit] Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.inheritance.LabradorRetriever --> [DatabaseT
able(ANIMAL)])
[junit] at org.eclipse.persistence.exceptions.DescriptorException.noMappingForPrimaryKey(DescriptorException.java:1068)
[junit] at org.eclipse.persistence.internal.descriptors.ObjectBuilder.initializePrimaryKey(ObjectBuilder.java:3231)
[junit] at org.eclipse.persistence.internal.descriptors.ObjectBuilder.initialize(ObjectBuilder.java:3043)
[junit] at org.eclipse.persistence.descriptors.ClassDescriptor.initialize(ClassDescriptor.java:2927)
[junit] at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:
512)
[junit] at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:
457)
[junit] at org.eclipse.persistence.sessions.Project.addDescriptors(Project.java:331)
[junit] at org.eclipse.persistence.sessions.Project.addDescriptors(Project.java:355)
[junit] at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.addDescriptors(DatabaseSessionImpl.java:250)
[junit] at org.eclipse.persistence.testing.models.inheritance.InheritanceSystem.addDescriptors(InheritanceSystem.java:36
)
[junit] at org.eclipse.persistence.testing.framework.TestSystem.run(TestSystem.java:174)
[junit] at org.eclipse.persistence.testing.framework.TestExecutor.forceConfigureSystem(TestExecutor.java:276)
[junit] at org.eclipse.persistence.testing.framework.TestModel.configure(TestModel.java:181)
[junit] at org.eclipse.persistence.testing.framework.TestModel.setupEntity(TestModel.java:416)
[junit] at org.eclipse.persistence.testing.framework.TestModel.execute(TestModel.java:203)
[junit] at org.eclipse.persistence.testing.framework.TestCollection.run(TestCollection.java:313)
[junit] at org.eclipse.persistence.testing.framework.TestExecutor.execute(TestExecutor.java:248)
[junit] at org.eclipse.persistence.testing.framework.TestModel.execute(TestModel.java:211)
[junit] at org.eclipse.persistence.testing.framework.TestCollection.run(TestCollection.java:313)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
[junit]
[junit] Runtime Exceptions:
[junit] ---------------------------------------------------------
[junit]
[junit] [EL Info]: 2011-06-07 17:31:38.483--DatabaseSessionImpl(433064372)-- logout successful
[junit] [EL Info]: 2011-06-07 17:31:38.483--DatabaseSessionImpl(499668036)--EclipseLink, version: Eclipse Persistence Servic
es - 2.4.0.qualifier
[junit] [EL Info]: 2011-06-07 17:31:38.499--DatabaseSessionImpl(499668036)-- login successful
[junit] Descriptor Exceptions:
[junit] ---------------------------------------------------------
[junit]
[junit] Exception [EclipseLink-46] (Eclipse Persistence Services - 2.4.0.qualifier): org.eclipse.persistence.exceptions.Desc
riptorException
[junit] Exception Description: There should be one non-read-only mapping defined for the primary key field [ANIMAL.TYPE].
[junit] Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.inheritance.Animal --> [DatabaseTable(ANIMAL
)])
[junit]
[junit] Exception [EclipseLink-46] (Eclipse Persistence Services - 2.4.0.qualifier): org.eclipse.persistence.exceptions.Desc
riptorException
[junit] Exception Description: There should be one non-read-only mapping defined for the primary key field [ANIMAL.TYPE].
[junit] Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.inheritance.Dog --> [DatabaseTable(ANIMAL)])
[junit]
[junit] Exception [EclipseLink-46] (Eclipse Persistence Services - 2.4.0.qualifier): org.eclipse.persistence.exceptions.Desc
riptorException
[junit] Exception Description: There should be one non-read-only mapping defined for the primary key field [ANIMAL.TYPE].
[junit] Descriptor: RelationalDescriptor(org.eclipse.persistence.testing.models.inheritance.LabradorRetriever --> [DatabaseT
able(ANIMAL)])
[junit]
[junit] Runtime Exceptions:
[junit] ---------------------------------------------------------
[junit] )
[junit] [EL Info]: 2011-06-07 17:31:38.514--DatabaseSessionImpl(499668036)-- logout successful
[junit] [EL Info]: 2011-06-07 17:31:38.514--DatabaseSessionImpl(395237242)--EclipseLink, version: Eclipse Persistence Servic
es - 2.4.0.qualifier
[junit] [EL Info]: 2011-06-07 17:31:38.53--DatabaseSessionImpl(395237242)-- login successful
[junit] Tests run: 0, Failures: 0, Errors: 1, Time elapsed: 2,98 sec
[junit] Test org.eclipse.persistence.testing.tests.TestRunModel FAILED
[junitreport] Processing C:\WORK\SVN\trunk\foundation\eclipselink.core.test\reports\TESTS-TestSuites.xml to C:\WORK\SVN\trunk\fo
undation\eclipselink.core.test\reports\junit-noframes.html
[junitreport] Loading stylesheet jar:file:/C:/apache-ant-1.7.0/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/x
sl/junit-noframes.xsl
[junitreport] Transform time: 359ms
Could this be related to the 2.3 -> 2.4 transition?
Any idea?
-Adrian
Adrian Görler
SAP AG
Pflichtangaben/Mandatory Disclosure Statements:
http://www.sap.com/company/legal/impressum.epx