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 "Anil Saldhana (JIRA)" <xe...@xml.apache.org> on 2008/09/15 19:37:44 UTC
[jira] Created: (XERCESJ-1329) XSSimpleTypeDecl: internal error
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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org
[jira] Closed: (XERCESJ-1329) XSSimpleTypeDecl: internal error
Posted by "Anil Saldhana (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESJ-1329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anil Saldhana closed XERCESJ-1329.
----------------------------------
Resolution: Cannot Reproduce
This is more of an issue with Java endorsement of xerces.
> 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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org
[jira] Commented: (XERCESJ-1329) XSSimpleTypeDecl: internal error
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESJ-1329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631082#action_12631082 ]
Michael Glavassevich commented on XERCESJ-1329:
-----------------------------------------------
The comment in the code states that the exception should be unreachable. In what context has this occurred? Which version of Xerces? Do you have a test case?
> 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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org
[jira] Commented: (XERCESJ-1329) XSSimpleTypeDecl: internal error
Posted by "Anil Saldhana (JIRA)" <xe...@xml.apache.org>.
[ 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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org
[jira] Commented: (XERCESJ-1329) XSSimpleTypeDecl: internal error
Posted by "Anil Saldhana (JIRA)" <xe...@xml.apache.org>.
[ 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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org
[jira] Commented: (XERCESJ-1329) XSSimpleTypeDecl: internal error
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ 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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org