You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Michelle Caisse (JIRA)" <ji...@apache.org> on 2006/03/28 19:31:52 UTC

[jira] Created: (JDO-354) org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent may fail on teardown

org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent may fail on teardown
---------------------------------------------------------------------------------------

         Key: JDO-354
         URL: http://issues.apache.org/jira/browse/JDO-354
     Project: JDO
        Type: Bug
  Components: tck20  
    Versions: JDO 2 beta    
    Reporter: Michelle Caisse
     Fix For: JDO 2 final


When invoked from a configuration that does not use the default schema, MakePersistent fails because it queries for classes to tear down that do not exist in the current schema.

testMakePersistent
> > (org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent)
> > javax.jdo.JDOFatalException:
> > Exception during tearDown
> > 	at org.apache.jdo.tck.JDO_Test.tearDown(JDO_Test.java:329)
> > 	at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:251)
> > 	at org.apache.jdo.tck.util.BatchTestRunner.doRun
> > (BatchTestRunner.java:107)
> > 	at org.apache.jdo.tck.util.BatchTestRunner.start
> > (BatchTestRunner.java:147)
> > 	at org.apache.jdo.tck.util.BatchTestRunner.main
> > (BatchTestRunner.java:122)
> > NestedThrowablesStackTrace:
> > javax.jdo.JDODataStoreException: Error executing JDOQL query "SELECT
> > THIS.DEPARTMENT_ID,THIS.DEPTID,THIS."NAME" FROM
> > datastoreidentity7.DEPARTMENT
> > THIS" : Schema 'DATASTOREIDENTITY7' does not exist
> > ERROR 42Y07: Schema 'DATASTOREIDENTITY7' does not exist

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (JDO-354) org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent may fail on teardown

Posted by "Michelle Caisse (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JDO-354?page=all ]

Michelle Caisse updated JDO-354:
--------------------------------

    Comment: was deleted

> org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent may fail on teardown
> ---------------------------------------------------------------------------------------
>
>          Key: JDO-354
>          URL: http://issues.apache.org/jira/browse/JDO-354
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Versions: JDO 2 beta
>     Reporter: Michelle Caisse
>     Assignee: Michelle Caisse
>      Fix For: JDO 2 final
>  Attachments: JDO-354.patch
>
> When invoked from a configuration that does not use the default schema, MakePersistent fails because it queries for classes to tear down that do not exist in the current schema.
> testMakePersistent
> > > (org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent)
> > > javax.jdo.JDOFatalException:
> > > Exception during tearDown
> > > 	at org.apache.jdo.tck.JDO_Test.tearDown(JDO_Test.java:329)
> > > 	at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:251)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.doRun
> > > (BatchTestRunner.java:107)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.start
> > > (BatchTestRunner.java:147)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.main
> > > (BatchTestRunner.java:122)
> > > NestedThrowablesStackTrace:
> > > javax.jdo.JDODataStoreException: Error executing JDOQL query "SELECT
> > > THIS.DEPARTMENT_ID,THIS.DEPTID,THIS."NAME" FROM
> > > datastoreidentity7.DEPARTMENT
> > > THIS" : Schema 'DATASTOREIDENTITY7' does not exist
> > > ERROR 42Y07: Schema 'DATASTOREIDENTITY7' does not exist

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (JDO-354) org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent may fail on teardown

Posted by "Michael Watzek (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JDO-354?page=comments#action_12372236 ] 

Michael Watzek commented on JDO-354:
------------------------------------

I noticed that there is a little mismatch between test case MakePersistent, the .sql files, and the .orm files for mappings 5, 6, 7 wrt. which persistence capable classes are needed:

- Test case MakePersistent uses pc class PCPoint only.
- The .sql files create tables PCPoint and PCRect.
- The .orm files specifiy metadata for pc classes PCPoint, PCPoint2, PCRect, and PrimitiveTypes.

This holds true for application identity and datastore identity as well. Does it make sense to erase PCRect in the .sql files and to erase PCPoint2, PCRect, and PrimitiveTypes in the .orm files?


