You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org> on 2010/02/07 07:30:29 UTC

[jira] Resolved: (XERCESJ-1072) ClassCastException in XMLSchemaLoader.reset

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

Michael Glavassevich resolved XERCESJ-1072.
-------------------------------------------

    Resolution: Incomplete

Jing is calling into a Xerces internal class which isn't supported and subject to change at any time. There have been no such reported problems when the public APIs are used to invoke schema validation.

Likely there's some kind of problem with the XMLComponentManager that Jing is passing into reset. I can't tell that for sure because the stack trace doesn't show specifically what cast it failed on. Would suggest opening a bug report against Jing since they would know what they would be passing into the XMLSchemaValidator.

> ClassCastException in XMLSchemaLoader.reset
> -------------------------------------------
>
>                 Key: XERCESJ-1072
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1072
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema API
>    Affects Versions: 2.6.2
>         Environment: JDK 1.4.2 on OS X. Using Xerces through Jing.
>            Reporter: Henri Sivonen
>
> When using Xerces for XSD validation through Jing, a java.lang.ClassCastException is thrown in org.apache.xerces.impl.xs.XMLSchemaLoader.reset.
> java.lang.ClassCastException
>         at org.apache.xerces.impl.xs.XMLSchemaLoader.reset(Unknown Source)
>         at org.apache.xerces.impl.xs.XMLSchemaValidator.reset(Unknown Source)
>         at com.thaiopensource.validate.xerces.ValidatorImpl.reset(Unknown Source)
>         at com.thaiopensource.validate.xerces.ValidatorImpl.<init>(Unknown Source)
>         at com.thaiopensource.validate.xerces.SchemaImpl.createValidator(Unknown Source)
>         at com.thaiopensource.validate.ValidationDriver.validate(Unknown Source)

-- 
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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org