XML-22900: (Fatal Error) An internal error has occurred

I ran into this strange problem. I was working on a project, I wrote code for generation and XML using an XML parser. The fact is that when I run the code, when on my local system, it works fine. But when I deploy the code in the environment, I do not. I suspect something like a JAR. But I can’t post it.

XML-22900: (Fatal Error) An internal error condition occurred.

Caused by: java.lang.NullPointerException
at oracle.xml.xslt.XSLEventHandler.characters(XSLEventHandler.java:866)
at oracle.xml.xslt.XSLTContext.reportNode(XSLTContext.java:426)
at oracle.xml.xslt.XSLTContext.reportNode(XSLTContext.java:390)
at oracle.xml.xslt.XSLTContext.reportNode(XSLTContext.java:390)
at oracle.xml.xslt.XSLTContext.reportNode(XSLTContext.java:1340)
at oracle.xml.xslt.XSLCopyOf.processAction(XSLCopyOf.java:136)
at oracle.xml.xslt.XSLNode.processChildren(XSLNode.java:480)
at oracle.xml.xslt.XSLTemplate.processAction(XSLTemplate.java:205)
at oracle.xml.xslt.XSLStylesheet.execute(XSLStylesheet.java:581)
at oracle.xml.xslt.XSLStylesheet.execute(XSLStylesheet.java:548)
at oracle.xml.xslt.XSLProcessor.processXSL(XSLProcessor.java:339)
at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:454)
... 3 more

The input is the same, the code is the same, not sure what else I can provide, if you need more information, let me know.

+4
source share
1 answer

I had the same error. It seems that the error is related to the transformer used. Try using the Xalan factory.

TransformerFactory factory = new org.apache.xalan.processor.TransformerFactoryImpl();

+2
source

Source: https://habr.com/ru/post/1655563/


All Articles