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 2005/11/04 22:19:19 UTC

[jira] Created: (JDO-202) orm.xsd and unit tests for xsd are missing

orm.xsd and unit tests for xsd are missing
------------------------------------------

         Key: JDO-202
         URL: http://issues.apache.org/jira/browse/JDO-202
     Project: JDO
        Type: Bug
  Components: api20  
    Reporter: Michelle Caisse
 Assigned to: Michael Bouschen 


The xsd is missing  from api20/src/dtd/javax/jdo and there is no test for it.  Also need a test for jdo.xsd.

-- 
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-202) orm.xsd and unit tests for xsd are missing

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

Michael Bouschen updated JDO-202:
---------------------------------

    Attachment: schemaValidation-060220.patch

Attached you find a new patch schemaValidation-060220.patch for review. It changes the test .jdo files according to the latest jdo.dtd and jdo.xsd updates.

> orm.xsd and unit tests for xsd are missing
> ------------------------------------------
>
>          Key: JDO-202
>          URL: http://issues.apache.org/jira/browse/JDO-202
>      Project: JDO
>         Type: Test
>   Components: api20
>     Versions: JDO 2 beta
>     Reporter: Michelle Caisse
>     Assignee: Michael Bouschen
>      Fix For: JDO 2 rc1
>  Attachments: XSD.patch, schemaValidation-060212.patch, schemaValidation-060218.patch, schemaValidation-060220.patch, schematest.patch
>
> The xsd is missing  from api20/src/dtd/javax/jdo and there is no test for it.  Also need a test for jdo.xsd.

-- 
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-202) orm.xsd and unit tests for xsd are missing

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

Craig Russell updated JDO-202:
------------------------------

    Fix Version: JDO 2 rc1
        Version: JDO 2 beta

> orm.xsd and unit tests for xsd are missing
> ------------------------------------------
>
>          Key: JDO-202
>          URL: http://issues.apache.org/jira/browse/JDO-202
>      Project: JDO
>         Type: Bug
>   Components: api20
>     Versions: JDO 2 beta
>     Reporter: Michelle Caisse
>     Assignee: Michael Bouschen
>      Fix For: JDO 2 rc1
>  Attachments: schematest.patch
>
> The xsd is missing  from api20/src/dtd/javax/jdo and there is no test for it.  Also need a test for jdo.xsd.

-- 
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] Reopened: (JDO-202) orm.xsd and unit tests for xsd are missing

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


> orm.xsd and unit tests for xsd are missing
> ------------------------------------------
>
>          Key: JDO-202
>          URL: http://issues.apache.org/jira/browse/JDO-202
>      Project: JDO
>         Type: Test
>   Components: api20
>     Versions: JDO 2 beta
>     Reporter: Michelle Caisse
>     Assignee: Michael Bouschen
>      Fix For: JDO 2 final
>  Attachments: XSD.patch, schemaValidation-060212.patch, schemaValidation-060218.patch, schemaValidation-060220.patch, schematest.patch
>
> The xsd is missing  from api20/src/dtd/javax/jdo and there is no test for it.  Also need a test for jdo.xsd.

-- 
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-202) orm.xsd and unit tests for xsd are missing

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

Michael Bouschen updated JDO-202:
---------------------------------

    Attachment: schemaValidation-060212.patch

The attached patch schemaValidation-060212.patch adds a new test XMLTest.

> orm.xsd and unit tests for xsd are missing
> ------------------------------------------
>
>          Key: JDO-202
>          URL: http://issues.apache.org/jira/browse/JDO-202
>      Project: JDO
>         Type: Test
>   Components: api20
>     Versions: JDO 2 beta
>     Reporter: Michelle Caisse
>     Assignee: Michael Bouschen
>      Fix For: JDO 2 rc1
>  Attachments: XSD.patch, schemaValidation-060212.patch, schematest.patch
>
> The xsd is missing  from api20/src/dtd/javax/jdo and there is no test for it.  Also need a test for jdo.xsd.

-- 
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-202) orm.xsd and unit tests for xsd are missing

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

Craig Russell updated JDO-202:
------------------------------

    Attachment: XSD.patch

This patch fixes a syntax error in two of the .xsd files, in which the attributes were defined inside the element instead of outside.


