db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michelle Caisse <Michelle.Cai...@Sun.COM>
Subject Re: My first test run -- 'splain me this, Lucy
Date Fri, 23 Sep 2005 02:08:12 GMT
Hi Matthew,

I've never seen this.  I'd like to know what detach.list looks like.  I 
don't see it or the test class in the attachment list.
It should look something like what's shown in step 9 of 
http://wiki.apache.org/jdo/TechnologyCompatibilityKit#HowTo.  mapping 
should equal 0, not "" as shown in the console output you quote.

-- Michelle

Matthew T. Adams wrote:

>Hi all,
>
>I'm trying to run my first test, and I'm getting some results that I
>understand, and some results that I don't.  Attached are the logs produced,
>as well as the test class & config files.
>
>What I don't quite get is this console output:
>doRuntck.jdori:
>    [java] Problems reading testlist JDOTCKTestCases.list:
>java.io.FileNotFoundException: JDOTCKTestCases.list (The system cannot find
>the file specified)
>    [java] Description:
>    [java] Time: 000
>    [java] derby-app-detach-junit.txt:
>    [java]     OK Tests run: 000, Time: 000 seconds.
>    [java] Excluded tests:
>[org.apache.jdo.tck.enhancement.FieldAccessModified,
>org.apache.jdo.tck.enhancement.ImplementsPersistenceCapable]
>    [echo] Finished run with database="derby"
>identitytype="applicationidentity" mapping="".
>
>I didn't expect JDOTCKTestCases.list to be searched for at all, since I
>specified "maven -Djdo.tck.cfglist=detach.list runtck.jdori" at the command
>line.  I would expect 2 of 2 cofigurations to fail (appid & dsid), since
>JPOX doesn't yet implement the PMF & PM property detachAllOnCommit.
>Instead, the message I get is that 1 of 2 configurations failed.
>
>What gives?  Any ideas?
>
>--matthew
>
>Matthew T. Adams
>Corporate Technical Advisor & Senior Consultant
>Mobile:  +1 253 732 1051
>Phone:  +1 206 331 3833
>Fax:  +1 815 331 0952
>matthew.adams@xcalia.com
>P.O. Box 24163
>Federal Way, WA  98093
>www.xcalia.com
>
>
>
>Xcalia makes implementing SOA easy with agile business intermediation
>software that combines heterogeneous data with services to easily develop
>and deploy transactional composite applications.  Enterprises can quickly
>respond to changing business requirements and dramatically reduce the costs
>of data access and service integration.
>  
>
>------------------------------------------------------------------------
>
>RUN SetDetachAllOnCommit.test	   ERROR
>Description: Detachment tests with standard mapping, no testdata.
>Time: 006
>There was 1 error:
>1) test(org.apache.jdo.tck.api.persistencemanager.detach.SetDetachAllOnCommit)java.lang.AbstractMethodError:
org.jpox.PersistenceManagerImpl.setDetachAllOnCommit(Z)V
>	at org.apache.jdo.tck.api.persistencemanager.detach.SetDetachAllOnCommit.runTestSetDetachAllOnCommit(SetDetachAllOnCommit.java:58)
>	at org.apache.jdo.tck.api.persistencemanager.detach.SetDetachAllOnCommit.test(SetDetachAllOnCommit.java:50)
>	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>	at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:204)
>	at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:115)
>	at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:93)
>FAILURES!!!
>Error summary:
>001 error:  java.lang.AbstractMethodError: org.jpox.PersistenceManagerImpl.setDetachAllOnCommit(Z)V
>derby-dsid-detach-junit.txt:
>    ** Tests run: 001, Time: 006 seconds. Failures: 0, Errors: 1
>Excluded tests: [org.apache.jdo.tck.enhancement.FieldAccessModified, org.apache.jdo.tck.enhancement.ImplementsPersistenceCapable]
>  
>
>------------------------------------------------------------------------
>
>18:17:10,907 (main) INFO  [org.apache.jdo.tck] - Exception during setUp or runtest: 
>java.lang.AbstractMethodError: org.jpox.PersistenceManagerImpl.setDetachAllOnCommit(Z)V
>	at org.apache.jdo.tck.api.persistencemanager.detach.SetDetachAllOnCommit.runTestSetDetachAllOnCommit(SetDetachAllOnCommit.java:58)
>	at org.apache.jdo.tck.api.persistencemanager.detach.SetDetachAllOnCommit.test(SetDetachAllOnCommit.java:50)
>	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>	at java.lang.reflect.Method.invoke(Method.java:324)
>	at junit.framework.TestCase.runTest(TestCase.java:154)
>	at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:204)
>	at junit.framework.TestResult$1.protect(TestResult.java:106)
>	at junit.framework.TestResult.runProtected(TestResult.java:124)
>	at junit.framework.TestResult.run(TestResult.java:109)
>	at junit.framework.TestCase.run(TestCase.java:118)
>	at junit.framework.TestSuite.runTest(TestSuite.java:208)
>	at junit.framework.TestSuite.run(TestSuite.java:203)
>	at junit.textui.TestRunner.doRun(TestRunner.java:116)
>	at junit.textui.TestRunner.doRun(TestRunner.java:109)
>	at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:115)
>	at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:93)
>  
>
>------------------------------------------------------------------------
>
>derby-app-detach-junit.txt:
>    OK Tests run: 000, Time: 000 seconds.
>derby-dsid-detach-junit.txt:
>    ** Tests run: 001, Time: 006 seconds. Failures: 0, Errors: 1
>-------
>Result: 1 of 2 configurations failed.
>  
>
>------------------------------------------------------------------------
>
>Description: 
>Time: 000
>derby-app-detach-junit.txt:
>    OK Tests run: 000, Time: 000 seconds.
>Excluded tests: [org.apache.jdo.tck.enhancement.FieldAccessModified, org.apache.jdo.tck.enhancement.ImplementsPersistenceCapable]
>  
>
>------------------------------------------------------------------------
>
>18:17:07,773 (main) INFO  [com.mchange.v2.log.MLog] - MLog clients using log4j logging.
>18:17:07,803 (main) INFO  [com.mchange.v2.c3p0.C3P0Registry] - Initializing c3p0-0.9.0
[built 11-July-2005 00:43:29 -0400; debug? true; trace: 10]
>18:17:08,073 (main) INFO  [JPOX.JDO] - PersistenceManagerFactory - Vendor: JPOX  Version:
1.1.0-rc-1
>18:17:08,073 (main) INFO  [JPOX.JDO] - PersistenceManagerFactory initialised for datastore
URL=jdbc:derby:jdotckdb driver=org.apache.derby.jdbc.EmbeddedDriver userName=
>18:17:08,384 (main) INFO  [com.mchange.v2.c3p0.PoolBackedDataSource] - Initializing c3p0
pool... com.mchange.v2.c3p0.ComboPooledDataSource@1f26605[ acquireIncrement -> 3, acquireRetryAttempts
-> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable
-> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionTesterClassName
-> com.mchange.v2.c3p0.impl.DefaultConnectionTester, description -> null, driverClass
-> org.apache.derby.jdbc.EmbeddedDriver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions
-> false, identityToken -> 1f26605, idleConnectionTestPeriod -> -1, initialPoolSize
-> 3, jdbcUrl -> jdbc:derby:jdotckdb, loginTimeout -> 0, maxIdleTime -> 0, maxPoolSize
-> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3,
numHelperThreads -> 3, preferredTestQuery -> null, properties -> {user=******, password=******},
propertyCycle -> 300, testConnectionOnCheckin -> false, testConnectionOnCheckout ->
false, usesTraditionalReflectiveProxies -> false ]
>18:17:10,897 (main) INFO  [JPOX.RDBMS] - RDBMS Adapter initialised : CloudscapeAdapter
: Apache Derby version=10.1.1.0, major=10, minor=1, revision=1
>Identifier Names : UPPERCASE 
>Driver name=Apache Derby Embedded JDBC Driver, version=10.1.1.0, major=10, minor=1
>Identifier Max Lengths : Table=128  Column=30  Constraint=18  Index=18  Delimeters="
>Identifier Support in DDL : catalog=false  schema=true
>18:17:10,897 (main) INFO  [JPOX.RDBMS.SCHEMA] - Initialising Catalog "", Schema "TCKUSER"
using "None" auto-start option
>18:17:10,897 (main) INFO  [JPOX.RDBMS.SCHEMA] - Catalog "", Schema "TCKUSER" initialised
- managing 0 classes
>18:17:11,078 (main) INFO  [JPOX.MetaData] - Parsing MetaData from file "file:/C:/apache-jdo/jdo/trunk/tck20/target/enhanced/jdori/datastoreidentity.jar!/org/apache/jdo/tck/package.jdo"
>18:17:11,218 (main) INFO  [JPOX.MetaData] - Parsing MetaData from file "file:/C:/apache-jdo/jdo/trunk/tck20/target/enhanced/jdori/datastoreidentity.jar!/org/apache/jdo/tck/pc/fieldtypes/SimpleClass-derby.orm"
>18:17:11,238 (main) INFO  [JPOX.MetaData] - Parsing MetaData from file "file:/C:/apache-jdo/jdo/trunk/tck20/target/enhanced/jdori/datastoreidentity.jar!/org/apache/jdo/tck/pc/mylib/package.jdo"
>18:17:11,258 (main) INFO  [JPOX.MetaData] - Parsing MetaData from file "file:/C:/apache-jdo/jdo/trunk/tck20/target/enhanced/jdori/datastoreidentity.jar!/org/apache/jdo/tck/pc/mylib/package-derby.orm"
>18:17:11,348 (main) INFO  [JPOX.RDBMS.SCHEMA] - Managing Persistence of Class : org.apache.jdo.tck.pc.mylib.PCPoint
[Table : datastoreidentity0.PCPOINT, InheritanceStrategy : new-table]
>18:17:11,488 (main) INFO  [JPOX.RDBMS.SCHEMA] - Managing Persistence of Class : org.apache.jdo.tck.pc.mylib.PCRect
[Table : datastoreidentity0.PCRECT, InheritanceStrategy : new-table]
>18:17:12,069 (main) INFO  [JPOX.RDBMS.SCHEMA] - No column info found for table "datastoreidentity0.PCRECT"
- the table apparently doesnt yet exist in the datastore
>18:17:12,099 (main) INFO  [JPOX.RDBMS.SCHEMA] - No column info found for table "datastoreidentity0.PCPOINT"
- the table apparently doesnt yet exist in the datastore
>18:17:12,690 (main) INFO  [JPOX.MetaData] - Parsing MetaData from file "file:/C:/apache-jdo/jdo/trunk/tck20/target/enhanced/jdori/datastoreidentity.jar!/org/apache/jdo/tck/pc/company/package.jdo"
>18:17:12,730 (main) INFO  [JPOX.MetaData] - Parsing MetaData from file "file:/C:/apache-jdo/jdo/trunk/tck20/target/enhanced/jdori/datastoreidentity.jar!/org/apache/jdo/tck/pc/company/package-derby.orm"
>18:17:12,780 (main) INFO  [JPOX.MetaData] - The class "DentalInsurance" has had its persistence-capable-superclass
set to "org.apache.jdo.tck.pc.company.Insurance" - it wasnt specified in the MetaData.
>18:17:12,780 (main) INFO  [JPOX.MetaData] - The class "Employee" has had its persistence-capable-superclass
set to "org.apache.jdo.tck.pc.company.Person" - it wasnt specified in the MetaData.
>18:17:12,790 (main) INFO  [JPOX.MetaData] - Field "phoneNumbers" in class "Person" has
been defined as a Map with keys of type String. This key type has been resolved to java.lang.String.
>18:17:12,790 (main) INFO  [JPOX.MetaData] - Field "phoneNumbers" in class "Person" has
been defined as a Map with values of type String. This value type has been resolved to java.lang.String.
>18:17:12,790 (main) INFO  [JPOX.MetaData] - The class "FullTimeEmployee" has had its persistence-capable-superclass
set to "org.apache.jdo.tck.pc.company.Employee" - it wasnt specified in the MetaData.
>18:17:12,790 (main) INFO  [JPOX.MetaData] - The class "MedicalInsurance" has had its persistence-capable-superclass
set to "org.apache.jdo.tck.pc.company.Insurance" - it wasnt specified in the MetaData.
>18:17:12,790 (main) INFO  [JPOX.MetaData] - The class "PartTimeEmployee" has had its persistence-capable-superclass
set to "org.apache.jdo.tck.pc.company.Employee" - it wasnt specified in the MetaData.
>18:17:12,800 (main) INFO  [JPOX.RDBMS] - The class "org.apache.jdo.tck.pc.company.Address"
is tagged as "embedded-only" so does not have its own datastore table.
>18:17:12,800 (main) INFO  [JPOX.RDBMS.SCHEMA] - Managing Persistence of Class : org.apache.jdo.tck.pc.company.Company
[Table : datastoreidentity0.COMPANIES, InheritanceStrategy : new-table]
>18:17:12,800 (main) INFO  [JPOX.RDBMS.SCHEMA] - Managing Persistence of Class : org.apache.jdo.tck.pc.company.Insurance
[Table : datastoreidentity0.INSURANCEPLANS, InheritanceStrategy : new-table]
>18:17:12,800 (main) INFO  [JPOX.RDBMS.SCHEMA] - Managing Persistence of Class : org.apache.jdo.tck.pc.company.DentalInsurance
[Table : datastoreidentity0.INSURANCEPLANS, InheritanceStrategy : superclass-table]
>18:17:12,800 (main) INFO  [JPOX.RDBMS.SCHEMA] - Managing Persistence of Class : org.apache.jdo.tck.pc.company.MedicalInsurance
[Table : datastoreidentity0.INSURANCEPLANS, InheritanceStrategy : superclass-table]
>18:17:12,800 (main) INFO  [JPOX.RDBMS.SCHEMA] - Managing Persistence of Class : org.apache.jdo.tck.pc.company.Project
[Table : datastoreidentity0.PROJECTS, InheritanceStrategy : new-table]
>18:17:12,800 (main) INFO  [JPOX.RDBMS.SCHEMA] - Managing Persistence of Class : org.apache.jdo.tck.pc.company.Person
[Table : datastoreidentity0.PERSONS, InheritanceStrategy : new-table]
>18:17:12,800 (main) INFO  [JPOX.RDBMS.SCHEMA] - Managing Persistence of Class : org.apache.jdo.tck.pc.company.Employee
[Table : datastoreidentity0.PERSONS, InheritanceStrategy : superclass-table]
>18:17:12,800 (main) INFO  [JPOX.RDBMS.SCHEMA] - Managing Persistence of Class : org.apache.jdo.tck.pc.company.Department
[Table : datastoreidentity0.DEPARTMENTS, InheritanceStrategy : new-table]
>18:17:12,830 (main) INFO  [JPOX.RDBMS.SCHEMA] - Managing Persistence of Field : org.apache.jdo.tck.pc.company.Person.phoneNumbers
[Table : datastoreidentity0.EMPLOYEE_PHONENO_TYPE]
>18:17:12,830 (main) INFO  [JPOX.RDBMS.SCHEMA] - Managing Persistence of Field : org.apache.jdo.tck.pc.company.Employee.projects
[Table : datastoreidentity0.PROJECT_MEMBER]
>18:17:12,830 (main) INFO  [JPOX.RDBMS.SCHEMA] - Managing Persistence of Field : org.apache.jdo.tck.pc.company.Employee.reviewedProjects
[Table : datastoreidentity0.PROJECT_REVIEWER]
>18:17:12,840 (main) INFO  [JPOX.RDBMS.SCHEMA] - Managing Persistence of Field : org.apache.jdo.tck.pc.company.Project.members
[Table : datastoreidentity0.PROJECT_MEMBER]
>18:17:12,840 (main) INFO  [JPOX.RDBMS.SCHEMA] - Managing Persistence of Field : org.apache.jdo.tck.pc.company.Project.reviewers
[Table : datastoreidentity0.PROJECT_REVIEWER]
>18:17:12,850 (main) INFO  [JPOX.RDBMS.SCHEMA] - No column info found for table "datastoreidentity0.DEPARTMENTS"
- the table apparently doesnt yet exist in the datastore
>18:17:12,860 (main) INFO  [JPOX.RDBMS.SCHEMA] - No column info found for table "datastoreidentity0.PERSONS"
- the table apparently doesnt yet exist in the datastore
>18:17:12,860 (main) INFO  [JPOX.RDBMS.SCHEMA] - No column info found for table "datastoreidentity0.COMPANIES"
- the table apparently doesnt yet exist in the datastore
>18:17:12,860 (main) INFO  [JPOX.RDBMS.SCHEMA] - No column info found for table "datastoreidentity0.INSURANCEPLANS"
- the table apparently doesnt yet exist in the datastore
>18:17:12,860 (main) INFO  [JPOX.RDBMS.SCHEMA] - No column info found for table "datastoreidentity0.PROJECTS"
- the table apparently doesnt yet exist in the datastore
>18:17:12,860 (main) INFO  [JPOX.RDBMS.SCHEMA] - No column info found for table "datastoreidentity0.PROJECT_REVIEWER"
- the table apparently doesnt yet exist in the datastore
>18:17:12,860 (main) INFO  [JPOX.RDBMS.SCHEMA] - No column info found for table "datastoreidentity0.PROJECT_MEMBER"
- the table apparently doesnt yet exist in the datastore
>18:17:12,860 (main) INFO  [JPOX.RDBMS.SCHEMA] - No column info found for table "datastoreidentity0.PROJECT_REVIEWER"
- the table apparently doesnt yet exist in the datastore
>18:17:12,870 (main) INFO  [JPOX.RDBMS.SCHEMA] - No column info found for table "datastoreidentity0.EMPLOYEE_PHONENO_TYPE"
- the table apparently doesnt yet exist in the datastore
>18:17:12,870 (main) INFO  [JPOX.RDBMS.SCHEMA] - No column info found for table "datastoreidentity0.PROJECT_MEMBER"
- the table apparently doesnt yet exist in the datastore
>  
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message