Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java feature secure processing limit crash #21

Closed
AAndersn opened this issue Feb 25, 2023 · 0 comments
Closed

Java feature secure processing limit crash #21

AAndersn opened this issue Feb 25, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@AAndersn
Copy link

Java 11 has introduced a new feature to limit number of characters: https://www.oracle.com/java/technologies/javase/11-0-15-relnotes.html

This causes CIM-Compare to crash with the error:

[Fatal Error] CIMModelComparison_profile1.xml_AND_profile2.xml:9321:260: Invalid byte 1 of 1-byte UTF-8 
ERROR:  'JAXP0801002: the compiler encountered an XPath expression containing '101' operators that exceeds the '100' limit set by 'FEATURE_SECURE_PROCESSING'.'  

FATAL ERROR:  'JAXP0801002: the compiler encountered an XPath expression containing '101' operators that exceeds the '100' limit set by 'FEATURE_SECURE_PROCESSING'.'javax.xml.transform.TransformerConfigurationException: JAXP0801002: the compiler encountered an XPath expression containing '101' operators that exceeds the '100' limit set by 'FEATURE_SECURE_PROCESSING'. at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(Unknown Source) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(Unknown Source) at org.cimug.compare.app.CIMModelComparisonGenerator.main(CIMModelComparisonGenerator.java:121)  

This error can be resolved by disabling the character limit in the command line call:

java -Djdk.xml.xpathExprGrpLimit=0 -Djdk.xml.xpathExprOpLimit=0 -Djdk.xml.xpathTotalOpLimit=0 -jar cim-compare-1.2.2.jar  CIM_profile1.eap CIM_profile_2.eap  
@tviegut tviegut self-assigned this Mar 6, 2023
@tviegut tviegut added the bug Something isn't working label Mar 6, 2023
@tviegut tviegut moved this to Ready in cim-compare 1.3.0 Jul 28, 2024
@tviegut tviegut moved this from Ready to In progress in cim-compare 1.3.0 Jul 28, 2024
@tviegut tviegut moved this from In progress to Ready in cim-compare 1.3.0 Jul 28, 2024
@tviegut tviegut moved this from Ready to In progress in cim-compare 1.3.0 Jul 28, 2024
@tviegut tviegut moved this from In progress to In review in cim-compare 1.3.0 Jul 28, 2024
@tviegut tviegut moved this from In review to Done in cim-compare 1.3.0 Jul 28, 2024
@tviegut tviegut closed this as completed by moving to Done in cim-compare 1.3.0 Jul 28, 2024
@tviegut tviegut moved this from Done to In review in cim-compare 1.3.0 Dec 11, 2024
@tviegut tviegut moved this from In review to Done in cim-compare 1.3.0 Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants