[
https://issues.apache.org/jira/browse/CALCITE-4799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17420432#comment-17420432
]
duan xiong commented on CALCITE-4799:
-------------------------------------
This issue caused by the default Error Listener doesn't throw any exception in
fatalError. The relative code in TransformerFactoryImpl:
{code:java}
private ErrorListener m_errorListener = new
org.apache.xml.utils.DefaultErrorHandler(false);
{code}
The parameter false means when it has an error just report the error to
System.err.
> SqlXmlFunctionsTest testXmlTransform unit test failed coused by NPE
> -------------------------------------------------------------------
>
> Key: CALCITE-4799
> URL: https://issues.apache.org/jira/browse/CALCITE-4799
> Project: Calcite
> Issue Type: Bug
> Reporter: duan xiong
> Assignee: duan xiong
> Priority: Major
> Fix For: 1.28.0
>
> Attachments: The Code Image.png
>
>
> Error Info:
> {code:java}
> java.lang.AssertionError: xmlTransform(, <)
> Expected: is org.apache.calcite.runtime.CalciteException: Illegal xslt
> specified : '<'
> but: was <java.lang.NullPointerException>
> Expected :is org.apache.calcite.runtime.CalciteException: Illegal xslt
> specified : '<'
> Actual :<java.lang.NullPointerException>
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)