> orm.xsd and unit tests for xsd are missing
> ------------------------------------------
>
>          Key: JDO-202
>          URL: http://issues.apache.org/jira/browse/JDO-202
>      Project: JDO
>         Type: Test
>   Components: api20
>     Versions: JDO 2 beta
>     Reporter: Michelle Caisse
>     Assignee: Michael Bouschen
>      Fix For: JDO 2 rc1
>  Attachments: XSD.patch, schematest.patch
>
> The xsd is missing  from api20/src/dtd/javax/jdo and there is no test for it.  Also need a test for jdo.xsd.

-- 
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-202) orm.xsd and unit tests for xsd are missing

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

Craig Russell updated JDO-202:
------------------------------

    Attachment: schematest.patch

This is just some code to stimulate discussion. 

> orm.xsd and unit tests for xsd are missing
> ------------------------------------------
>
>          Key: JDO-202
>          URL: http://issues.apache.org/jira/browse/JDO-202
>      Project: JDO
>         Type: Bug
>   Components: api20
>     Reporter: Michelle Caisse
>     Assignee: Michael Bouschen
>  Attachments: schematest.patch
>
> The xsd is missing  from api20/src/dtd/javax/jdo and there is no test for it.  Also need a test for jdo.xsd.

-- 
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-202) orm.xsd and unit tests for xsd are missing

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

Craig Russell commented on JDO-202:
-----------------------------------

This change adds orm.xsd to the jdo implementation, but it has not been tested.

Committed revision 357371.

> orm.xsd and unit tests for xsd are missing
> ------------------------------------------
>
>          Key: JDO-202
>          URL: http://issues.apache.org/jira/browse/JDO-202
>      Project: JDO
>         Type: Bug
>   Components: api20
>     Reporter: Michelle Caisse
>     Assignee: Michael Bouschen

>
> The xsd is missing  from api20/src/dtd/javax/jdo and there is no test for it.  Also need a test for jdo.xsd.

-- 
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-202) orm.xsd and unit tests for xsd are missing

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

    Resolution: Fixed

A test program XMLTest has been added to the api20 project.

> orm.xsd and unit tests for xsd are missing
> ------------------------------------------
>
>          Key: JDO-202
>          URL: http://issues.apache.org/jira/browse/JDO-202
>      Project: JDO
>         Type: Test
>   Components: api20
>     Versions: JDO 2 beta
>     Reporter: Michelle Caisse
>     Assignee: Michael Bouschen
>      Fix For: JDO 2 final
>  Attachments: XSD.patch, schemaValidation-060212.patch, schemaValidation-060218.patch, schemaValidation-060220.patch, schematest.patch
>
> The xsd is missing  from api20/src/dtd/javax/jdo and there is no test for it.  Also need a test for jdo.xsd.

-- 
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-202) orm.xsd and unit tests for xsd are missing

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

Craig Russell updated JDO-202:
------------------------------

    type: Test  (was: Bug)

> orm.xsd and unit tests for xsd are missing
> ------------------------------------------
>
>          Key: JDO-202
>          URL: http://issues.apache.org/jira/browse/JDO-202
>      Project: JDO
>         Type: Test
>   Components: api20
>     Versions: JDO 2 beta
>     Reporter: Michelle Caisse
>     Assignee: Michael Bouschen
>      Fix For: JDO 2 rc1
>  Attachments: schematest.patch
>
> The xsd is missing  from api20/src/dtd/javax/jdo and there is no test for it.  Also need a test for jdo.xsd.

-- 
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-202) orm.xsd and unit tests for xsd are missing

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

Craig Russell commented on JDO-202:
-----------------------------------

This issue has two parts. The first part is a program that validates xml files according to schema or DTD that is passed in. The program should look for files that have the suffixes .jdo, .orm, and .jdoquery and validate them against both the DTD and schema.

For example, javax.jdo.schema.SchemaTest is the JUnit test that looks for files with the pattern "positiveXXX.jdo, positiveXXX.orm, positiveXXX.jdoquery, negativeXXX.jdo, negativeXXX.orm, negativeXXX.jdoquery" and simply loads them into a standard DOM using a validating parser. All test files named positiveXXX should succeed; tests named negativeXXX should fail to load.

