[ 
https://issues.apache.org/jira/browse/XERCESJ-1329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631114#action_12631114
 ] 

Michael Glavassevich commented on XERCESJ-1329:
-----------------------------------------------

applyFacets1() is only called for setting up the built-in schema types.  If it 
fails any application trying to use Xerces' schema support is going to be dead 
in the water, so would expect that we would have received this bug report 
multiple times already if this were a general problem. Only going to be able to 
act on this if it can be reproduced which is why I asked for a test case or at 
least some description of how your scenario is different than typical usage.

> XSSimpleTypeDecl: internal error
> --------------------------------
>
>                 Key: XERCESJ-1329
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1329
>             Project: Xerces2-J
>          Issue Type: Bug
>            Reporter: Anil Saldhana
>
> ==========================
> void applyFacets1(XSFacets facets, short presentFacet, short fixedFacet) {
>         try {
>             applyFacets(facets, presentFacet, fixedFacet, 
> SPECIAL_PATTERN_NONE, fDummyContext);
>         } catch (InvalidDatatypeFacetException e) {
>             // should never gets here, internel error
>             throw new RuntimeException("internal error");
>         }
>         // we've now applied facets; so lock this object:
>         fIsImmutable = true;
>     }
>     /**
>      * built-in derived types by restriction
>      */
>     void applyFacets1(XSFacets facets, short presentFacet, short fixedFacet, 
> short patternType) {
>         try {
>             applyFacets(facets, presentFacet, fixedFacet, patternType, 
> fDummyContext);
>         } catch (InvalidDatatypeFacetException e) {
>             // should never gets here, internel error
>             throw new RuntimeException("internal error");
>         }
>         // we've now applied facets; so lock this object:
>         fIsImmutable = true;
>     }
> ==============================================
> What do we do when we see exceptions such as following:
> Caused by: java.lang.RuntimeException: internal error                        
>         at org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl.applyFacets1(Unknown 
> Source)                                                                     
>         at 
> org.apache.xerces.impl.dv.xs.SchemaDVFactoryImpl.createBuiltInTypes(Unknown 
> Source)
>         at 
> org.apache.xerces.impl.dv.xs.SchemaDVFactoryImpl.<clinit>(UnknownSource)
>         ... 45 more
> Give us more info on what is wrong.  Let the RTE add more info rather than 
> just "internal error".  

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to