> org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent may fail on teardown
> ---------------------------------------------------------------------------------------
>
>          Key: JDO-354
>          URL: http://issues.apache.org/jira/browse/JDO-354
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Versions: JDO 2 beta
>     Reporter: Michelle Caisse
>     Assignee: Michelle Caisse
>      Fix For: JDO 2 final
>  Attachments: JDO-354.patch
>
> When invoked from a configuration that does not use the default schema, MakePersistent fails because it queries for classes to tear down that do not exist in the current schema.
> testMakePersistent
> > > (org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent)
> > > javax.jdo.JDOFatalException:
> > > Exception during tearDown
> > > 	at org.apache.jdo.tck.JDO_Test.tearDown(JDO_Test.java:329)
> > > 	at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:251)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.doRun
> > > (BatchTestRunner.java:107)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.start
> > > (BatchTestRunner.java:147)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.main
> > > (BatchTestRunner.java:122)
> > > NestedThrowablesStackTrace:
> > > javax.jdo.JDODataStoreException: Error executing JDOQL query "SELECT
> > > THIS.DEPARTMENT_ID,THIS.DEPTID,THIS."NAME" FROM
> > > datastoreidentity7.DEPARTMENT
> > > THIS" : Schema 'DATASTOREIDENTITY7' does not exist
> > > ERROR 42Y07: Schema 'DATASTOREIDENTITY7' does not exist

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (JDO-354) org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent may fail on teardown

Posted by "Michelle Caisse (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JDO-354?page=all ]

Michelle Caisse updated JDO-354:
--------------------------------

    Attachment: JDO-354.patch

This simple patch gives the following results with an otherwise clean build & latest JPOX download:
    [java] Total tests run: 1239. Failures: 1, Errors: 2.
    [java] 3 of 57 configurations failed.

I didn't modify the orm files as Michael suggested because we do explain the schema override in the .conf files.  If anyone else feels that we should also add comments to the orm files or improve the description in the .conf files, I would be happy to make that change.  Currently we say:
jdo.tck.description = MakePersistent test with schema name specified as class attribute in orm for PCPoint. Schema name derived from jdo.tck.mapping 1 is overriden in orm

[jdo.tck.mapping 1 is wrong.  I should see jdo.tck.mapping 7 (or 6, or 5)]


> org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent may fail on teardown
> ---------------------------------------------------------------------------------------
>
>          Key: JDO-354
>          URL: http://issues.apache.org/jira/browse/JDO-354
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Versions: JDO 2 beta
>     Reporter: Michelle Caisse
>     Assignee: Michelle Caisse
>      Fix For: JDO 2 final
>  Attachments: JDO-354.patch
>
> When invoked from a configuration that does not use the default schema, MakePersistent fails because it queries for classes to tear down that do not exist in the current schema.
> testMakePersistent
> > > (org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent)
> > > javax.jdo.JDOFatalException:
> > > Exception during tearDown
> > > 	at org.apache.jdo.tck.JDO_Test.tearDown(JDO_Test.java:329)
> > > 	at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:251)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.doRun
> > > (BatchTestRunner.java:107)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.start
> > > (BatchTestRunner.java:147)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.main
> > > (BatchTestRunner.java:122)
> > > NestedThrowablesStackTrace:
> > > javax.jdo.JDODataStoreException: Error executing JDOQL query "SELECT
> > > THIS.DEPARTMENT_ID,THIS.DEPTID,THIS."NAME" FROM
> > > datastoreidentity7.DEPARTMENT
> > > THIS" : Schema 'DATASTOREIDENTITY7' does not exist
> > > ERROR 42Y07: Schema 'DATASTOREIDENTITY7' does not exist

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (JDO-354) org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent may fail on teardown

Posted by "Michelle Caisse (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JDO-354?page=all ]

Michelle Caisse reassigned JDO-354:
-----------------------------------

    Assign To: Michelle Caisse

> org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent may fail on teardown
> ---------------------------------------------------------------------------------------
>
>          Key: JDO-354
>          URL: http://issues.apache.org/jira/browse/JDO-354
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Versions: JDO 2 beta
>     Reporter: Michelle Caisse
>     Assignee: Michelle Caisse
>      Fix For: JDO 2 final

>
> When invoked from a configuration that does not use the default schema, MakePersistent fails because it queries for classes to tear down that do not exist in the current schema.
> testMakePersistent
> > > (org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent)
> > > javax.jdo.JDOFatalException:
> > > Exception during tearDown
> > > 	at org.apache.jdo.tck.JDO_Test.tearDown(JDO_Test.java:329)
> > > 	at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:251)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.doRun
> > > (BatchTestRunner.java:107)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.start
> > > (BatchTestRunner.java:147)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.main
> > > (BatchTestRunner.java:122)
> > > NestedThrowablesStackTrace:
> > > javax.jdo.JDODataStoreException: Error executing JDOQL query "SELECT
> > > THIS.DEPARTMENT_ID,THIS.DEPTID,THIS."NAME" FROM
> > > datastoreidentity7.DEPARTMENT
> > > THIS" : Schema 'DATASTOREIDENTITY7' does not exist
> > > ERROR 42Y07: Schema 'DATASTOREIDENTITY7' does not exist

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (JDO-354) org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent may fail on teardown