The second part is a set of test data that is organized into positive and negative test cases. The union of positive tests should test every feature (each element and attribute) of each of the .orm, .jdo, and .jdoquery schema and DTD. Negative tests will verify for example that no more than one element is permitted if annotated as ? in DTD or maxOccurs=1 in schema.


> orm.xsd and unit tests for xsd are missing
> ------------------------------------------
>
>          Key: JDO-202
>          URL: http://issues.apache.org/jira/browse/JDO-202
>      Project: JDO
>         Type: Bug
>   Components: api20
>     Reporter: Michelle Caisse
>     Assignee: Michael Bouschen

>
> The xsd is missing  from api20/src/dtd/javax/jdo and there is no test for it.  Also need a test for jdo.xsd.

-- 
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] Updated: (JDO-202) orm.xsd and unit tests for xsd are missing

Posted by Michael Bouschen <mb...@spree.de>.
Hi Craig,

> Hi Michael,
>
> I applied the patch (I think correctly) and got these errors.
>
> Let me know if you disagree with my comments.

did you update your workspace? Yesterday I checked in a new version of 
jdo.xsd (revision 378770) fixing the errors you mention below. Today I  
could run the XMLTest w/o errors on a fresh checked out api20 project 
with the patch applied.

Regards Michael

>
> Craig
>
>
>> Testsuite: javax.jdo.schema.XMLTest
>> Tests run: 3, Failures: 1, Errors: 1, Time elapsed: 3.554 sec
>>
>> Testcase: testXSDBased(javax.jdo.schema.XMLTest):    FAILED
>> ------------------------
>> Handler.error: Positive99-xsd.jdo [line=93, col=32]: cvc-complex- 
>> type.3.2.2: Attribute 'persistence-modifier' is not allowed to  
>> appear in element 'property'.
>>         fetch-group="fetchgroup"
>>         recursion-depth="fetchdepth"
>>         field-name="fieldname">
>>                                ^
>
>
> The line and col match the input file but don't identify the location  
> of the error.
>
> The persistence-modifier attribute is missing from the xsd file. It's  
> in the latest spec.
>
>>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>> ------------------------
>> Handler.error: Positive99-xsd.jdo [line=100, col=37]: cvc-complex- 
>> type.3.2.2: Attribute 'element-type' is not allowed to appear in  
>> element 'array'.
>>           embedded-element="true"
>>           dependent-element="true"
>>           serialized-element="true">
>>                                     ^
>
>
> The element-type is missing from the xsd.
>
>>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>> ------------------------
>> Handler.error: Positive99-xsd.jdo [line=196, col=36]: cvc-complex- 
>> type.2.4.a: Invalid content starting with element 'property'. One  of 
>> '{"":field, "":extension}' is expected.
>>           <field name="name13"/>
>>           <field name="name14"/>
>>           <property name="name15"/>
>>                                    ^
>
>
> Element property is missing from element field in the xsd.
>
>>           <property name="name16"/>
>>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>> ------------------------
>> Handler.error: Positive99-xsd.jdo [line=258, col=32]: cvc-complex- 
>> type.3.2.2: Attribute 'mapped-by' is not allowed to appear in  
>> element 'order'.
>>           column="COLUMN"
>>           indexed="true"
>>           mapped-by="anything">
>>                                ^
>
>
> Attribute mapped-by is missing from the element order in the xsd.
>
>>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>> ------------------------
>> Handler.error: Positive99-xsd.jdo [line=286, col=24]: cvc-complex- 
>> type.3.2.2: Attribute 'persistence-modifier' is not allowed to  
>> appear in element 'property'.
>>         delete-action="cascade"
>>         indexed="false"
>>         unique="false">
>>                        ^
>>         <collection
>>           element-type="CollectionElementType"
>> ------------------------
>> Handler.error: Positive99-xsd.jdo [line=301, col=26]: cvc-complex- 
>> type.3.2.2: Attribute 'persistence-modifier' is not allowed to  
>> appear in element 'property'.
>>         null-value="none"
>>         delete-action="null"
>>         indexed="unique">
>>                          ^
>>         <map
>>           key-type="mapkeytype"
>> ------------------------
>> Handler.error: Positive99-xsd.jdo [line=336, col=64]: cvc-complex- 
>> type.2.4.a: Invalid content starting with element 'extension'. One  
>> of '{"":fetch-group, "":field}' is expected.
>>         name="FetchGroup"
>>         post-load="true">
>>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>>                                                                ^
>>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>>         <property name="name17"/>
>> ------------------------
>> Handler.error: Positive99-xsd.jdo [line=394, col=16]: cvc-complex- 
>> type.2.4.a: Invalid content starting with element 'column'. One of  
>> '{"":unique, "":field, "":query, "":fetch-group, "":extension}' is  
>> expected.
>>       <unique/>
>>       <unique/>
>>       <column/>
>>                ^
>
>
> Element column is missing from element class in the xsd.
>
>>       <column/>
>>       <field
>>
>> junit.framework.AssertionFailedError: ------------------------
>> Handler.error: Positive99-xsd.jdo [line=93, col=32]: cvc-complex- 
>> type.3.2.2: Attribute 'persistence-modifier' is not allowed to  
>> appear in element 'property'.
>>         fetch-group="fetchgroup"
>>         recursion-depth="fetchdepth"
>>         field-name="fieldname">
>>                                ^
>>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>> ------------------------
>> Handler.error: Positive99-xsd.jdo [line=100, col=37]: cvc-complex- 
>> type.3.2.2: Attribute 'element-type' is not allowed to appear in  
>> element 'array'.
>>           embedded-element="true"
>>           dependent-element="true"
>>           serialized-element="true">
>>                                     ^
>>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>> ------------------------
>> Handler.error: Positive99-xsd.jdo [line=196, col=36]: cvc-complex- 
>> type.2.4.a: Invalid content starting with element 'property'. One  of 
>> '{"":field, "":extension}' is expected.
>>           <field name="name13"/>
>>           <field name="name14"/>
>>           <property name="name15"/>
>>                                    ^
>
> Element property is missing from element embedded in the xsd.
>
>>           <property name="name16"/>
>>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>> ------------------------
>> Handler.error: Positive99-xsd.jdo [line=258, col=32]: cvc-complex- 
>> type.3.2.2: Attribute 'mapped-by' is not allowed to appear in  
>> element 'order'.
>>           column="COLUMN"
>>           indexed="true"
>>           mapped-by="anything">
>>                                ^
>>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>> ------------------------
>> Handler.error: Positive99-xsd.jdo [line=286, col=24]: cvc-complex- 
>> type.3.2.2: Attribute 'persistence-modifier' is not allowed to  
>> appear in element 'property'.
>>         delete-action="cascade"
>>         indexed="false"
>>         unique="false">
>>                        ^
>>         <collection
>>           element-type="CollectionElementType"
>> ------------------------
>> Handler.error: Positive99-xsd.jdo [line=301, col=26]: cvc-complex- 
>> type.3.2.2: Attribute 'persistence-modifier' is not allowed to  
>> appear in element 'property'.
>>         null-value="none"
>>         delete-action="null"
>>         indexed="unique">
>>                          ^
>>         <map
>>           key-type="mapkeytype"
>> ------------------------
>> Handler.error: Positive99-xsd.jdo [line=336, col=64]: cvc-complex- 
>> type.2.4.a: Invalid content starting with element 'extension'. One  
>> of '{"":fetch-group, "":field}' is expected.
>>         name="FetchGroup"
>>         post-load="true">
>>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>>                                                                ^
>
> Element extension is missing from element fetch-group in the xsd.
>
>>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>>         <property name="name17"/>
>> ------------------------
>> Handler.error: Positive99-xsd.jdo [line=394, col=16]: cvc-complex- 
>> type.2.4.a: Invalid content starting with element 'column'. One of  
>> '{"":unique, "":field, "":query, "":fetch-group, "":extension}' is  
>> expected.
>>       <unique/>
>>       <unique/>
>>       <column/>
>>                ^
>>       <column/>
>>       <field
>
>
> On Feb 18, 2006, at 1:02 PM, Michael Bouschen (JIRA) wrote:
>
>>      [ http://issues.apache.org/jira/browse/JDO-202?page=all ]
>>
>> Michael Bouschen updated JDO-202:
>> ---------------------------------
>>
>>     Attachment: schemaValidation-060218.patch
>>
>> There is a new patch schemaValidation-060218.patch includes the new  
>> test class XMLTest, 6 positive and 2 negative test .jdo files. We  
>> still need to add test .orm and .jdoquery files.
>>
>>> orm.xsd and unit tests for xsd are missing
>>> ------------------------------------------
>>>
>>>          Key: JDO-202
>>>          URL: http://issues.apache.org/jira/browse/JDO-202
>>>      Project: JDO
>>>         Type: Test
>>>   Components: api20
>>>     Versions: JDO 2 beta
>>>     Reporter: Michelle Caisse
>>>     Assignee: Michael Bouschen
>>>      Fix For: JDO 2 rc1
>>>  Attachments: XSD.patch, schemaValidation-060212.patch,  
>>> schemaValidation-060218.patch, schematest.patch
>>>
>>> The xsd is missing  from api20/src/dtd/javax/jdo and there is no  
>>> test for it.  Also need a test for jdo.xsd.
>>
>>
>> -- 
>> 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!
>


-- 
Michael Bouschen		Tech@Spree Engineering GmbH
mailto:mbo.tech@spree.de	http://www.tech.spree.de/
Tel.:++49/30/235 520-33		Buelowstr. 66			
Fax.:++49/30/2175 2012		D-10783 Berlin			


Re: [jira] Updated: (JDO-202) orm.xsd and unit tests for xsd are missing

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

I applied the patch (I think correctly) and got these errors.

Let me know if you disagree with my comments.

Craig


> Testsuite: javax.jdo.schema.XMLTest
> Tests run: 3, Failures: 1, Errors: 1, Time elapsed: 3.554 sec
>
> Testcase: testXSDBased(javax.jdo.schema.XMLTest):	FAILED
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=93, col=32]: cvc-complex- 
> type.3.2.2: Attribute 'persistence-modifier' is not allowed to  
> appear in element 'property'.
>         fetch-group="fetchgroup"
>         recursion-depth="fetchdepth"
>         field-name="fieldname">
>                                ^

