nifi-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raymond (Jira)" <j...@apache.org>
Subject [jira] [Updated] (NIFI-6498) XMLTransform processor: XSLT doesn't give detail error message with line number
Date Thu, 03 Oct 2019 07:42:00 GMT

     [ https://issues.apache.org/jira/browse/NIFI-6498?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Raymond updated NIFI-6498:
--------------------------
    Flags: Patch

> XMLTransform processor: XSLT doesn't give detail error message with line number
> -------------------------------------------------------------------------------
>
>                 Key: NIFI-6498
>                 URL: https://issues.apache.org/jira/browse/NIFI-6498
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Core Framework
>    Affects Versions: 1.10.0, 1.9.2
>            Reporter: Raymond
>            Priority: Major
>         Attachments: 0001-Add-support-for-Saxon-error-messages-and-functions.patch, 0001-Add-support-for-Saxon-error-messages-and-functions.patch
>
>
> When something is wrong with the XSLT in the XMLTransform processor you get an error,
but this is only a general error without any details or the line number where the parsing
error occurs. For example when using Saxon from example I get the following error:
> Error on line 17 column 5 SXXP0003: Error reported by XML parser: The element type "xsl:tomplate"
must be terminated by the matching end-tag "</xsl:tomplate>".
> When using NiFi the following error is printed:
> 11:07:43 CEST
> ERROR
> 2b4c1dab-3a87-175f-f817-3f3c72af4102
> TransformXml[id=2b4c1dab-3a87-175f-f817-3f3c72af4102] Unable to transform StandardFlowFileRecord[uuid=c4dde8e5-89b0-4f29-8f2d-a97a009cf843,claim=StandardContentClaim
[resourceClaim=StandardResourceClaim[id=1564391260760-1, container=default, section=1], offset=0,
length=6380],offset=0,name=c4dde8e5-89b0-4f29-8f2d-a97a009cf843,size=6380] due to IOException
thrown from TransformXml[id=2b4c1dab-3a87-175f-f817-3f3c72af4102]: java.io.IOException: java.util.concurrent.ExecutionException:
javax.xml.transform.TransformerConfigurationException: net.sf.saxon.s9api.SaxonApiException:
Stylesheet compilation failed: 1 error reported: org.apache.nifi.processor.exception.ProcessException:
IOException thrown from TransformXml[id=2b4c1dab-3a87-175f-f817-3f3c72af4102]: java.io.IOException:
java.util.concurrent.ExecutionException: javax.xml.transform.TransformerConfigurationException:
net.sf.saxon.s9api.SaxonApiException: Stylesheet compilation failed: 1 error reported
> The error in NiFi gives almost no information for debugging. Would be a big improvement
if the Saxon error message is catched and add to the NiFi error message (bulletin board).
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message