Posted by "Michelle Caisse (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JDO-354?page=all ]
     
Michelle Caisse resolved JDO-354:
---------------------------------

    Resolution: Fixed

Fixed with revision 389639

> org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent may fail on teardown
> ---------------------------------------------------------------------------------------
>
>          Key: JDO-354
>          URL: http://issues.apache.org/jira/browse/JDO-354
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Versions: JDO 2 beta
>     Reporter: Michelle Caisse
>     Assignee: Michelle Caisse
>      Fix For: JDO 2 final
>  Attachments: JDO-354.patch
>
> When invoked from a configuration that does not use the default schema, MakePersistent fails because it queries for classes to tear down that do not exist in the current schema.
> testMakePersistent
> > > (org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent)
> > > javax.jdo.JDOFatalException:
> > > Exception during tearDown
> > > 	at org.apache.jdo.tck.JDO_Test.tearDown(JDO_Test.java:329)
> > > 	at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:251)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.doRun
> > > (BatchTestRunner.java:107)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.start
> > > (BatchTestRunner.java:147)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.main
> > > (BatchTestRunner.java:122)
> > > NestedThrowablesStackTrace:
> > > javax.jdo.JDODataStoreException: Error executing JDOQL query "SELECT
> > > THIS.DEPARTMENT_ID,THIS.DEPTID,THIS."NAME" FROM
> > > datastoreidentity7.DEPARTMENT
> > > THIS" : Schema 'DATASTOREIDENTITY7' does not exist
> > > ERROR 42Y07: Schema 'DATASTOREIDENTITY7' does not exist

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Re: [jira] Commented: (JDO-354) org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent may fail on teardown

Posted by Craig L Russell <Cr...@Sun.COM>.
Hi Michael,

Probably a different JIRA issue should track this.

Thanks,

Craig

On Mar 29, 2006, at 8:21 AM, Craig Russell (JIRA) wrote:

>     [ http://issues.apache.org/jira/browse/JDO-354? 
> page=comments#action_12372278 ]
>
> Craig Russell commented on JDO-354:
> -----------------------------------
>
> When the tests were written, I think we didn't know exactly what we  
> were going to test, and made extra classes persistent in order to  
> have some flexibility.
>
> Now that the tests are complete, it's not clear to me that we will  
> ever extend the test cases so we don't need to keep the extra  
> classes in the sql and orm.
>
> So it's ok with me to remove the extras.
>
>> org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent  
>> may fail on teardown
>> --------------------------------------------------------------------- 
>> ------------------
>>
>>          Key: JDO-354
>>          URL: http://issues.apache.org/jira/browse/JDO-354
>>      Project: JDO
>>         Type: Bug
>>   Components: tck20
>>     Versions: JDO 2 beta
>>     Reporter: Michelle Caisse
>>     Assignee: Michelle Caisse
>>      Fix For: JDO 2 final
>>  Attachments: JDO-354.patch
>>
>> When invoked from a configuration that does not use the default  
>> schema, MakePersistent fails because it queries for classes to  
>> tear down that do not exist in the current schema.
>> testMakePersistent
>>>> (org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent 
>>>> )
>>>> javax.jdo.JDOFatalException:
>>>> Exception during tearDown
>>>> 	at org.apache.jdo.tck.JDO_Test.tearDown(JDO_Test.java:329)
>>>> 	at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:251)
>>>> 	at org.apache.jdo.tck.util.BatchTestRunner.doRun
>>>> (BatchTestRunner.java:107)
>>>> 	at org.apache.jdo.tck.util.BatchTestRunner.start
>>>> (BatchTestRunner.java:147)
>>>> 	at org.apache.jdo.tck.util.BatchTestRunner.main
>>>> (BatchTestRunner.java:122)
>>>> NestedThrowablesStackTrace:
>>>> javax.jdo.JDODataStoreException: Error executing JDOQL query  
>>>> "SELECT
>>>> THIS.DEPARTMENT_ID,THIS.DEPTID,THIS."NAME" FROM
>>>> datastoreidentity7.DEPARTMENT
>>>> THIS" : Schema 'DATASTOREIDENTITY7' does not exist
>>>> ERROR 42Y07: Schema 'DATASTOREIDENTITY7' does not exist
>
> -- 
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the  
> administrators:
>    http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see:
>    http://www.atlassian.com/software/jira
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