The line and col match the input file but don't identify the location  
of the error.

The persistence-modifier attribute is missing from the xsd file. It's  
in the latest spec.

>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=100, col=37]: cvc-complex- 
> type.3.2.2: Attribute 'element-type' is not allowed to appear in  
> element 'array'.
>           embedded-element="true"
>           dependent-element="true"
>           serialized-element="true">
>                                     ^

The element-type is missing from the xsd.

>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=196, col=36]: cvc-complex- 
> type.2.4.a: Invalid content starting with element 'property'. One  
> of '{"":field, "":extension}' is expected.
>           <field name="name13"/>
>           <field name="name14"/>
>           <property name="name15"/>
>                                    ^

Element property is missing from element field in the xsd.

>           <property name="name16"/>
>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=258, col=32]: cvc-complex- 
> type.3.2.2: Attribute 'mapped-by' is not allowed to appear in  
> element 'order'.
>           column="COLUMN"
>           indexed="true"
>           mapped-by="anything">
>                                ^

Attribute mapped-by is missing from the element order in the xsd.

>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=286, col=24]: cvc-complex- 
> type.3.2.2: Attribute 'persistence-modifier' is not allowed to  
> appear in element 'property'.
>         delete-action="cascade"
>         indexed="false"
>         unique="false">
>                        ^
>         <collection
>           element-type="CollectionElementType"
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=301, col=26]: cvc-complex- 
> type.3.2.2: Attribute 'persistence-modifier' is not allowed to  
> appear in element 'property'.
>         null-value="none"
>         delete-action="null"
>         indexed="unique">
>                          ^
>         <map
>           key-type="mapkeytype"
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=336, col=64]: cvc-complex- 
> type.2.4.a: Invalid content starting with element 'extension'. One  
> of '{"":fetch-group, "":field}' is expected.
>         name="FetchGroup"
>         post-load="true">
>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>                                                                ^
>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>         <property name="name17"/>
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=394, col=16]: cvc-complex- 
> type.2.4.a: Invalid content starting with element 'column'. One of  
> '{"":unique, "":field, "":query, "":fetch-group, "":extension}' is  
> expected.
>       <unique/>
>       <unique/>
>       <column/>
>                ^

