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

Anil Saldhana commented on XERCESJ-1329:
----------------------------------------

I do not have a test case.  The endorsed dir has:
resolver-2.9.1.jar   
xalan-2.7.1.jar      
xml-apis-2.9.1.jar
serializer-2.9.1.jar  
xercesImpl-2.9.1.jar



> 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