[jira] Commented: (JDO-354) org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent may fail on teardown

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JDO-354?page=comments#action_12372278 ] 

Craig Russell commented on JDO-354:
-----------------------------------

When the tests were written, I think we didn't know exactly what we were going to test, and made extra classes persistent in order to have some flexibility. 

Now that the tests are complete, it's not clear to me that we will ever extend the test cases so we don't need to keep the extra classes in the sql and orm. 

So it's ok with me to remove the extras.

> org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent may fail on teardown
> ---------------------------------------------------------------------------------------
>
>          Key: JDO-354
>          URL: http://issues.apache.org/jira/browse/JDO-354
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Versions: JDO 2 beta
>     Reporter: Michelle Caisse
>     Assignee: Michelle Caisse
>      Fix For: JDO 2 final
>  Attachments: JDO-354.patch
>
> When invoked from a configuration that does not use the default schema, MakePersistent fails because it queries for classes to tear down that do not exist in the current schema.
> testMakePersistent
> > > (org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent)
> > > javax.jdo.JDOFatalException:
> > > Exception during tearDown
> > > 	at org.apache.jdo.tck.JDO_Test.tearDown(JDO_Test.java:329)
> > > 	at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:251)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.doRun
> > > (BatchTestRunner.java:107)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.start
> > > (BatchTestRunner.java:147)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.main
> > > (BatchTestRunner.java:122)
> > > NestedThrowablesStackTrace:
> > > javax.jdo.JDODataStoreException: Error executing JDOQL query "SELECT
> > > THIS.DEPARTMENT_ID,THIS.DEPTID,THIS."NAME" FROM
> > > datastoreidentity7.DEPARTMENT
> > > THIS" : Schema 'DATASTOREIDENTITY7' does not exist
> > > ERROR 42Y07: Schema 'DATASTOREIDENTITY7' does not exist

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (JDO-354) org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent may fail on teardown

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JDO-354?page=comments#action_12372169 ] 

Craig Russell commented on JDO-354:
-----------------------------------

Two comments:

1. The patch looks good. I think this should solve the issue. Ok with me to check it in.

2. I think the description in the .conf files is too cryptic. I read it a few times and was still confused as to exactly what it was doing. It might help if you had a bit more text in the description.

MakePersistent test with schema name specified as class attribute in orm for PCPoint. The schema name derived from jdo.tck.mapping 7, e.g. applicationidentity7,  is overriden in the file org/apache/jdo/tck/pc/PCPoint.orm to specify schema e.g. applicationidentity_cls.

MakePersistent test with schema name specified as package attribute in orm for PCPoint. The schema name derived from jdo.tck.mapping 7, e.g. applicationidentity6,  is overriden in the file applicationidentity/org/apache/jdo/tck/pc/package-standard6.orm to specify schema e.g. applicationidentity_pkg.

I probably got this wrong, but you get the idea.


> org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent may fail on teardown
> ---------------------------------------------------------------------------------------
>
>          Key: JDO-354
>          URL: http://issues.apache.org/jira/browse/JDO-354
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Versions: JDO 2 beta
>     Reporter: Michelle Caisse
>     Assignee: Michelle Caisse
>      Fix For: JDO 2 final
>  Attachments: JDO-354.patch
>
> When invoked from a configuration that does not use the default schema, MakePersistent fails because it queries for classes to tear down that do not exist in the current schema.
> testMakePersistent
> > > (org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent)
> > > javax.jdo.JDOFatalException:
> > > Exception during tearDown
> > > 	at org.apache.jdo.tck.JDO_Test.tearDown(JDO_Test.java:329)
> > > 	at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:251)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.doRun
> > > (BatchTestRunner.java:107)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.start
> > > (BatchTestRunner.java:147)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.main
> > > (BatchTestRunner.java:122)
> > > NestedThrowablesStackTrace:
> > > javax.jdo.JDODataStoreException: Error executing JDOQL query "SELECT
> > > THIS.DEPARTMENT_ID,THIS.DEPTID,THIS."NAME" FROM
> > > datastoreidentity7.DEPARTMENT
> > > THIS" : Schema 'DATASTOREIDENTITY7' does not exist
> > > ERROR 42Y07: Schema 'DATASTOREIDENTITY7' does not exist

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (JDO-354) org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent may fail on teardown

Posted by "Michelle Caisse (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JDO-354?page=comments#action_12372161 ] 