Element column is missing from element class in the xsd.

>       <column/>
>       <field
>
> junit.framework.AssertionFailedError: ------------------------
> Handler.error: Positive99-xsd.jdo [line=93, col=32]: cvc-complex- 
> type.3.2.2: Attribute 'persistence-modifier' is not allowed to  
> appear in element 'property'.
>         fetch-group="fetchgroup"
>         recursion-depth="fetchdepth"
>         field-name="fieldname">
>                                ^
>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=100, col=37]: cvc-complex- 
> type.3.2.2: Attribute 'element-type' is not allowed to appear in  
> element 'array'.
>           embedded-element="true"
>           dependent-element="true"
>           serialized-element="true">
>                                     ^
>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=196, col=36]: cvc-complex- 
> type.2.4.a: Invalid content starting with element 'property'. One  
> of '{"":field, "":extension}' is expected.
>           <field name="name13"/>
>           <field name="name14"/>
>           <property name="name15"/>
>                                    ^
Element property is missing from element embedded in the xsd.

>           <property name="name16"/>
>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=258, col=32]: cvc-complex- 
> type.3.2.2: Attribute 'mapped-by' is not allowed to appear in  
> element 'order'.
>           column="COLUMN"
>           indexed="true"
>           mapped-by="anything">
>                                ^
>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=286, col=24]: cvc-complex- 
> type.3.2.2: Attribute 'persistence-modifier' is not allowed to  
> appear in element 'property'.
>         delete-action="cascade"
>         indexed="false"
>         unique="false">
>                        ^
>         <collection
>           element-type="CollectionElementType"
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=301, col=26]: cvc-complex- 
> type.3.2.2: Attribute 'persistence-modifier' is not allowed to  
> appear in element 'property'.
>         null-value="none"
>         delete-action="null"
>         indexed="unique">
>                          ^
>         <map
>           key-type="mapkeytype"
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=336, col=64]: cvc-complex- 
> type.2.4.a: Invalid content starting with element 'extension'. One  
> of '{"":fetch-group, "":field}' is expected.
>         name="FetchGroup"
>         post-load="true">
>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>                                                                ^
Element extension is missing from element fetch-group in the xsd.

