You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Raymond Feng (JIRA)" <tu...@ws.apache.org> on 2007/03/14 01:44:09 UTC

[jira] Created: (TUSCANY-1169) Property.getType() throws ClassCastException if the property is from AnyDataObjectType.getInstanceProperties()

Property.getType() throws ClassCastException if the property is from AnyDataObjectType.getInstanceProperties()
--------------------------------------------------------------------------------------------------------------

                 Key: TUSCANY-1169
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1169
             Project: Tuscany
          Issue Type: Bug
          Components: Java SDO Implementation
    Affects Versions: Java-SDO-M3
            Reporter: Raymond Feng


I try to load the following XML document without defining XSD against the XSDHelper.

<?xml version="1.0" encoding="UTF-8"?>
<p:op xmlns:p="http://www.example.com/wrapper" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.example.com/wrapper wrapper.xsd ">
    <message>message</message>
    <symbol>symbol</symbol>
    <message>message1</message>
    <symbol>symbol1</symbol>
    <symbol>symbol2</symbol>
</p:op>

Then when I call:

List properties = rootObject.getInstanceProperties();

For a property in the list, calling p.getType() gives me a ClassCastException.

-- 
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-1169) Property.getType() throws ClassCastException if the property is from AnyDataObjectType.getInstanceProperties()

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

Frank Budinsky commented on TUSCANY-1169:
-----------------------------------------

This sounds like a bug that slipped in with the recently committed TUSCANY-521. I'll take a look later today or tomorrow.

> Property.getType() throws ClassCastException if the property is from AnyDataObjectType.getInstanceProperties()
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1169
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1169
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-SDO-M3
>            Reporter: Raymond Feng
>
> I try to load the following XML document without defining XSD against the XSDHelper.
> <?xml version="1.0" encoding="UTF-8"?>
> <p:op xmlns:p="http://www.example.com/wrapper" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation="http://www.example.com/wrapper wrapper.xsd ">
>     <message>message</message>
>     <symbol>symbol</symbol>
>     <message>message1</message>
>     <symbol>symbol1</symbol>
>     <symbol>symbol2</symbol>
> </p:op>
> Then when I call:
> List properties = rootObject.getInstanceProperties();
> For a property in the list, calling p.getType() gives me a ClassCastException.

-- 
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-1169) Property.getType() throws ClassCastException if the property is from AnyDataObjectType.getInstanceProperties()

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

Frank Budinsky resolved TUSCANY-1169.
-------------------------------------

    Resolution: Fixed

Fixed in revision 518790.

> Property.getType() throws ClassCastException if the property is from AnyDataObjectType.getInstanceProperties()
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1169
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1169
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-SDO-M3
>            Reporter: Raymond Feng
>
> I try to load the following XML document without defining XSD against the XSDHelper.
> <?xml version="1.0" encoding="UTF-8"?>
> <p:op xmlns:p="http://www.example.com/wrapper" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation="http://www.example.com/wrapper wrapper.xsd ">
>     <message>message</message>
>     <symbol>symbol</symbol>
>     <message>message1</message>
>     <symbol>symbol1</symbol>
>     <symbol>symbol2</symbol>
> </p:op>
> Then when I call:
> List properties = rootObject.getInstanceProperties();
> For a property in the list, calling p.getType() gives me a ClassCastException.

-- 
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-1169) Property.getType() throws ClassCastException if the property is from AnyDataObjectType.getInstanceProperties()

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

Kelvin Goodson updated TUSCANY-1169:
------------------------------------

    Fix Version/s: Java-SDO-M3

> Property.getType() throws ClassCastException if the property is from AnyDataObjectType.getInstanceProperties()
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1169
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1169
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-SDO-M3
>            Reporter: Raymond Feng
>             Fix For: Java-SDO-M3
>
>
> I try to load the following XML document without defining XSD against the XSDHelper.
> <?xml version="1.0" encoding="UTF-8"?>
> <p:op xmlns:p="http://www.example.com/wrapper" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation="http://www.example.com/wrapper wrapper.xsd ">
>     <message>message</message>
>     <symbol>symbol</symbol>
>     <message>message1</message>
>     <symbol>symbol1</symbol>
>     <symbol>symbol2</symbol>
> </p:op>
> Then when I call:
> List properties = rootObject.getInstanceProperties();
> For a property in the list, calling p.getType() gives me a ClassCastException.

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