[
https://issues.apache.org/jira/browse/XERCESJ-1329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631129#action_12631129
]
Anil Saldhana commented on XERCESJ-1329:
----------------------------------------
Mike, I understand what you are saying. I have since fixed the issue I had. I
will describe what really happened.
=================================================
I basically had a test case in my eclipse environment that did bootstrapping of
xml code. I was able to do the java endorsement of xerces in the eclipse
environment. But when I did run the workspace using maven, I was getting the
aforementioned exception with very little detail as to what the issue was.
The real reason was that the version of maven surefire plugin (2.4.2) has a
regression that the system properties passed to it via options are not
propagated to the forked vm. This has been fixed in surefire 2.4.3.
Once I updated the maven surefire plugin to 2.4.3, I was not getting the
exception and my test passes.
==================================================
The problem was in endorsement. It was defaulting to the xerces parser in the
VM.
You may close this bug as I understand now that there is very limited
possibility of deriving the cause when this exception arises.
> 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]