>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>         <property name="name17"/>
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=394, col=16]: cvc-complex- 
> type.2.4.a: Invalid content starting with element 'column'. One of  
> '{"":unique, "":field, "":query, "":fetch-group, "":extension}' is  
> expected.
>       <unique/>
>       <unique/>
>       <column/>
>                ^
>       <column/>
>       <field

On Feb 18, 2006, at 1:02 PM, Michael Bouschen (JIRA) wrote:

>      [ http://issues.apache.org/jira/browse/JDO-202?page=all ]
>
> Michael Bouschen updated JDO-202:
> ---------------------------------
>
>     Attachment: schemaValidation-060218.patch
>
> There is a new patch schemaValidation-060218.patch includes the new  
> test class XMLTest, 6 positive and 2 negative test .jdo files. We  
> still need to add test .orm and .jdoquery files.
>
>> orm.xsd and unit tests for xsd are missing
>> ------------------------------------------
>>
>>          Key: JDO-202
>>          URL: http://issues.apache.org/jira/browse/JDO-202
>>      Project: JDO
>>         Type: Test
>>   Components: api20
>>     Versions: JDO 2 beta
>>     Reporter: Michelle Caisse
>>     Assignee: Michael Bouschen
>>      Fix For: JDO 2 rc1
>>  Attachments: XSD.patch, schemaValidation-060212.patch,  
>> schemaValidation-060218.patch, schematest.patch
>>
>> The xsd is missing  from api20/src/dtd/javax/jdo and there is no  
>> test for it.  Also need a test for jdo.xsd.
>
> -- 
> 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!


Re: [jira] Updated: (JDO-202) orm.xsd and unit tests for xsd are missing

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

I applied the patch (I think correctly) and got these errors.

Let me know if you disagree with my comments.

Craig


> Testsuite: javax.jdo.schema.XMLTest
> Tests run: 3, Failures: 1, Errors: 1, Time elapsed: 3.554 sec
>
> Testcase: testXSDBased(javax.jdo.schema.XMLTest):	FAILED
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=93, col=32]: cvc-complex- 
> type.3.2.2: Attribute 'persistence-modifier' is not allowed to  
> appear in element 'property'.
>         fetch-group="fetchgroup"
>         recursion-depth="fetchdepth"
>         field-name="fieldname">
>                                ^

The line and col match the input file but don't identify the location  
of the error.

