You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Brian Murray (JIRA)" <tu...@ws.apache.org> on 2007/03/21 19:17:32 UTC

[jira] Created: (TUSCANY-1190) IAE in static case when using DataObject.setList() to assign multiple Objects to a many-valued Property.

IAE in static case when using DataObject.setList() to assign multiple Objects to a many-valued Property.
--------------------------------------------------------------------------------------------------------

                 Key: TUSCANY-1190
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1190
             Project: Tuscany
          Issue Type: Bug
          Components: Java SDO Implementation
            Reporter: Brian Murray
         Attachments: StaticMultiplicity.zip

 Assigning multiple values to a multi-valued List (at least in the specific case demonstrated in the test case) results in an IllegalArgumentException with the message "The multiplicity constraint is violated" in the static case.  As can bee seen in the test case, 
 the Dynamically defined types (using TypeHelper or XSDHelper) do not show this behavior.  The same XSD was used in creating the static case as was used with the XSDHelper for one of the dynamic cases.

Note that this same XSD and statically generated files will be used with the ContainmentCycleTestCase (Tuscany-826).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1190) IAE in static case when using DataObject.setList() to assign multiple Objects to a many-valued Property.

Posted by "Brian Murray (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482908 ] 

Brian Murray commented on TUSCANY-1190:
---------------------------------------

The problem is indeed only true with mixed="true".  (Thank you for the suggestion, Frank.)

However, I note in Tuscany-1186 that there had been an error in the XSD.  That defect was closed when it was found that the condition does not arise with a corrected XSD.

In the case of Tuscany-1190, however, I believe the XSD to be valid.  The problem is merely specific to mixed="true".

> IAE in static case when using DataObject.setList() to assign multiple Objects to a many-valued Property.
> --------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1190
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1190
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>            Reporter: Brian Murray
>         Attachments: StaticMultiplicity.zip
>
>
>  Assigning multiple values to a multi-valued List (at least in the specific case demonstrated in the test case) results in an IllegalArgumentException with the message "The multiplicity constraint is violated" in the static case.  As can bee seen in the test case, 
>  the Dynamically defined types (using TypeHelper or XSDHelper) do not show this behavior.  The same XSD was used in creating the static case as was used with the XSDHelper for one of the dynamic cases.
> Note that this same XSD and statically generated files will be used with the ContainmentCycleTestCase (Tuscany-826).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1190) IAE in static case when using DataObject.setList() to assign multiple Objects to a many-valued Property.

Posted by "Brian Murray (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Murray updated TUSCANY-1190:
----------------------------------

    Attachment: StaticMultiplicity.zip

Attaching test case.

> IAE in static case when using DataObject.setList() to assign multiple Objects to a many-valued Property.
> --------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1190
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1190
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>            Reporter: Brian Murray
>         Attachments: StaticMultiplicity.zip
>
>
>  Assigning multiple values to a multi-valued List (at least in the specific case demonstrated in the test case) results in an IllegalArgumentException with the message "The multiplicity constraint is violated" in the static case.  As can bee seen in the test case, 
>  the Dynamically defined types (using TypeHelper or XSDHelper) do not show this behavior.  The same XSD was used in creating the static case as was used with the XSDHelper for one of the dynamic cases.
> Note that this same XSD and statically generated files will be used with the ContainmentCycleTestCase (Tuscany-826).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1190) IAE in static case when using DataObject.setList() to assign multiple Objects to a many-valued Property.

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Goodson updated TUSCANY-1190:
------------------------------------

    Fix Version/s: Java-SDO-M3

> IAE in static case when using DataObject.setList() to assign multiple Objects to a many-valued Property.
> --------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1190
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1190
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>            Reporter: Brian Murray
>             Fix For: Java-SDO-M3
>
>         Attachments: StaticMultiplicity.zip
>
>
>  Assigning multiple values to a multi-valued List (at least in the specific case demonstrated in the test case) results in an IllegalArgumentException with the message "The multiplicity constraint is violated" in the static case.  As can bee seen in the test case, 
>  the Dynamically defined types (using TypeHelper or XSDHelper) do not show this behavior.  The same XSD was used in creating the static case as was used with the XSDHelper for one of the dynamic cases.
> Note that this same XSD and statically generated files will be used with the ContainmentCycleTestCase (Tuscany-826).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1190) IAE in static case when using DataObject.setList() to assign multiple Objects to a many-valued Property.

Posted by "Frank Budinsky (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482875 ] 

Frank Budinsky commented on TUSCANY-1190:
-----------------------------------------

My first observation is that the type is mixed. In light of the uncertainty around TUSCANY-1186, I wonder if this is just another side effect of static mixed not working properly.

Could you please confirm that this is also a problem if the type is not mixed? Thanks.

> IAE in static case when using DataObject.setList() to assign multiple Objects to a many-valued Property.
> --------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1190
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1190
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>            Reporter: Brian Murray
>         Attachments: StaticMultiplicity.zip
>
>
>  Assigning multiple values to a multi-valued List (at least in the specific case demonstrated in the test case) results in an IllegalArgumentException with the message "The multiplicity constraint is violated" in the static case.  As can bee seen in the test case, 
>  the Dynamically defined types (using TypeHelper or XSDHelper) do not show this behavior.  The same XSD was used in creating the static case as was used with the XSDHelper for one of the dynamic cases.
> Note that this same XSD and statically generated files will be used with the ContainmentCycleTestCase (Tuscany-826).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Resolved: (TUSCANY-1190) IAE in static case when using DataObject.setList() to assign multiple Objects to a many-valued Property.

Posted by "Frank Budinsky (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frank Budinsky resolved TUSCANY-1190.
-------------------------------------

    Resolution: Fixed

Fixed in revision 521017.

I found 7 places in the generator template that was using the wrong property index (i.e., not the INTERNAL one). This should also fix some of the other "mixed" related issues that have been noticed.

> IAE in static case when using DataObject.setList() to assign multiple Objects to a many-valued Property.
> --------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1190
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1190
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>            Reporter: Brian Murray
>         Attachments: StaticMultiplicity.zip
>
>
>  Assigning multiple values to a multi-valued List (at least in the specific case demonstrated in the test case) results in an IllegalArgumentException with the message "The multiplicity constraint is violated" in the static case.  As can bee seen in the test case, 
>  the Dynamically defined types (using TypeHelper or XSDHelper) do not show this behavior.  The same XSD was used in creating the static case as was used with the XSDHelper for one of the dynamic cases.
> Note that this same XSD and statically generated files will be used with the ContainmentCycleTestCase (Tuscany-826).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org