Michelle Caisse commented on JDO-354:
-------------------------------------

 This simple patch gives the following results with an otherwise clean build & latest JPOX download:
    [java] Total tests run: 1239. Failures: 1, Errors: 2.
    [java] 3 of 57 configurations failed.

I didn't modify the orm files as Michael suggested because we do explain the schema override in the .conf files. If anyone else feels that we should also add comments to the orm files or improve the description in the .conf files, I would be happy to make that change. Currently we say:
jdo.tck.description = MakePersistent test with schema name specified as class attribute in orm for PCPoint. Schema name derived from jdo.tck.mapping 1 is overriden in orm

[jdo.tck.mapping 1 is wrong. It should say jdo.tck.mapping 7 (or 6, or 5)]


> org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent may fail on teardown
> ---------------------------------------------------------------------------------------
>
>          Key: JDO-354
>          URL: http://issues.apache.org/jira/browse/JDO-354
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Versions: JDO 2 beta
>     Reporter: Michelle Caisse
>     Assignee: Michelle Caisse
>      Fix For: JDO 2 final
>  Attachments: JDO-354.patch
>
> When invoked from a configuration that does not use the default schema, MakePersistent fails because it queries for classes to tear down that do not exist in the current schema.
> testMakePersistent
> > > (org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent)
> > > javax.jdo.JDOFatalException:
> > > Exception during tearDown
> > > 	at org.apache.jdo.tck.JDO_Test.tearDown(JDO_Test.java:329)
> > > 	at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:251)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.doRun
> > > (BatchTestRunner.java:107)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.start
> > > (BatchTestRunner.java:147)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.main
> > > (BatchTestRunner.java:122)
> > > NestedThrowablesStackTrace:
> > > javax.jdo.JDODataStoreException: Error executing JDOQL query "SELECT
> > > THIS.DEPARTMENT_ID,THIS.DEPTID,THIS."NAME" FROM
> > > datastoreidentity7.DEPARTMENT
> > > THIS" : Schema 'DATASTOREIDENTITY7' does not exist
> > > ERROR 42Y07: Schema 'DATASTOREIDENTITY7' does not exist

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (JDO-354) org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent may fail on teardown

Posted by "Michelle Caisse (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JDO-354?page=comments#action_12372125 ] 

Michelle Caisse commented on JDO-354:
-------------------------------------

Comment by Michael Watzek:

configurations "schemaAttributeOrm.conf" (Mapping 5), "schemaAttributePackage.conf" (Mapping 6), and "schemaAttributeClass.conf" (Mapping 7) run test MakePersistent which inherits from PersistenceManagerTest.

Class PersistentManagerTest implements localSetUp adding tear down classes PCRect, PCPoint, Department, and Company. But Department and Company are not contained in Mappings 5, 6, and 7. I propose to redefine localSetUp in MakePersistent accordingly.

Perhaps it makes sense to add a comment to ORM metadata of mappings 5, 6, and 7. All of these mappings overwrite the default schema name passed as PMF property. Those mappings  assign a schema name which does not comply to our schema name convention <identitytype><mapping>. A comment would just be helpful to understand that this is done on purpose. 

> org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent may fail on teardown
> ---------------------------------------------------------------------------------------
>
>          Key: JDO-354
>          URL: http://issues.apache.org/jira/browse/JDO-354
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Versions: JDO 2 beta
>     Reporter: Michelle Caisse
>      Fix For: JDO 2 final

>
> When invoked from a configuration that does not use the default schema, MakePersistent fails because it queries for classes to tear down that do not exist in the current schema.
> testMakePersistent
> > > (org.apache.jdo.tck.api.persistencemanager.lifecycle.MakePersistent)
> > > javax.jdo.JDOFatalException:
> > > Exception during tearDown
> > > 	at org.apache.jdo.tck.JDO_Test.tearDown(JDO_Test.java:329)
> > > 	at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:251)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.doRun
> > > (BatchTestRunner.java:107)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.start
> > > (BatchTestRunner.java:147)
> > > 	at org.apache.jdo.tck.util.BatchTestRunner.main
> > > (BatchTestRunner.java:122)
> > > NestedThrowablesStackTrace:
> > > javax.jdo.JDODataStoreException: Error executing JDOQL query "SELECT
> > > THIS.DEPARTMENT_ID,THIS.DEPTID,THIS."NAME" FROM
> > > datastoreidentity7.DEPARTMENT
> > > THIS" : Schema 'DATASTOREIDENTITY7' does not exist
> > > ERROR 42Y07: Schema 'DATASTOREIDENTITY7' does not exist

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira