You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Frank Budinsky (JIRA)" <tu...@ws.apache.org> on 2007/06/08 01:26:26 UTC

[jira] Resolved: (TUSCANY-1333) [Java SDO] ClassCastException when defining schema file without .xsd extension

     [ https://issues.apache.org/jira/browse/TUSCANY-1333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frank Budinsky resolved TUSCANY-1333.
-------------------------------------

    Resolution: Fixed

I checked in a simple fix in revision 545346. Please test and reopen if it's not working. Thanks.

> [Java SDO] ClassCastException when defining schema file without .xsd extension
> ------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1333
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1333
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>    Affects Versions: Java-SDO-beta1
>         Environment: IBM JDK 1.4.2
>            Reporter: Chris Mildebrandt
>
> With the following code:
> HelperContext context = SDOUtil.createHelperContext();
> context.getXSDHelper().define(new FileInputStream("./Person.xsd.tmp"), (new File("./Person.xsd.tmp")).toURI().toString());
> I get the following exception:
> java.lang.ClassCastException: org.apache.tuscany.sdo.util.resource.SDOXMLResourceImpl
> 	at org.apache.tuscany.sdo.helper.XSDHelperImpl.define(XSDHelperImpl.java:245)
> 	at org.apache.tuscany.sdo.helper.XSDHelperImpl.define(XSDHelperImpl.java:236)
> 	at Test.doubleContextTest(Test.java:193)
> 	at Test.main(Test.java:214)
> Exception in thread "main" java.lang.IllegalArgumentException: org.apache.tuscany.sdo.util.resource.SDOXMLResourceImpl
> 	at org.apache.tuscany.sdo.helper.XSDHelperImpl.define(XSDHelperImpl.java:278)
> 	at org.apache.tuscany.sdo.helper.XSDHelperImpl.define(XSDHelperImpl.java:236)
> 	at Test.doubleContextTest(Test.java:193)
> 	at Test.main(Test.java:214)
> If I remove the .tmp from the schema file name, the exception goes away. 

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