The persistence-modifier attribute is missing from the xsd file. It's  
in the latest spec.

>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=100, col=37]: cvc-complex- 
> type.3.2.2: Attribute 'element-type' is not allowed to appear in  
> element 'array'.
>           embedded-element="true"
>           dependent-element="true"
>           serialized-element="true">
>                                     ^

The element-type is missing from the xsd.

>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=196, col=36]: cvc-complex- 
> type.2.4.a: Invalid content starting with element 'property'. One  
> of '{"":field, "":extension}' is expected.
>           <field name="name13"/>
>           <field name="name14"/>
>           <property name="name15"/>
>                                    ^

Element property is missing from element field in the xsd.

>           <property name="name16"/>
>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=258, col=32]: cvc-complex- 
> type.3.2.2: Attribute 'mapped-by' is not allowed to appear in  
> element 'order'.
>           column="COLUMN"
>           indexed="true"
>           mapped-by="anything">
>                                ^

Attribute mapped-by is missing from the element order in the xsd.

>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=286, col=24]: cvc-complex- 
> type.3.2.2: Attribute 'persistence-modifier' is not allowed to  
> appear in element 'property'.
>         delete-action="cascade"
>         indexed="false"
>         unique="false">
>                        ^
>         <collection
>           element-type="CollectionElementType"
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=301, col=26]: cvc-complex- 
> type.3.2.2: Attribute 'persistence-modifier' is not allowed to  
> appear in element 'property'.
>         null-value="none"
>         delete-action="null"
>         indexed="unique">
>                          ^
>         <map
>           key-type="mapkeytype"
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=336, col=64]: cvc-complex- 
> type.2.4.a: Invalid content starting with element 'extension'. One  
> of '{"":fetch-group, "":field}' is expected.
>         name="FetchGroup"
>         post-load="true">
>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>                                                                ^
>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>         <property name="name17"/>
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=394, col=16]: cvc-complex- 
> type.2.4.a: Invalid content starting with element 'column'. One of  
> '{"":unique, "":field, "":query, "":fetch-group, "":extension}' is  
> expected.
>       <unique/>
>       <unique/>
>       <column/>
>                ^

Element column is missing from element class in the xsd.

>       <column/>
>       <field
>
> junit.framework.AssertionFailedError: ------------------------
> Handler.error: Positive99-xsd.jdo [line=93, col=32]: cvc-complex- 
> type.3.2.2: Attribute 'persistence-modifier' is not allowed to  
> appear in element 'property'.
>         fetch-group="fetchgroup"
>         recursion-depth="fetchdepth"
>         field-name="fieldname">
>                                ^
>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=100, col=37]: cvc-complex- 
> type.3.2.2: Attribute 'element-type' is not allowed to appear in  
> element 'array'.
>           embedded-element="true"
>           dependent-element="true"
>           serialized-element="true">
>                                     ^
>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=196, col=36]: cvc-complex- 
> type.2.4.a: Invalid content starting with element 'property'. One  
> of '{"":field, "":extension}' is expected.
>           <field name="name13"/>
>           <field name="name14"/>
>           <property name="name15"/>
>                                    ^
Element property is missing from element embedded in the xsd.

>           <property name="name16"/>
>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=258, col=32]: cvc-complex- 
> type.3.2.2: Attribute 'mapped-by' is not allowed to appear in  
> element 'order'.
>           column="COLUMN"
>           indexed="true"
>           mapped-by="anything">
>                                ^
>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>           <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=286, col=24]: cvc-complex- 
> type.3.2.2: Attribute 'persistence-modifier' is not allowed to  
> appear in element 'property'.
>         delete-action="cascade"
>         indexed="false"
>         unique="false">
>                        ^
>         <collection
>           element-type="CollectionElementType"
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=301, col=26]: cvc-complex- 
> type.3.2.2: Attribute 'persistence-modifier' is not allowed to  
> appear in element 'property'.
>         null-value="none"
>         delete-action="null"
>         indexed="unique">
>                          ^
>         <map
>           key-type="mapkeytype"
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=336, col=64]: cvc-complex- 
> type.2.4.a: Invalid content starting with element 'extension'. One  
> of '{"":fetch-group, "":field}' is expected.
>         name="FetchGroup"
>         post-load="true">
>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>                                                                ^
Element extension is missing from element fetch-group in the xsd.

>         <extension vendor-name="SUNW" key="KEY" value="VALUE"/>
>         <property name="name17"/>
> ------------------------
> Handler.error: Positive99-xsd.jdo [line=394, col=16]: cvc-complex- 
> type.2.4.a: Invalid content starting with element 'column'. One of  
> '{"":unique, "":field, "":query, "":fetch-group, "":extension}' is  
> expected.
>       <unique/>
>       <unique/>
>       <column/>
>                ^
>       <column/>
>       <field

On Feb 18, 2006, at 1:02 PM, Michael Bouschen (JIRA) wrote:

>      [ http://issues.apache.org/jira/browse/JDO-202?page=all ]
>
> Michael Bouschen updated JDO-202:
> ---------------------------------
>
>     Attachment: schemaValidation-060218.patch
>
> There is a new patch schemaValidation-060218.patch includes the new  
> test class XMLTest, 6 positive and 2 negative test .jdo files. We  
> still need to add test .orm and .jdoquery files.
>
>> orm.xsd and unit tests for xsd are missing
>> ------------------------------------------
>>
>>          Key: JDO-202
>>          URL: http://issues.apache.org/jira/browse/JDO-202
>>      Project: JDO
>>         Type: Test
>>   Components: api20
>>     Versions: JDO 2 beta
>>     Reporter: Michelle Caisse
>>     Assignee: Michael Bouschen
>>      Fix For: JDO 2 rc1
>>  Attachments: XSD.patch, schemaValidation-060212.patch,  
>> schemaValidation-060218.patch, schematest.patch
>>
>> The xsd is missing  from api20/src/dtd/javax/jdo and there is no  
>> test for it.  Also need a test for jdo.xsd.
>
> -- 
> 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] Updated: (JDO-202) orm.xsd and unit tests for xsd are missing

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

Michael Bouschen updated JDO-202:
---------------------------------

    Attachment: schemaValidation-060218.patch

There is a new patch schemaValidation-060218.patch includes the new test class XMLTest, 6 positive and 2 negative test .jdo files. We still need to add test .orm and .jdoquery files. 

> orm.xsd and unit tests for xsd are missing
> ------------------------------------------
>
>          Key: JDO-202
>          URL: http://issues.apache.org/jira/browse/JDO-202
>      Project: JDO
>         Type: Test
>   Components: api20
>     Versions: JDO 2 beta
>     Reporter: Michelle Caisse
>     Assignee: Michael Bouschen
>      Fix For: JDO 2 rc1
>  Attachments: XSD.patch, schemaValidation-060212.patch, schemaValidation-060218.patch, schematest.patch
>
> The xsd is missing  from api20/src/dtd/javax/jdo and there is no test for it.  Also need a test for jdo.xsd.

-- 
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-202) orm.xsd and unit tests for xsd are missing

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

Craig Russell commented on JDO-202:
-----------------------------------

This change adds orm.xsd to the jdo implementation, but it has not been tested.

Committed revision 357371.

> orm.xsd and unit tests for xsd are missing
> ------------------------------------------
>
>          Key: JDO-202
>          URL: http://issues.apache.org/jira/browse/JDO-202
>      Project: JDO
>         Type: Bug
>   Components: api20
>     Reporter: Michelle Caisse
>     Assignee: Michael Bouschen

>
> The xsd is missing  from api20/src/dtd/javax/jdo and there is no test for it.  Also need a test for jdo.xsd.

-- 
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-202) orm.xsd and unit tests for xsd are missing

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

    Fix Version: JDO 2 final
                     (was: JDO 2 rc1)
     Resolution: Fixed

> orm.xsd and unit tests for xsd are missing
> ------------------------------------------
>
>          Key: JDO-202
>          URL: http://issues.apache.org/jira/browse/JDO-202
>      Project: JDO
>         Type: Test
>   Components: api20
>     Versions: JDO 2 beta
>     Reporter: Michelle Caisse
>     Assignee: Michael Bouschen
>      Fix For: JDO 2 final
>  Attachments: XSD.patch, schemaValidation-060212.patch, schemaValidation-060218.patch, schemaValidation-060220.patch, schematest.patch
>
> The xsd is missing  from api20/src/dtd/javax/jdo and there is no test for it.  Also need a test for jdo.xsd.

-- 
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